hoops_ai.cadaccess.HOOPSMesh

class hoops_ai.cadaccess.HOOPSMesh(brep)

Bases: MeshAccess

Parameters:

brep (Any)

faceCount()

Returns the total faces of the Mesh

Return type:

int

triangleCountPerFaceArray()

Returns amount of triangles forming each face

Return type:

ndarray

vertexCoordinatesArray()

Returns the spatial coordinates of each vertex.

Return type:

ndarray

vertexCount()

Returns the number of vertices/nodes in the mesh

Return type:

int

vertexIndicesPerTriangle(face_index)

Returns the vertex indices of triangles in a face.

The first three indices make the first triangle of face f, second group of 3 makes the second triangle and so on.

Obtain the coordinate and normal using the vertexCoordinatesArray and vertexNormalsArray.

Parameters:

face_index (int) – Index of the face (0-based)

Returns:

Array of vertex indices for all triangles in the face

Return type:

ndarray

vertexNormalsArray()

Returns the spatial Coordinates of each vertew.

Return type:

ndarray