|
| | TriangleMesh () |
| | Constructor. More...
|
| |
| template<class VertexDataSource , class EdgeDataSource , class TriangleDataSource > |
| | TriangleMesh (const TriangleMeshBase< VertexDataSource, EdgeDataSource, TriangleDataSource > &mesh) |
| | Templated constructor this lets us convert one mesh class into another mesh class. More...
|
| |
| const SurgSim::Math::Vector3d & | getNormal (size_t triangleId) |
| | Get normal for triangle. More...
|
| |
| void | calculateNormals () |
| | Calculate normals for all triangles. More...
|
| |
| void | copyWithTransform (const SurgSim::Math::RigidTransform3d &pose, const TriangleMesh &source) |
| | Sets the mesh's vertices and normals by transforming a similar mesh. More...
|
| |
| | Asset () |
| | Constructor. More...
|
| |
| virtual | ~Asset () |
| | Destructor. More...
|
| |
| void | load (const std::string &fileName, const SurgSim::Framework::ApplicationData &data) |
| | Load a file with given name using 'data' as look up path(s). More...
|
| |
| void | load (const std::string &fileName) |
| | Overloaded function using SurgSim::Framework::Runtime::getApplicationData() as look up path(s). More...
|
| |
| std::string | getFileName () const |
| | Return the name of file loaded by this class. More...
|
| |
| | TriangleMeshBase () |
| | Constructor. The mesh is initially empty (no vertices, no edges, no triangles). More...
|
| |
| | TriangleMeshBase (const TriangleMeshBase< VertexDataSource, EdgeDataSource, TriangleDataSource > &mesh) |
| | Copy constructor. More...
|
| |
| virtual | ~TriangleMeshBase () |
| | Destructor. More...
|
| |
| size_t | addEdge (const EdgeType &edge) |
| | Adds an edge to the mesh. More...
|
| |
| size_t | addTriangle (const TriangleType &triangle) |
| | Adds a triangle to the mesh. More...
|
| |
| size_t | getNumEdges () const |
| | Get the number of edges. More...
|
| |
| size_t | getNumTriangles () const |
| | Get the number of triangles. More...
|
| |
| const std::vector< EdgeType > & | getEdges () const |
| | Retrieve all edges. More...
|
| |
| std::vector< EdgeType > & | getEdges () |
| | Retrieve all edges (non const version) More...
|
| |
| const std::vector< TriangleType > & | getTriangles () const |
| | Retrieve all triangles. More...
|
| |
| std::vector< TriangleType > & | getTriangles () |
| | Retrieve all triangles (non const version) More...
|
| |
| const EdgeType & | getEdge (size_t id) const |
| | Retrieve a specific edge. More...
|
| |
| EdgeType & | getEdge (size_t id) |
| | Retrieve a specific edge (non const version) More...
|
| |
| const TriangleType & | getTriangle (size_t id) const |
| | Retrieve a specific triangle. More...
|
| |
| TriangleType & | getTriangle (size_t id) |
| | Retrieve a specific triangle (non const version) More...
|
| |
| void | removeTriangle (size_t id) |
| | Marks a triangle as invalid, the triangle cannot be accessed via getTriangle anymore. More...
|
| |
| std::array< SurgSim::Math::Vector3d, 3 > | getTrianglePositions (size_t id) const |
| | Returns an array of the triangle's vertices' positions. More...
|
| |
| bool | isValid () const |
| | Test if the TriangleMeshBase is valid (valid vertex Ids used in all MeshElements) More...
|
| |
| | Vertices () |
| | Constructor. The mesh is initially empty (no vertices). More...
|
| |
| virtual | ~Vertices () |
| | Destructor. More...
|
| |
| void | clear () |
| | Clear mesh to return to an empty state (no vertices). More...
|
| |
| void | update () |
| | Performs any updates that are required when the vertices are modified. More...
|
| |
| size_t | addVertex (const VertexType &vertex) |
| | Adds a vertex to the mesh. More...
|
| |
| size_t | getNumVertices () const |
| | Returns the number of vertices in this mesh. More...
|
| |
| const VertexType & | getVertex (size_t id) const |
| | Returns the specified vertex. More...
|
| |
| VertexType & | getVertex (size_t id) |
| | Returns the specified vertex (non const version). More...
|
| |
| const std::vector< VertexType > & | getVertices () const |
| | Returns a vector containing the position of each vertex. More...
|
| |
| std::vector< VertexType > & | getVertices () |
| | Returns a vector containing the position of each vertex (non const version). More...
|
| |
| void | setVertexPosition (size_t id, const SurgSim::Math::Vector3d &position) |
| | Sets the position of a vertex. More...
|
| |
| const SurgSim::Math::Vector3d & | getVertexPosition (size_t id) const |
| | Returns the position of a vertex. More...
|
| |
| void | setVertexPositions (const std::vector< SurgSim::Math::Vector3d > &positions, bool doUpdate=true) |
| | Sets the position of each vertex. More...
|
| |
| bool | operator== (const Vertices &mesh) const |
| | Compares the mesh with another one (equality) More...
|
| |
| bool | operator!= (const Vertices &mesh) const |
| | Compares the mesh with another one (inequality) More...
|
| |
A TriangleMesh stores normal information for the triangles.