Function shapes::createMeshFromVertices(const EigenSTL::vector_Vector3d&, const std::vector<unsigned int>&)

Function Documentation

Mesh *shapes::createMeshFromVertices(const EigenSTL::vector_Vector3d &vertices, const std::vector<unsigned int> &triangles)

Load a mesh from a set of vertices.

Triangles are constructed using index values from the triangles vector. Triangle k has vertices at index values triangles[3k], triangles[3k+1], triangles[3k+2]