|
Blender V4.3
|
#include <usd_writer_mesh.hh>
Inherits blender::io::usd::USDGenericMeshWriter.
Public Member Functions | |
| USDMeshWriter (const USDExporterContext &ctx) | |
Public Member Functions inherited from blender::io::usd::USDGenericMeshWriter | |
| USDGenericMeshWriter (const USDExporterContext &ctx) | |
Public Member Functions inherited from blender::io::usd::USDAbstractWriter | |
| USDAbstractWriter (const USDExporterContext &usd_export_context) | |
| virtual void | write (HierarchyContext &context) override |
| const pxr::SdfPath & | usd_path () const |
| ReportList * | reports () const |
Public Member Functions inherited from blender::io::AbstractHierarchyWriter | |
| virtual | ~AbstractHierarchyWriter ()=default |
Protected Member Functions | |
| virtual void | do_write (HierarchyContext &context) override |
| virtual Mesh * | get_export_mesh (Object *object_eval, bool &r_needsfree) override |
| void | set_skel_export_flags (const HierarchyContext &context) |
| void | init_skinned_mesh (const HierarchyContext &context) |
| void | init_blend_shapes (const HierarchyContext &context) |
| void | add_shape_key_weights_sample (const Object *obj) |
Protected Member Functions inherited from blender::io::usd::USDGenericMeshWriter | |
| virtual bool | is_supported (const HierarchyContext *context) const override |
| virtual void | free_export_mesh (Mesh *mesh) |
Protected Member Functions inherited from blender::io::usd::USDAbstractWriter | |
| std::string | get_export_file_path () const |
| pxr::UsdTimeCode | get_export_time_code () const |
| pxr::SdfPath | get_material_library_path () const |
| pxr::UsdShadeMaterial | ensure_usd_material (const HierarchyContext &context, Material *material) const |
| void | write_id_properties (const pxr::UsdPrim &prim, const ID &id, pxr::UsdTimeCode=pxr::UsdTimeCode::Default()) const |
| void | write_user_properties (const pxr::UsdPrim &prim, IDProperty *properties, pxr::UsdTimeCode=pxr::UsdTimeCode::Default()) const |
| void | write_visibility (const HierarchyContext &context, const pxr::UsdTimeCode timecode, const pxr::UsdGeomImageable &usd_geometry) |
| virtual bool | mark_as_instance (const HierarchyContext &context, const pxr::UsdPrim &prim) |
| virtual void | author_extent (const pxr::UsdTimeCode timecode, pxr::UsdGeomBoundable &prim) |
Protected Member Functions inherited from blender::io::AbstractHierarchyWriter | |
| virtual bool | check_is_animated (const HierarchyContext &context) const |
Additional Inherited Members | |
Static Protected Member Functions inherited from blender::io::AbstractHierarchyWriter | |
| static bool | check_has_physics (const HierarchyContext &context) |
| static bool | check_has_deforming_physics (const HierarchyContext &context) |
Protected Attributes inherited from blender::io::usd::USDAbstractWriter | |
| const USDExporterContext | usd_export_context_ |
| pxr::UsdUtilsSparseValueWriter | usd_value_writer_ |
| bool | frame_has_been_written_ |
| bool | is_animated_ |
Definition at line 59 of file usd_writer_mesh.hh.
| blender::io::usd::USDMeshWriter::USDMeshWriter | ( | const USDExporterContext & | ctx | ) |
Definition at line 732 of file usd_writer_mesh.cc.
|
protected |
Definition at line 886 of file usd_writer_mesh.cc.
References CLOG_WARN, blender::io::usd::get_blendshape_weights(), blender::io::usd::USDAbstractWriter::get_export_time_code(), blender::io::usd::get_mesh_shape_key(), LOG, blender::io::usd::USDExporterContext::stage, stage, blender::io::usd::TempBlendShapeWeightsPrimvarName, blender::io::usd::USDAbstractWriter::usd_export_context_, and blender::io::usd::USDExporterContext::usd_path.
Referenced by do_write().
|
overrideprotectedvirtual |
Reimplemented from blender::io::usd::USDGenericMeshWriter.
Definition at line 838 of file usd_writer_mesh.cc.
References add_shape_key_weights_sample(), blender::io::usd::USDGenericMeshWriter::do_write(), blender::io::usd::USDAbstractWriter::frame_has_been_written_, init_blend_shapes(), init_skinned_mesh(), and set_skel_export_flags().
|
overrideprotectedvirtual |
Implements blender::io::usd::USDGenericMeshWriter.
Definition at line 864 of file usd_writer_mesh.cc.
References BKE_object_get_evaluated_mesh(), BKE_object_get_pre_modified_mesh(), and blender::io::usd::get_shape_key_basis_mesh().
Referenced by init_skinned_mesh().
|
protected |
Definition at line 819 of file usd_writer_mesh.cc.
References blender::io::usd::USDExportParams::allow_unicode, CLOG_WARN, blender::io::usd::create_blend_shapes(), blender::io::usd::USDExporterContext::export_params, LOG, blender::io::HierarchyContext::object, blender::io::usd::USDExporterContext::stage, stage, blender::io::usd::USDAbstractWriter::usd_export_context_, and blender::io::usd::USDExporterContext::usd_path.
Referenced by do_write().
|
protected |
Definition at line 753 of file usd_writer_mesh.cc.
References CLOG_WARN, blender::io::usd::USDExporterContext::depsgraph, blender::io::usd::export_deform_verts(), blender::io::usd::USDExporterContext::export_params, blender::io::usd::USDGenericMeshWriter::free_export_mesh(), blender::io::usd::get_armature_bone_names(), blender::io::usd::get_armature_modifier_obj(), get_export_mesh(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), LOG, blender::io::usd::USDExportParams::only_deform_bones, blender::io::usd::USDExporterContext::stage, stage, blender::io::usd::USDAbstractWriter::usd_export_context_, and blender::io::usd::USDExporterContext::usd_path.
Referenced by do_write().
|
protected |
Determine whether we should write skinned mesh or blend shape data based on the export parameters and the modifiers enabled on the object.
Definition at line 737 of file usd_writer_mesh.cc.
References blender::io::usd::can_export_skinned_mesh(), blender::io::usd::USDExporterContext::depsgraph, blender::io::usd::USDExporterContext::export_params, blender::io::usd::is_mesh_with_shape_keys(), params, and blender::io::usd::USDAbstractWriter::usd_export_context_.
Referenced by do_write().