MeshCurvilinearTriangles
The list of mesh curvilinear triangles.
Example
app = cf.GetApplication() project = app:NewProject() -- Settings for curvilinear meshing project.SolutionSettings.SolverSettings.GeneralSettings.BasisFunctionSettings.HOBFEnabled = true project.Mesher.Settings.WireRadius = "0.01" advancedMeshSettings = project.Mesher.Settings.Advanced advancedMeshSettings.CurvilinearSegments = cf.Enums.MeshCurvilinearOptionsEnum.Disabled advancedMeshSettings.CurvilinearTriangles = cf.Enums.MeshCurvilinearOptionsEnum.Enabled frequency = project.SolutionConfigurations[1].Frequency frequency.Start = "1e08" -- Create geometry and mesh project.Geometry:AddSphere(cf.Point(0,0,0),1.0) project.Mesher:Mesh() project.Geometry["Sphere1"]:UnlinkMesh() -- Obtain a handle to the 'MeshCurvilinearTriangleFaceCollection' meshCurvilinearTriangleFaces = project.Meshes["Sphere1_1"].CurvilinearTriangleFaces for i in ipairs(meshCurvilinearTriangleFaces) do -- Obtain the curvilinear triangles curvilinearTriangleFace = meshCurvilinearTriangleFaces[i] curvilinearTriangles = curvilinearTriangleFace.CurvilinearTriangles -- Store the number of curvilinear triangles curvilinearTrianglesCount = curvilinearTriangles.Count end
Usage locations (object properties)
The following objects have properties using the MeshCurvilinearTriangles object:
Property List
Method List
- ClosestVertexTo (point Point)
- Gets the closest vertex, of the mesh element to the given point. (Returns a MeshVertex object.)
Index List
- [number]
- Returns the CurvilinearTriangle at the given index. (Read MeshCurvilinearTriangle)
Property Details
Method Details
- ClosestVertexTo (point Point)
- Gets the closest vertex, of the mesh element to the given point.
- Input Parameters
- point(Point)
- The point to query against.
- Return
- MeshVertex
- The closest vertex of the element to the point.