Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
usd_skeleton_io.h File Reference
#include <momentum/character/collision_geometry.h>
#include <momentum/character/locator.h>
#include <momentum/character/skeleton.h>
#include <pxr/usd/usd/stage.h>
#include <pxr/usd/usdSkel/skeleton.h>

Go to the source code of this file.

Namespaces

namespace  momentum

Functions

std::vector< std::string > momentum::buildHierarchicalPaths (const Skeleton &skeleton)
 Build hierarchical joint paths from flat names and parent indices.
Skeleton momentum::loadSkeletonFromUsd (const UsdStageRefPtr &stage)
 Load a skeleton from a USD stage.
void momentum::saveSkeletonToUsd (const Skeleton &skeleton, UsdSkelSkeleton &skelPrim)
 Save a skeleton to a USD stage.
void momentum::saveCollisionGeometryToUsd (const CollisionGeometry &collision, const Skeleton &skeleton, const UsdStageRefPtr &stage, const SdfPath &skelRootPath)
 Save collision geometry as child prims under the skeleton.
CollisionGeometry momentum::loadCollisionGeometryFromUsd (const UsdStageRefPtr &stage, const Skeleton &skeleton)
 Load collision geometry from child prims.
void momentum::saveLocatorsToUsd (const LocatorList &locators, const Skeleton &skeleton, const UsdStageRefPtr &stage, const SdfPath &skelRootPath)
 Save locators as child prims under the skeleton.
LocatorList momentum::loadLocatorsFromUsd (const UsdStageRefPtr &stage, const Skeleton &skeleton)
 Load locators from child prims.