|
SuperDex Physics C++ API
|
A non-owning view of the 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. | |
| MeshDataView ()=default | |
| MeshDataView (MeshData const &src) | |
| Implicit conversion from MeshData. | |
| bool | operator!= (MeshDataView const &other) const =default |
| bool | operator== (MeshDataView const &other) const =default |
Public Attributes | |
| Span< int const > | connectivity |
| Flat array of node indices forming the elements. | |
| Span< real const > | coordinates |
| Flat array of node coordinate values [m]. | |
| int | nodesPerElement = 0 |
| Number of nodes (vertices) per element. | |
| std::optional< SkinningDataView > | skinning |
| Optional skinning. | |
A non-owning view of the mesh data for a Mochi actor or model file.
Definition at line 218 of file mesh_data.h.
|
default |
|
inline |
Implicit conversion from MeshData.
| [in] | src | Source data. |
Definition at line 34 of file mesh_data_inl.h.
|
inline |
Return the number of elements.
Definition at line 65 of file mesh_data_inl.h.
|
inline |
Return the number of nodes.
Definition at line 60 of file mesh_data_inl.h.
|
inlinenodiscard |
Return true if the mesh is empty.
Definition at line 70 of file mesh_data_inl.h.
|
default |
|
default |
| Span<int const> superdex::MeshDataView::connectivity |
Flat array of node indices forming the elements.
Definition at line 247 of file mesh_data.h.
Flat array of node coordinate values [m].
Definition at line 240 of file mesh_data.h.
| int superdex::MeshDataView::nodesPerElement = 0 |
Number of nodes (vertices) per element.
Definition at line 233 of file mesh_data.h.
| std::optional<SkinningDataView> superdex::MeshDataView::skinning |
Optional skinning.
Definition at line 250 of file mesh_data.h.