template<class Data>
struct SurgSim::DataStructures::Vertex< Data >
Vertex structure for meshes.
Vertices are the lowest level of structure in a Mesh, providing a position and can store extra per-vertex data. MeshElements combine MeshVertices to form the structure of the mesh.
Vertex is to be used purely as a data structure and not provide implementation of algorithms. For example, a physics FEM's nodes are not subclasses of Vertex if they provide code that is part of the FEM algorithm, but they may used with a Mesh to store the structure of the FEM.
The extra Data is left up to the particular use of Mesh to specify. For example, for use collision detection, a vertex may need a normal and adjacent triangle information, which could be stored in a struct.
If no extra Data is needed, a specialization exists for void, in which case the constructor takes no data.
- Template Parameters
-
Data | Type of extra data stored in the vertex (void for no data) |
- See also
- Vertices