MayaFlux 0.4.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 67 of file MeshTransformOperator.cpp.

68{
69 if (!slot.parent_index.has_value() || !m_slots)
70 return glm::mat4(1.0F);
71
72 const uint32_t pidx = *slot.parent_index;
73 if (pidx >= m_slots->size())
74 return glm::mat4(1.0F);
75
76 return (*m_slots)[pidx].world_transform;
77}
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: