|
SuperDex Physics C++ API
|
A rod pose: node displacements and element frame axes. More...
#include <mochi_prefab.h>
Public Member Functions | |
| bool | operator== (RodPose const &) const =default |
Public Attributes | |
| DynamicArray< real > | elementFrameAxes {} |
| Element frame axes, flattened as [x0, y0, z0, x1, y1, z1, ...]. | |
| DynamicArray< real > | nodeDisplacements {} |
| Node displacements relative to the rest node positions, flattened as [x0, y0, z0, x1, y1, z1, ...]. | |
A rod pose: node displacements and element frame axes.
Values are expressed in the model frame of RodActorPrefab::shapeFile, the same frame as its node positions and rest frame axes. The model transform baked into the shape (RodActorPrefab::scale, RodActorPrefab::shapeRotation, and the effective prefab scale) is applied to the pose too: displacements like node positions, and frame axes like the rest frame axes (by the inverse transpose, then renormalized). RodActorPrefab::shapeTranslation does not affect them. When RodActorPrefab::shapeFile is empty (a preset RodActorParams::shape), the pose is applied unchanged.
Definition at line 132 of file mochi_prefab.h.
|
default |
| DynamicArray<real> superdex::prefab::RodPose::elementFrameAxes {} |
Element frame axes, flattened as [x0, y0, z0, x1, y1, z1, ...].
Must contain 3 finite values per element. After the model transform is applied, each axis is expected to be a unit vector orthogonal to its deformed element, within a tolerance of 1e-3. Geometry violations emit warnings; the supplied pose is still applied.
Definition at line 134 of file mochi_prefab.h.
| DynamicArray<real> superdex::prefab::RodPose::nodeDisplacements {} |
Node displacements relative to the rest node positions, flattened as [x0, y0, z0, x1, y1, z1, ...].
Must contain 3 finite values per node.
Definition at line 133 of file mochi_prefab.h.