|
SuperDex Physics C++ API
|
The contents of a Mochi model file. More...
#include <model_data.h>
Public Member Functions | |
| ModelData ()=default | |
| ModelData (ModelDataView const &src) | |
| Copy from ModelDataView. | |
| bool | operator!= (ModelData const &other) const =default |
| bool | operator== (ModelData const &other) const =default |
Public Attributes | |
| std::optional< DynamicArray< BlendingData > > | blending |
| std::optional< Box > | box |
| std::optional< DynamicArray< int > > | constrainedNodes |
| Indices of mesh nodes that are constrained. | |
| std::optional< DynamicArray< real > > | elementFrameAxes |
| Per-element reference frame axes for polyline meshes. | |
| bool | experimentalDataDetected = false |
| True if the loaded model contains unsupported experimental data. | |
| std::optional< PerElementSoftMaterialData > | material |
| std::optional< MeshData > | mesh |
| std::optional< Plane > | plane |
| std::optional< GridSdfData > | sdf |
| std::optional< Sphere > | sphere |
| std::optional< MeshData > | visualMesh |
The contents of a Mochi model file.
Definition at line 185 of file model_data.h.
|
default |
|
inlineexplicit |
Copy from ModelDataView.
| [in] | src | Source data. |
Definition at line 73 of file model_data_inl.h.
|
default |
|
default |
| std::optional<DynamicArray<BlendingData> > superdex::ModelData::blending |
Definition at line 198 of file model_data.h.
| std::optional<Box> superdex::ModelData::box |
Definition at line 213 of file model_data.h.
| std::optional<DynamicArray<int> > superdex::ModelData::constrainedNodes |
Indices of mesh nodes that are constrained.
Definition at line 201 of file model_data.h.
| std::optional<DynamicArray<real> > superdex::ModelData::elementFrameAxes |
Per-element reference frame axes for polyline meshes.
Flat array of unit vectors (3 reals per element), each orthogonal to its element's tangent. Only valid when the mesh is a polyline (MeshData::nodesPerElement == 2).
Definition at line 210 of file model_data.h.
| bool superdex::ModelData::experimentalDataDetected = false |
True if the loaded model contains unsupported experimental data.
Some model files contain additional data for experimental features (e.g. ROMs), which cannot be represented by this struct. This flag is set during loading when such data is detected.
Definition at line 230 of file model_data.h.
| std::optional<PerElementSoftMaterialData> superdex::ModelData::material |
Definition at line 221 of file model_data.h.
| std::optional<MeshData> superdex::ModelData::mesh |
Definition at line 196 of file model_data.h.
| std::optional<Plane> superdex::ModelData::plane |
Definition at line 214 of file model_data.h.
| std::optional<GridSdfData> superdex::ModelData::sdf |
Definition at line 218 of file model_data.h.
| std::optional<Sphere> superdex::ModelData::sphere |
Definition at line 215 of file model_data.h.
| std::optional<MeshData> superdex::ModelData::visualMesh |
Definition at line 197 of file model_data.h.