HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_Hierarchy Namespace Reference

Enumerations

enum  ComputeHierarchyResult {
  ComputeHierarchyResult::Success = 0, ComputeHierarchyResult::NoRoots, ComputeHierarchyResult::BadRoot, ComputeHierarchyResult::FoundCycle,
  ComputeHierarchyResult::IncompleteTraversal
}
 

Functions

GU_API GA_Offset getParent (GU_Detail *gdp, const GA_Offset &node)
 
GU_API GA_OffsetArray getChildren (GU_Detail *gdp, const GA_Offset &node)
 
GU_API const UT_StringHoldergetComputeHierarchyMessage (ComputeHierarchyResult result)
 Returns a descriptive message for the ComputeHierarchyResult. More...
 
GU_API ComputeHierarchyResult traverse (const GU_Detail *gdp, GA_OffsetArray &roots, GA_OffsetArray &nodes, GA_OffsetArray &parents, UT_Map< GA_Offset, GA_OffsetArray > *children=nullptr)
 
GU_API bool findRoots (const GU_Detail *gdp, GA_OffsetArray &roots)
 
GU_API void computeLocalTransform (const GU_Detail *gdp, const GA_OffsetArray &nodes, const GA_OffsetArray &parents, const UT_Vector3DArray &P, const UT_Matrix3DArray &transform, UT_Matrix4DArray &local, UT_Matrix4DArray &effective_local, const UT_IntArray &model)
 
GU_API void computeWorldTransform (const GU_Detail *gdp, const GA_OffsetArray &nodes, const GA_OffsetArray &parents, UT_Vector3DArray &P, UT_Matrix3DArray &transform, const UT_Matrix4DArray &local, UT_Matrix4DArray &effective_local, const UT_IntArray &model, const GA_PointGroup *constrain_grp=nullptr, bool constrain_all=false)
 

Enumeration Type Documentation

Enumerator
Success 
NoRoots 
BadRoot 
FoundCycle 
IncompleteTraversal 

Definition at line 33 of file GU_Hierarchy.h.

Function Documentation

GU_API void GU_Hierarchy::computeLocalTransform ( const GU_Detail gdp,
const GA_OffsetArray nodes,
const GA_OffsetArray parents,
const UT_Vector3DArray P,
const UT_Matrix3DArray transform,
UT_Matrix4DArray local,
UT_Matrix4DArray effective_local,
const UT_IntArray model 
)
GU_API void GU_Hierarchy::computeWorldTransform ( const GU_Detail gdp,
const GA_OffsetArray nodes,
const GA_OffsetArray parents,
UT_Vector3DArray P,
UT_Matrix3DArray transform,
const UT_Matrix4DArray local,
UT_Matrix4DArray effective_local,
const UT_IntArray model,
const GA_PointGroup constrain_grp = nullptr,
bool  constrain_all = false 
)
GU_API bool GU_Hierarchy::findRoots ( const GU_Detail gdp,
GA_OffsetArray roots 
)
GU_API GA_OffsetArray GU_Hierarchy::getChildren ( GU_Detail gdp,
const GA_Offset node 
)
GU_API const UT_StringHolder& GU_Hierarchy::getComputeHierarchyMessage ( ComputeHierarchyResult  result)

Returns a descriptive message for the ComputeHierarchyResult.

GU_API GA_Offset GU_Hierarchy::getParent ( GU_Detail gdp,
const GA_Offset node 
)
GU_API ComputeHierarchyResult GU_Hierarchy::traverse ( const GU_Detail gdp,
GA_OffsetArray roots,
GA_OffsetArray nodes,
GA_OffsetArray parents,
UT_Map< GA_Offset, GA_OffsetArray > *  children = nullptr 
)
Examples:
USD/SOP_usdimport.h.