Blender V4.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_vector.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
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);
80 Object *mesh_obj,
81 const pxr::UsdPrim &prim,
82 ReportList *reports);
83
88
101void skel_export_chaser(pxr::UsdStageRefPtr stage,
102 const ObjExportMap &armature_export_map,
103 const ObjExportMap &skinned_mesh_export_map,
104 const ObjExportMap &shape_key_mesh_export_map,
105 const Depsgraph *depsgraph);
106
116void skinned_mesh_export_chaser(pxr::UsdStageRefPtr stage,
117 const ObjExportMap &armature_export_map,
118 const ObjExportMap &skinned_mesh_export_map,
119 pxr::UsdGeomXformCache &xf_cache,
120 const Depsgraph *depsgraph);
121
129void shape_key_export_chaser(pxr::UsdStageRefPtr stage,
130 const ObjExportMap &shape_key_mesh_export_map);
131
139void export_deform_verts(const Mesh *mesh,
140 const pxr::UsdSkelBindingAPI &skel_api,
141 Span<std::string> bone_names);
142
143} // namespace blender::io::usd
EvaluationStage stage
Definition deg_eval.cc:83
const Depsgraph * depsgraph
void shape_key_export_chaser(pxr::UsdStageRefPtr stage, const ObjExportMap &shape_key_mesh_export_map)
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< std::string > 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)
void import_mesh_skel_bindings(Main *bmain, Object *mesh_obj, const pxr::UsdPrim &prim, ReportList *reports)