Loading...
Searching...
No Matches
skelData.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_DATA_H
8#define PXR_USD_IMAGING_USD_SKEL_IMAGING_SKEL_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
29{
32
35
38
40 UsdSkelAnimMapper animMapper;
41
44 VtArray<GfMatrix4f> inverseBindTransforms;
45};
46
48USDSKELIMAGING_API
50UsdSkelImagingComputeSkelData(
51 HdSceneIndexBaseRefPtr const &sceneIndex,
52 const SdfPath &primPath);
53
55USDSKELIMAGING_API
57UsdSkelImagingComputeSkinningTransforms(
58 const UsdSkelImagingSkelData &data,
60 HdMatrix4fArrayDataSourceHandle const &restTransforms,
62 const VtArray<GfVec3f> &translations,
63 const VtArray<GfQuatf> &rotations,
64 const VtArray<GfVec3h> &scales);
65
66PXR_NAMESPACE_CLOSE_SCOPE
67
68#endif
Abstract interface to scene data.
Definition: sceneIndex.h:54
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:274
Object holding information describing skeleton topology.
Definition: topology.h:29
Represents an arbitrary dimensional rectangular container class.
Definition: array.h:213
Standard pointer typedefs.
#define TF_DECLARE_REF_PTRS(type)
Define standard ref pointer types.
Definition: declarePtrs.h:58
Some of the data necessary to compute the skinning transforms of a skeleton.
Definition: skelData.h:29
SdfPath primPath
Path of deformable prim. Used only for warnings/error messages.
Definition: skelData.h:31
SdfPath animationSource
Path of animation prim.
Definition: skelData.h:34
UsdSkelTopology topology
From skeleton's joints.
Definition: skelData.h:37
VtArray< GfMatrix4f > bindTransforms
From skeleton.
Definition: skelData.h:43
UsdSkelAnimMapper animMapper
Remapping of skelAnimation's data to skeleton's hierarchy.
Definition: skelData.h:40