Loading...
Searching...
No Matches
skelGuideData.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_SKEL_GUIDE_DATA_H
8#define PXR_USD_IMAGING_USD_SKEL_IMAGING_SKEL_GUIDE_DATA_H
9
10#include "pxr/usdImaging/usdSkelImaging/api.h"
11
12#include "pxr/imaging/hd/dataSourceTypeDefs.h"
13
14#include "pxr/usd/sdf/path.h"
17
18#include "pxr/base/vt/array.h"
19
21
22PXR_NAMESPACE_OPEN_SCOPE
23
25
37{
40
45 size_t numJoints;
46
52 VtIntArray boneJointIndices;
53
59 VtVec3fArray boneMeshPoints;
60};
61
63USDSKELIMAGING_API
65UsdSkelImagingComputeSkelGuideData(
66 const UsdSkelImagingSkelData &skelData);
67
69USDSKELIMAGING_API
70VtIntArray
71UsdSkelImagingComputeSkelGuideFaceVertexCounts(
72 const UsdSkelImagingSkelGuideData &skelGuideData);
73
75USDSKELIMAGING_API
76VtIntArray
77UsdSkelImagingComputeSkelGuideFaceVertexIndices(
78 const UsdSkelImagingSkelGuideData &skelGuideData);
79
81USDSKELIMAGING_API
82VtVec3fArray
83UsdSkelImagingComputeSkelGuidePoints(
84 const UsdSkelImagingSkelGuideData &skelGuideData,
85 const VtArray<GfMatrix4f> &skinningTransforms);
86
87PXR_NAMESPACE_CLOSE_SCOPE
88
89#endif
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:274
Represents an arbitrary dimensional rectangular container class.
Definition: array.h:213
Standard pointer typedefs.
Some of the data necessary to compute the skinning transforms of a skeleton.
Definition: skelData.h:29
Data to compute the skeleton guide as mesh.
Definition: skelGuideData.h:37
SdfPath primPath
Path of skeleton prim - used only to emit warnings/errors.
Definition: skelGuideData.h:39
VtIntArray boneJointIndices
Indices into joints of UsdSkelTopology - one for each point of the mesh.
Definition: skelGuideData.h:52
size_t numJoints
Number of joints in UsdSkelTopology to create the data.
Definition: skelGuideData.h:45
VtVec3fArray boneMeshPoints
The points of the mesh before applying the skinning transforms.
Definition: skelGuideData.h:59