24 #ifndef PXR_USD_USD_SKEL_TOPOLOGY_H 25 #define PXR_USD_USD_SKEL_TOPOLOGY_H 30 #include "pxr/usd/usdSkel/api.h" 33 #include "pxr/usd/sdf/path.h" 37 PXR_NAMESPACE_OPEN_SCOPE
73 bool Validate(std::string* reason=
nullptr)
const;
75 const VtIntArray& GetParentIndices()
const {
return _parentIndices; }
77 size_t GetNumJoints()
const {
return size(); }
79 size_t size()
const {
return _parentIndices.size(); }
95 VtIntArray _parentIndices;
103 return _parentIndices[index];
107 PXR_NAMESPACE_CLOSE_SCOPE
109 #endif // PXR_USD_USD_SKEL_TOPOLOGY_H #define TF_DEV_AXIOM(cond)
The same as TF_AXIOM, but compiled only in dev builds.
int GetParent(size_t index) const
Returns the parent joint of the index'th joint, Returns -1 for joints with no parent (roots).
UsdSkelTopology()=default
Construct an empty topology.
Object holding information describing skeleton topology.
Represents a range of contiguous elements.
USDSKEL_API bool Validate(std::string *reason=nullptr) const
Validate the topology.
bool IsRoot(size_t index) const
Returns true if the index'th joint is a root joint.