MeshVertex
A vertex in 3D space. Exists as part of a mesh.
Example
app = cf.GetApplication() project = app:NewProject() -- Settings for normal meshing project.Mesher.Settings.WireRadius = "0.01" advancedMeshSettings = project.Mesher.Settings.Advanced advancedMeshSettings.CurvilinearSegments = cf.Enums.MeshCurvilinearOptionsEnum.Disabled project.SolutionConfigurations[1].Frequency.Start = "1e08" -- Create geometry and mesh project.Geometry:AddHelix(cf.Point(0,0,0), 0.1, 0.1, 1.0, 5.0, false) project.Mesher:Mesh() project.Geometry["Helix1"]:UnlinkMesh() meshSegmentWires = project.Meshes["Helix1_1"].SegmentWires for wIndex in ipairs(meshSegmentWires) do segmentWires = meshSegmentWires[wIndex] segments = segmentWires.Segments for sIndex = 1, segments.Count do segmentVertices = segments[sIndex].Vertices for vIndex in ipairs(segmentVertices) do -- Obtain a handle to the 'MeshVertex' meshVertex = segmentVertices[vIndex] -- Print its coordinate in 3D space print(meshVertex.Position) end end end
Usage locations (object properties)
The following objects have properties using the MeshVertex object:
- MeshCylinder(.Vertices)
- MeshTetrahedron(.Vertices)
- MeshSegment(.Vertices)
- MeshCurvilinearSegment(.Vertices)
- MeshPolygon(.Vertices)
- MeshCurvilinearTriangle(.Vertices)
- MeshTriangle(.Vertices)
- FEMModalMeshPort(.Vertex1)
- FEMModalMeshPort(.Vertex2)
- FEMModalMeshPort(.Vertex3)
- FEMLineMeshPort(.StartVertex)
- FEMLineMeshPort(.EndVertex)
- MicrostripMeshPort(.StartVertex)
- MicrostripMeshPort(.EndVertex)
- WireMeshPort(.Vertex)