MeshPolygons
The list of mesh polygons.
Example
app = cf.GetApplication() project = app:NewProject() -- Settings for normal meshing project.SolutionConfigurations[1].Frequency.Start = "1e08" -- Create geometry, set the solution method and mesh. plate = project.Geometry:AddRectangle(cf.Point(-0.25,-0.25,0), 0.5, 1.0) plate.Faces["Face1"].SolutionMethod = cf.Enums.RegionSolutionMethodEnum.UTD project.Mesher:Mesh() project.Geometry["Rectangle1"]:UnlinkMesh() meshedUnmeshedPolygonFaces = project.Meshes["Rectangle1_1"].UnmeshedPolygonFaces for i in ipairs(meshedUnmeshedPolygonFaces) do meshedUnmeshedPolygonFace = meshedUnmeshedPolygonFaces[i] -- Obtain a handle to 'MeshPolygons' meshedPolygons = meshedUnmeshedPolygonFace.Polygons -- Print the number of meshed unmeshed polygons meshedPolygonsCount = meshedPolygons.Count end
Usage locations (object properties)
The following objects have properties using the MeshPolygons 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 Polygon at the given index. (Read MeshPolygon)
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.