Blender V5.0
usd_skel_convert.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 NVIDIA Corporation. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4#pragma once
5
6#include "BLI_map.hh"
7#include "BLI_string_ref.hh"
8
9#include <pxr/usd/usd/prim.h>
10#include <pxr/usd/usdGeom/xformCache.h>
11#include <pxr/usd/usdSkel/bindingAPI.h>
12
13struct Depsgraph;
14struct Main;
15struct Mesh;
16struct Object;
17struct ReportList;
18
19namespace blender::io::usd {
20
28
44void import_blendshapes(Main *bmain,
45 Object *mesh_obj,
46 const pxr::UsdPrim &prim,
47 ReportList *reports,
48 bool import_anim = true);
49
63void import_skeleton(Main *bmain,
64 Object *arm_obj,
65 const pxr::UsdSkelSkeleton &skel,
66 ReportList *reports,
67 bool import_anim = true);
78void import_mesh_skel_bindings(Object *mesh_obj, const pxr::UsdPrim &prim, ReportList *reports);
79
84
97void skel_export_chaser(pxr::UsdStageRefPtr stage,
98 const ObjExportMap &armature_export_map,
99 const ObjExportMap &skinned_mesh_export_map,
100 const ObjExportMap &shape_key_mesh_export_map,
101 const Depsgraph *depsgraph);
102
112void skinned_mesh_export_chaser(pxr::UsdStageRefPtr stage,
113 const ObjExportMap &armature_export_map,
114 const ObjExportMap &skinned_mesh_export_map,
115 pxr::UsdGeomXformCache &xf_cache,
116 const Depsgraph *depsgraph);
117
125void shape_key_export_chaser(pxr::UsdStageRefPtr stage,
126 const ObjExportMap &shape_key_mesh_export_map);
127
135void export_deform_verts(const Mesh *mesh,
136 const pxr::UsdSkelBindingAPI &skel_api,
137 Span<StringRef> bone_names);
138
139} // namespace blender::io::usd
struct Object Object
BPy_StructRNA * depsgraph
Map< const Object *, pxr::SdfPath > ObjExportMap
void shape_key_export_chaser(pxr::UsdStageRefPtr stage, const ObjExportMap &shape_key_mesh_export_map)
void import_mesh_skel_bindings(Object *mesh_obj, const pxr::UsdPrim &prim, ReportList *reports)
void skel_export_chaser(pxr::UsdStageRefPtr stage, const ObjExportMap &armature_export_map, const ObjExportMap &skinned_mesh_export_map, const ObjExportMap &shape_key_mesh_export_map, const Depsgraph *depsgraph)
void export_deform_verts(const Mesh *mesh, const pxr::UsdSkelBindingAPI &skel_api, const Span< StringRef > bone_names)
void import_blendshapes(Main *bmain, Object *mesh_obj, const pxr::UsdPrim &prim, ReportList *reports, const bool import_anim)
void skinned_mesh_export_chaser(pxr::UsdStageRefPtr stage, const ObjExportMap &armature_export_map, const ObjExportMap &skinned_mesh_export_map, pxr::UsdGeomXformCache &xf_cache, const Depsgraph *depsgraph)
void import_skeleton(Main *bmain, Object *arm_obj, const pxr::UsdSkelSkeleton &skel, ReportList *reports, const bool import_anim)