14#include <pxr/usd/usd/stage.h>
15#include <pxr/usd/usdSkel/skeleton.h>
17PXR_NAMESPACE_USING_DIRECTIVE
37 const UsdStageRefPtr& stage,
38 const SdfPath& skelRootPath);
42 const UsdStageRefPtr& stage,
49 const UsdStageRefPtr& stage,
50 const SdfPath& skelRootPath);
Skeleton loadSkeletonFromUsd(const UsdStageRefPtr &stage)
Load a skeleton from a USD stage.
CollisionGeometryT< float > CollisionGeometry
SkeletonT< float > Skeleton
void saveSkeletonToUsd(const Skeleton &skeleton, UsdSkelSkeleton &skelPrim)
Save a skeleton to a USD stage.
void saveCollisionGeometryToUsd(const CollisionGeometry &collision, const Skeleton &skeleton, const UsdStageRefPtr &stage, const SdfPath &skelRootPath)
Save collision geometry as child prims under the skeleton.
LocatorList loadLocatorsFromUsd(const UsdStageRefPtr &stage, const Skeleton &skeleton)
Load locators from child prims.
void saveLocatorsToUsd(const LocatorList &locators, const Skeleton &skeleton, const UsdStageRefPtr &stage, const SdfPath &skelRootPath)
Save locators as child prims under the skeleton.
CollisionGeometry loadCollisionGeometryFromUsd(const UsdStageRefPtr &stage, const Skeleton &skeleton)
Load collision geometry from child prims.
std::vector< std::string > buildHierarchicalPaths(const Skeleton &skeleton)
Build hierarchical joint paths from flat names and parent indices.
std::vector< Locator > LocatorList
A collection of locators attached to a skeleton.