MeshUnmeshedPolygonFace
A mesh entity representing one or more unmeshed polygons. This type of mesh is typically solved using a solution method that does not require fine subdivision, like the uniform theory of diffraction.
Example
app = cf.GetApplication() project = app:NewProject() -- Set the frequency project.SolutionConfigurations[1].Frequency.Start = "1e08" -- Create geometry, set solution method to UTD polygons = project.Geometry:AddRectangle(cf.Point(-0.25,-0.25,0), 0.5, 1.0) polygons.Faces["Face1"].SolutionMethod = cf.Enums.RegionSolutionMethodEnum.UTD -- Mesh project.Mesher:Mesh() project.Geometry["Rectangle1"]:UnlinkMesh() meshUnmeshedPolygonFaces = project.Meshes["Rectangle1_1"].UnmeshedPolygonFaces for i in ipairs(meshUnmeshedPolygonFaces) do -- Obtain the 'MeshUnmeshedPolygonFace' meshUnmeshedPolygonFace = meshUnmeshedPolygonFaces[i] -- Reverse the element normals on the face meshUnmeshedPolygonFace:ReverseElementNormals() end
Inheritance
The MeshUnmeshedPolygonFace object is derived from the MeshEntity object.
Property List
- Coating
- The face coating specified by a predefined Layered dielectric medium.Changing this property will set CoatingEnabled to true. (Read/Write Medium)
- CoatingEnabled
- Specifies if a coating should be applied to the face. (Read/Write boolean)
- Label
- The object label. (Read/Write string)
- Medium
- The face medium. (Read/Write Medium)
- Part
- The mesh part that this entity belongs to. (Read only Mesh)
- Polygons
- The list of unmeshed polygons that form the mesh face. (Read only MeshPolygons)
- Thickness
- The face medium thickness. Only applies when the Medium is defined as a Metallic. (Read/Write Expression)
- Type
- The object type string. (Read only string)
Method List
- Delete ()
- Delete the MeshEntity.
- GetProperties ()
- Returns a table of properties representing the state of the object. The properties table can be used with the SetProperties method to change multiple properties of the object in one step. (Returns a table object.)
- ReverseElementNormals ()
- Reverses each polygon's normal.
- SetProperties (properties table)
- Modifies the state of the object using the provided table of properties. This method is used to modify multiple properties of the object in a single step.
Property Details
- Coating
- The face coating specified by a predefined Layered dielectric medium.Changing this property will set CoatingEnabled to true.
- Type
- Medium
- Access
- Read/Write
- CoatingEnabled
- Specifies if a coating should be applied to the face.
- Type
- boolean
- Access
- Read/Write
- Label
- The object label.
- Type
- string
- Access
- Read/Write
- Medium
- The face medium.
- Type
- Medium
- Access
- Read/Write
- Part
- The mesh part that this entity belongs to.
- Type
- Mesh
- Access
- Read only
- Polygons
- The list of unmeshed polygons that form the mesh face.
- Type
- MeshPolygons
- Access
- Read only
- Thickness
- The face medium thickness. Only applies when the Medium is defined as a Metallic.
- Type
- Expression
- Access
- Read/Write
- Type
- The object type string.
- Type
- string
- Access
- Read only
Method Details
- Delete ()
- Delete the MeshEntity.
- GetProperties ()
- Returns a table of properties representing the state of the object. The properties table can be used with the SetProperties method to change multiple properties of the object in one step.
- Return
- table
- A properties table.
- ReverseElementNormals ()
- Reverses each polygon's normal.
- SetProperties (properties table)
- Modifies the state of the object using the provided table of properties. This method is used to modify multiple properties of the object in a single step.
- Input Parameters
- properties(table)
- A table of properties defining the new state of the object.