MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ parent_world()

glm::mat4 MayaFlux::Nodes::Network::MeshTransformOperator::parent_world ( const MeshSlot &  slot) const
private

Resolve the world transform of a slot's parent, or identity if root.

Parameters
slotSlot whose parent_index is queried.
Returns
Parent's world_transform, or identity mat4 for root slots.

Definition at line 54 of file MeshTransformOperator.cpp.

55{
56 if (!slot.parent_index.has_value() || !m_slots)
57 return glm::mat4(1.0F);
58
59 const uint32_t pidx = *slot.parent_index;
60 if (pidx >= m_slots->size())
61 return glm::mat4(1.0F);
62
63 return (*m_slots)[pidx].world_transform;
64}
std::vector< MeshSlot > * m_slots

References MayaFlux::Nodes::Network::MeshOperator::m_slots, and MayaFlux::Nodes::Network::MeshSlot::parent_index.

Referenced by process_slot().

+ Here is the caller graph for this function: