hoops_ai.cadaccess.HOOPSMesh
- class hoops_ai.cadaccess.HOOPSMesh(brep)
Bases:
MeshAccess- Parameters:
brep (Any)
- triangleCountPerFaceArray()
Returns amount of triangles forming each face
- Return type:
- vertexCoordinatesArray()
Returns the spatial coordinates of each vertex.
- Return type:
- 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:
- vertexNormalsArray()
Returns the spatial Coordinates of each vertew.
- Return type: