Loading...
Searching...
No Matches
jointInfluencesData.h
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
10#include "pxr/usdImaging/usdSkelImaging/api.h"
11
13
14#include "pxr/imaging/hd/dataSourceTypeDefs.h"
15
16PXR_NAMESPACE_OPEN_SCOPE
17
18class HdPrimvarsSchema;
19
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;
34 bool hasConstantInfluences;
35 int numInfluencesPerComponent;
36
37 // Remapping of joints in skeleton to joints used for skinning.
38 UsdSkelAnimMapper jointMapper;
39};
40
43USDSKELIMAGING_API
45UsdSkelImagingComputeJointInfluencesData(
46 HdContainerDataSourceHandle const &primSource,
47 HdContainerDataSourceHandle const &skeletonPrimSource);
48
49PXR_NAMESPACE_CLOSE_SCOPE
50
51#endif
Some of the data feeding into the ext computations to skin a prim.