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

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, ...].

Detailed Description

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.

See also
Actor::GetRodPose, Actor::SetRodPose

Definition at line 132 of file mochi_prefab.h.

Member Function Documentation

◆ operator==()

bool superdex::prefab::RodPose::operator== ( RodPose const & ) const
default

Member Data Documentation

◆ elementFrameAxes

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.

◆ nodeDisplacements

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.


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