#define MOCHI_ASSERT_VERBOSE(condition_without_side_effects,...)
constexpr int kMeshDataSpaceDim
Spatial dimensionality of mesh data.
constexpr int isize(T const &a)
A non-owning view of the data blending data for one source shape within a soft skinned mesh.
BlendingDataView()=default
Span< int const > indices
Indices for blending. Size = numNodes * 2.
Span< real const > weights
Weights for blending Size = numNodes * 2.
std::string_view sourceShape
Name of the soft source shape.
Blending data for one source shape within a soft skinned mesh.
DynamicString sourceShape
Name of the soft source shape.
BlendingData()=default
Default constructor.
DynamicArray< int > indices
Indices for blending. Size = numNodes * 2.
DynamicArray< real > weights
Weights for blending Size = numNodes * 2.
A non-owning view of the mesh data for a Mochi actor or model file.
Span< int const > connectivity
Flat array of node indices forming the elements.
int GetNumElements() const
Return the number of elements.
int GetNumNodes() const
Return the number of nodes.
int nodesPerElement
Number of nodes (vertices) per element.
bool IsEmpty() const
Return true if the mesh is empty.
std::optional< SkinningDataView > skinning
Optional skinning.
Span< real const > coordinates
Flat array of node coordinate values [m].
Mesh data for a Mochi actor or model file.
int GetNumNodes() const
Return the number of nodes.
bool IsEmpty() const
Return true if the mesh is empty.
int nodesPerElement
Number of nodes (vertices) per element.
DynamicArray< real > coordinates
Flat array of node coordinate values [m].
MeshData()=default
Default constructor.
DynamicArray< int > connectivity
Flat array of node indices forming the elements.
int GetNumElements() const
Return the number of elements.
std::optional< SkinningData > skinning
Optional skinning.
A non-owning view of the skinning data for a Mochi mesh.
SkinningDataView()=default
int weightsPerNode
Number of weights and indices per node being skinned.
Span< int const > indices
Indices for each node. Size = numNodes * weightsPerNode.
Span< real const > weights
Weights for each node. Size = numNodes * weightsPerNode.
Skinning data for a Mochi mesh.
int weightsPerNode
Number of weights and indices per node being skinned.
DynamicArray< real > weights
Weights for each node. Size = numNodes * weightsPerNode.
SkinningData()=default
Default constructor.
DynamicArray< int > indices
Indices for each node. Size = numNodes * weightsPerNode.