hoops_ai.cadaccess.hoops_exchange.hoops_mesh

Classes

HOOPSMesh(body)

class hoops_ai.cadaccess.hoops_exchange.hoops_mesh.HOOPSMesh(body)

Bases: MeshAccess

Parameters:

body (Any)

faceCount()

Returns the total faces of the Mesh

Return type:

int

triangleCountPerFaceArray()

Returns amout of triangle forming each face

Return type:

numpy.ndarray

vertexCoordinatesArray()

Returns the spatial Coordinates of each vertew.

Return type:

numpy.ndarray

vertexCount()

Returns then number of vertex/nodes in the mesh

Return type:

int

vertexIndicesPerTriangle(face_index)

Returns the vertex indices of a triangle 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)

Return type:

numpy.ndarray

vertexNormalsArray()

Returns the spatial Coordinates of each vertew.

Return type:

numpy.ndarray