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
14
15#include "pxr/imaging/hd/dataSource.h"
16#include "pxr/imaging/hd/dataSourceTypeDefs.h"
17
18#include "pxr/usd/sdf/path.h"
21
22#include "pxr/base/vt/array.h"
23
25
26PXR_NAMESPACE_OPEN_SCOPE
27
29
33{
36
37 UsdSkelImagingSkeletonSchema skeletonSchema;
38
41
44 VtArray<GfMatrix4f> inverseBindTransforms;
45
47 const UsdSkelImagingSkeletonSchema& schema);
48};
49
51USDSKELIMAGING_API
53UsdSkelImagingComputeSkelData(
54 HdSceneIndexBaseRefPtr const &sceneIndex,
55 const SdfPath &primPath);
56
58USDSKELIMAGING_API
60UsdSkelImagingComputeSkinningTransforms(
61 const UsdSkelImagingSkelData &data,
63 HdMatrix4fArrayDataSourceHandle const &restTransforms,
64 const VtArray<UsdSkelImagingAnimationSchema>& animationSchemas,
65 const VtArray<SdfPath>& animationSources,
66 const HdSampledDataSource::Time& shutterOffset);
67
68PXR_NAMESPACE_CLOSE_SCOPE
69
70#endif
Abstract interface to scene data.
Definition: sceneIndex.h:54
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:280
Corresponds to UsdSkelSkeleton.
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:33
SdfPath primPath
Path of deformable prim. Used only for warnings/error messages.
Definition: skelData.h:35
UsdSkelTopology topology
From skeleton's joints.
Definition: skelData.h:40
VtArray< GfMatrix4f > bindTransforms
From skeleton.
Definition: skelData.h:43