|
| Mesh () |
| Default constructor. More...
|
|
template<class VertexDataSource , class EdgeDataSource , class TriangleDataSource > |
| Mesh (const TriangleMeshBase< VertexDataSource, EdgeDataSource, TriangleDataSource > &mesh) |
| Copy constructor. More...
|
|
void | initialize (const std::vector< SurgSim::Math::Vector3d > &vertices, const std::vector< SurgSim::Math::Vector4d > &colors, const std::vector< SurgSim::Math::Vector2d > &textures, const std::vector< size_t > &triangles) |
| Utility function to initialize a mesh with plain data,. 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...
|
|