SuperDex Physics C++ API
Loading...
Searching...
No Matches
superdex::SkinningDataView Struct Reference

A non-owning view of the skinning data for a Mochi mesh. More...

#include <mesh_data.h>

Public Member Functions

bool operator!= (SkinningDataView const &other) const =default
bool operator== (SkinningDataView const &other) const =default
 SkinningDataView ()=default
 SkinningDataView (SkinningData const &src)
 Implicit conversion from SkinningData.

Public Attributes

Span< int const > indices
 Indices for each node. Size = numNodes * weightsPerNode.
Span< real const > weights
 Weights for each node. Size = numNodes * weightsPerNode.
int weightsPerNode = 0
 Number of weights and indices per node being skinned.

Detailed Description

A non-owning view of the skinning data for a Mochi mesh.

See also
SkinningData

Definition at line 132 of file mesh_data.h.

Constructor & Destructor Documentation

◆ SkinningDataView() [1/2]

superdex::SkinningDataView::SkinningDataView ( )
default

◆ SkinningDataView() [2/2]

superdex::SkinningDataView::SkinningDataView ( SkinningData const & src)
inline

Implicit conversion from SkinningData.

Parameters
[in]srcSource data.

Definition at line 28 of file mesh_data_inl.h.

Member Function Documentation

◆ operator!=()

bool superdex::SkinningDataView::operator!= ( SkinningDataView const & other) const
default

◆ operator==()

bool superdex::SkinningDataView::operator== ( SkinningDataView const & other) const
default

Member Data Documentation

◆ indices

Span<int const> superdex::SkinningDataView::indices

Indices for each node. Size = numNodes * weightsPerNode.

Definition at line 143 of file mesh_data.h.

◆ weights

Span<real const> superdex::SkinningDataView::weights

Weights for each node. Size = numNodes * weightsPerNode.

Definition at line 144 of file mesh_data.h.

◆ weightsPerNode

int superdex::SkinningDataView::weightsPerNode = 0

Number of weights and indices per node being skinned.

Definition at line 142 of file mesh_data.h.


The documentation for this struct was generated from the following files: