|
SuperDex Physics C++ API
|
Mesh data for a Mochi actor or model file. More...
#include <mesh_data.h>
Public Member Functions | |
| int | GetNumElements () const |
| Return the number of elements. | |
| int | GetNumNodes () const |
| Return the number of nodes. | |
| bool | IsEmpty () const |
| Return true if the mesh is empty. | |
| MeshData ()=default | |
| Default constructor. | |
| MeshData (MeshDataView const &src) | |
| Copy from MeshDataView. | |
| bool | operator!= (MeshData const &other) const =default |
| bool | operator== (MeshData const &other) const =default |
Public Attributes | |
| DynamicArray< int > | connectivity |
| Flat array of node indices forming the elements. | |
| DynamicArray< real > | coordinates |
| Flat array of node coordinate values [m]. | |
| int | nodesPerElement = 0 |
| Number of nodes (vertices) per element. | |
| std::optional< SkinningData > | skinning |
| Optional skinning. | |
Mesh data for a Mochi actor or model file.
Definition at line 157 of file mesh_data.h.
|
default |
Default constructor.
|
inlineexplicit |
Copy from MeshDataView.
| [in] | src | Source data. |
Definition at line 40 of file mesh_data_inl.h.
|
inline |
Return the number of elements.
Definition at line 51 of file mesh_data_inl.h.
|
inline |
Return the number of nodes.
Definition at line 46 of file mesh_data_inl.h.
|
inlinenodiscard |
Return true if the mesh is empty.
Definition at line 56 of file mesh_data_inl.h.
|
default |
|
default |
| DynamicArray<int> superdex::MeshData::connectivity |
Flat array of node indices forming the elements.
Definition at line 186 of file mesh_data.h.
| DynamicArray<real> superdex::MeshData::coordinates |
Flat array of node coordinate values [m].
Definition at line 179 of file mesh_data.h.
| int superdex::MeshData::nodesPerElement = 0 |
Number of nodes (vertices) per element.
Definition at line 172 of file mesh_data.h.
| std::optional<SkinningData> superdex::MeshData::skinning |
Optional skinning.
Definition at line 189 of file mesh_data.h.