Blender V5.3
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
13namespace blender {
14
15struct Depsgraph;
16struct Main;
17struct Mesh;
18struct Object;
19struct ReportList;
20
21namespace io::usd {
22
30
46void import_blendshapes(Main *bmain,
47 Object *mesh_obj,
48 const pxr::UsdPrim &prim,
49 ReportList *reports,
50 bool import_anim = true);
51
65void import_skeleton(Main *bmain,
66 Object *arm_obj,
67 const pxr::UsdSkelSkeleton &skel,
68 ReportList *reports,
69 bool import_anim = true);
80void import_mesh_skel_bindings(Object *mesh_obj, const pxr::UsdPrim &prim, ReportList *reports);
81
86
99void skel_export_chaser(pxr::UsdStageRefPtr stage,
100 const ObjExportMap &armature_export_map,
101 const ObjExportMap &skinned_mesh_export_map,
102 const ObjExportMap &shape_key_mesh_export_map,
103 const Depsgraph *depsgraph);
104
114void skinned_mesh_export_chaser(pxr::UsdStageRefPtr stage,
115 const ObjExportMap &armature_export_map,
116 const ObjExportMap &skinned_mesh_export_map,
117 pxr::UsdGeomXformCache &xf_cache,
118 const Depsgraph *depsgraph);
119
127void shape_key_export_chaser(pxr::UsdStageRefPtr stage,
128 const ObjExportMap &shape_key_mesh_export_map);
129
137void export_deform_verts(const Mesh *mesh,
138 const pxr::UsdSkelBindingAPI &skel_api,
139 Span<StringRef> bone_names);
140
141} // namespace io::usd
142} // namespace blender
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)
BMesh Iterators.