![]() |
ImFusion C++ SDK 4.4.0
|
#include <ImFusion/Mesh/MeshCustomProperties.h>
Basic interface for a custom property, i.e. a collection of values on different elements (vertices/faces). More...
Basic interface for a custom property, i.e. a collection of values on different elements (vertices/faces).
Public Member Functions | |
| virtual CustomPropertyElementBase & | element (size_t idx) const =0 |
| Untyped access to the property at element idx, for cases where you do not need to interpret the data (e.g. just memcpy). | |
| virtual void | clone (Mesh &meshToCloneTo) const =0 |
| Creates a property of the same type and storage name on another mesh, does not (and indeed cannot possibly) copy any data. | |
| virtual std::string | name () const =0 |
| Returns name that uniquely identifies the property on this mesh. | |
|
pure virtual |
Untyped access to the property at element idx, for cases where you do not need to interpret the data (e.g. just memcpy).
Implemented in ImFusion::CustomProperty< T >.
|
pure virtual |
Creates a property of the same type and storage name on another mesh, does not (and indeed cannot possibly) copy any data.
Implemented in ImFusion::CustomFaceProperty< T >, and ImFusion::CustomVertexProperty< T >.
|
pure virtual |
Returns name that uniquely identifies the property on this mesh.
Implemented in ImFusion::CustomProperty< T >.