Developer Documentation
|
In OpenVolumeMesh it is possible to attach multiple properties to each of the entities. Due to the use of STL template programming, these properties can be of any data type. In this tutorial, we learn how to attach properties to the entities of a polyhedral mesh.
Read Section Generic Dynamic Properties for a detailed description of the property system.
The following example shows how to attach a floating-point property to the vertices of a mesh.
For all other entities, this works the same way. Use class OpenVolumeMesh::EdgePropertyT as edge property, OpenVolumeMesh::HalfFacePropertyT for half-face properties, and so on...