Utility functions for prtx::Mesh.
◆ createTriangulatedMesh()
Creates a triangulated version of the passed Mesh.
- Parameters
-
mesh | The mesh to trriangulate. |
triangle2FaceMap | Optional pointer to index vector to return the mapping of the new triangles (faces) to the old faces. |
◆ transformCoords()
Transforms a number of vertices (i.e. (x, y, z) coordinate triples) with a transformation matrix.
- Parameters
-
[in,out] | coords | Vertices to transform. Size must be multiple of 3 (3 * number of vertices). |
| matrix | Matrix to transform vertices with. 4x4 harmonic transformation matrix, column major (OpenGL). |