24 #ifndef GUSD_AGENTUTILS_H
25 #define GUSD_AGENTUTILS_H
40 #include "pxr/base/vt/array.h"
65 bool createLocomotionJoint =
true);
74 const VtTokenArray& jointNames,
75 const VtMatrix4dArray* restXforms =
nullptr,
76 bool createLocomotionJoint =
true);
88 const char*
lod=
nullptr,
104 const char*
lod=
nullptr,
121 const VtTokenArray& jointNames,
122 const VtMatrix4dArray& invBindTransforms,
124 const char*
lod=
nullptr,
141 const char*
lod=
nullptr,
153 const VtTokenArray &jointNames,
154 const VtMatrix4dArray &invBindTransforms);
159 const char *myLOD =
nullptr;
168 const VtTokenArray &jointNames,
169 const VtMatrix4dArray &invBindTransforms)>;
185 #endif // GUSD_AGENTUTILS_H
GUSD_API GU_AgentRigPtr GusdCreateAgentRig(const UT_StringHolder &name, const UsdSkelSkeletonQuery &skelQuery, bool createLocomotionJoint=true)
Create an agent rig from a skelQuery.
static constexpr UsdTimeCode EarliestTime()
GT_API const UT_StringHolder time
UT_Function< bool(exint i, const GusdSkinImportParms &parms, const VtTokenArray &jointNames, const VtMatrix4dArray &invBindTransforms)> GusdSkinnedPrimCallback
GUSD_API bool GusdForEachSkinnedPrim(const UsdSkelBinding &binding, const GusdSkinImportParms &parms, const GusdSkinnedPrimCallback &callback)
GT_API const UT_StringHolder topology
Wrapper around hboost::intrusive_ptr.
GUSD_API bool GusdCoalesceAgentShapes(GU_Detail &gd, const UsdSkelBinding &binding, UsdTimeCode time=UsdTimeCode::EarliestTime(), const char *lod=nullptr, GusdPurposeSet purpose=GusdPurposeSet(GUSD_PURPOSE_DEFAULT|GUSD_PURPOSE_PROXY), UT_ErrorSeverity sev=UT_ERROR_WARNING, const GT_RefineParms *refineParms=nullptr)
GLuint const GLchar * name
std::function< T > UT_Function
GUSD_API bool GusdReadSkinnablePrim(GU_Detail &gd, const UsdSkelSkinningQuery &skinningQuery, const VtTokenArray &jointNames, const VtMatrix4dArray &invBindTransforms, UsdTimeCode time=UsdTimeCode::EarliestTime(), const char *lod=nullptr, GusdPurposeSet purpose=GusdPurposeSet(GUSD_PURPOSE_DEFAULT|GUSD_PURPOSE_PROXY), UT_ErrorSeverity sev=UT_ERROR_ABORT, const GT_RefineParms *refineParms=nullptr)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
GUSD_API bool GusdGetJointNames(const UsdSkelSkeleton &skel, VtTokenArray &jointNames)
#define PXR_NAMESPACE_CLOSE_SCOPE
GUSD_API bool GusdCreateCaptureAttribute(GU_Detail &detail, const UsdSkelSkinningQuery &skinningQuery, const VtTokenArray &jointNames, const VtMatrix4dArray &invBindTransforms)
GUSD_API bool GusdReadSkinnablePrims(const UsdSkelBinding &binding, UT_Array< GU_DetailHandle > &details, UsdTimeCode time=UsdTimeCode::EarliestTime(), const char *lod=nullptr, GusdPurposeSet purpose=GusdPurposeSet(GUSD_PURPOSE_DEFAULT|GUSD_PURPOSE_PROXY), UT_ErrorSeverity sev=UT_ERROR_WARNING, const GT_RefineParms *refineParms=nullptr)
GUSD_API GU_AgentShapeLibPtr GusdCreateAgentShapeLib(const UsdSkelBinding &binding, UsdTimeCode time=UsdTimeCode::EarliestTime(), const char *lod=nullptr, GusdPurposeSet purpose=GusdPurposeSet(GUSD_PURPOSE_DEFAULT|GUSD_PURPOSE_PROXY), UT_ErrorSeverity sev=UT_ERROR_WARNING, const GT_RefineParms *refineParms=nullptr)