MeshTriangles

The list of mesh triangles.

Example

app = pf.GetApplication()
app:NewProject()
app:OpenFile(FEKO_HOME..[[/shared/Resources/Automation/startup.fek]])

    -- Obtain a handle to the mesh model and its points
    
model = app.Models["startup"]
mesh = model.Configurations[1].Mesh
points = mesh.Points

    -- Obtain a handle to the 'MeshTriangles' 
    
meshTriangles = mesh.TriangleFaces[1].Triangles

    -- Get the number of mesh triangles
    
meshTriangleCount =  meshTriangles.Count   

Usage locations

The MeshTriangles object can be accessed from the following locations:

Property List

Count
The number of triangles in the mesh entity. (Read only number)
Type
The object type string. (Read only string)

Index List

[number]
Returns the Triangle at the given index. (Read MeshTriangle)

Property Details

Count
The number of triangles in the mesh entity.
Type
number
Access
Read only
Type
The object type string.
Type
string
Access
Read only