49 const std::string&
name =
"uninitialized",
bool isApprox(T l, T r, T eps=Eps< T >(1e-4, 1e-6)) noexcept
Determines if two values are approximately equal within a given tolerance.
Vector3< std::int32_t > Vector3i
constexpr size_t kInvalidIndex
Sentinel value indicating an invalid or unset size_t index.
Vector3< float > Vector3f
std::vector< Locator > LocatorList
A collection of locators attached to a skeleton.
float weight
Influence weight when used as a constraint in error functions.
size_t parent
Index of the parent joint in the skeleton.
bool operator==(const Locator &locator) const
Equality comparison; uses approximate (isApprox) comparison for floating-point fields.
Locator(const std::string &name="uninitialized", const size_t parent=kInvalidIndex, const Vector3f &offset=Vector3f::Zero(), const Vector3i &locked=Vector3i::Zero(), const float weight=1.0f, const Vector3f &limitOrigin=Vector3f::Zero(), const Vector3f &limitWeight=Vector3f::Zero(), bool attachedToSkin=false, float skinOffset=0.0f)
float skinOffset
Offset from the skin surface, used when solving for body shape using locators.
Vector3f limitWeight
Per-axis strength pulling the locator back toward limitOrigin.
Vector3i locked
Per-axis lock flags (x, y, z): 1 = locked, 0 = free.
bool attachedToSkin
True if the locator is attached to the skin of a person (e.g.
Vector3f offset
Position in the parent joint's local coordinate frame.
Vector3f limitOrigin
Reference position for limit constraints; typically equals offset when loaded.