Function shapes::createMeshFromVertices(const EigenSTL::vector_Vector3d&)

Function Documentation

Mesh *shapes::createMeshFromVertices(const EigenSTL::vector_Vector3d &source)

Load a mesh from a set of vertices.

Every 3 vertices are considered a triangle. Repeating vertices are identified and the set of triangle indices is constructed. The normal at each triangle is also computed