MeshPolygon
A polygon in 3D space. A geometry polygon's mesh equivalent that can be directly interpreted by the solver (e.g. using the UTD solution method).
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] meshPolygons = meshedUnmeshedPolygonFace.Polygons for j = 1,meshPolygons.Count do -- Obtain a handle to the 'MeshPolygon' and reverse its normal meshPolygon = meshPolygons[j] meshPolygon:ReverseNormal() end end
Inheritance
The MeshPolygon object is derived from the MeshElement object.
Property List
- Type
- The object type string. (Read only string)
- Vertices
- Returns a list of the polygon's vertices. (Read only List of MeshVertex)
Method List
- Delete ()
- Deletes the mesh element.
- ReverseNormal ()
- Reverses the polygon's normal.
Property Details
- Type
- The object type string.
- Type
- string
- Access
- Read only
- Vertices
- Returns a list of the polygon's vertices.
- Access
- Read only
Method Details
- Delete ()
- Deletes the mesh element.
- ReverseNormal ()
- Reverses the polygon's normal.