MeshTriangle

A triangle in 3D space defined by three points. Exists as part of a mesh.

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 first 'MeshTriangle' 
    
meshTriangles = mesh.TriangleFaces[1].Triangles
meshTriangle = meshTriangles[1]    

    -- Print coordinates of the 'MeshTriangle'
    
print("X=" .. points[meshTriangle.VertexIndices[1]])
print("Y=" .. points[meshTriangle.VertexIndices[2]])    
print("Z=" .. points[meshTriangle.VertexIndices[3]])    

Property List

Type
The object type string. (Read only string)
VertexIndices
Returns a list of the vertex indices of the triangle. (Read only List of number)

Property Details

Type
The object type string.
Type
string
Access
Read only
VertexIndices
Returns a list of the vertex indices of the triangle.
Access
Read only