HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
jointInfluencesData.h
Go to the documentation of this file.
1 //
2 // Copyright 2025 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 #ifndef PXR_USD_IMAGING_USD_SKEL_IMAGING_JOINT_INFLUENCES_DATA_H
8 #define PXR_USD_IMAGING_USD_SKEL_IMAGING_JOINT_INFLUENCES_DATA_H
9 
11 
13 
15 
17 
18 class HdPrimvarsSchema;
19 
20 /// Some of the data feeding into the ext computations to skin a prim.
21 /// They are related to which points are influenced by what skinning
22 /// transform. These data come from the SkelBindingAPI primvars.
24 {
25  // Each vec2f is a pair of a joint index and weight.
26  //
27  // If hasConstantInfluences is false, then the array contains
28  // numInfluencesPerComponent elements for each point of the skinned
29  // prim.
30  //
31  // Otherwise, the array just contains numInfluencesPerComponent
32  // and every point is affected the same way.
33  VtVec2fArray influences;
36 
37  // Remapping of joints in skeleton to joints used for skinning.
39 };
40 
41 /// Compute data from SkelBindingAPI prim data source and bound
42 /// Skeleton prim data source.
46  HdContainerDataSourceHandle const &primSource,
47  HdContainerDataSourceHandle const &skeletonPrimSource);
48 
50 
51 #endif
#define USDSKELIMAGING_API
Definition: api.h:23
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
USDSKELIMAGING_API UsdSkelImagingJointInfluencesData UsdSkelImagingComputeJointInfluencesData(HdContainerDataSourceHandle const &primSource, HdContainerDataSourceHandle const &skeletonPrimSource)