Blender V5.0
blender::io::usd::USDMeshWriter Class Reference

#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)
void write (HierarchyContext &context) override
const pxr::SdfPath & usd_path () const
ReportListreports () const
Public Member Functions inherited from blender::io::AbstractHierarchyWriter
virtual ~AbstractHierarchyWriter ()=default

Protected Member Functions

void do_write (HierarchyContext &context) override
Meshget_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
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::SdfPath get_proto_material_root_path (const HierarchyContext &context) const
pxr::UsdShadeMaterial ensure_usd_material_created (const HierarchyContext &context, Material *material) 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 time, const pxr::UsdGeomImageable &usd_geometry)
virtual bool mark_as_instance (const HierarchyContext &context, const pxr::UsdPrim &prim)
void author_extent (const pxr::UsdGeomBoundable &boundable, const pxr::UsdTimeCode time)
void author_extent (const pxr::UsdGeomBoundable &boundable, const std::optional< Bounds< float3 > > &bounds, const pxr::UsdTimeCode time)
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_

Detailed Description

Definition at line 59 of file usd_writer_mesh.hh.

Constructor & Destructor Documentation

◆ USDMeshWriter()

blender::io::usd::USDMeshWriter::USDMeshWriter ( const USDExporterContext & ctx)

Member Function Documentation

◆ add_shape_key_weights_sample()

◆ do_write()

◆ get_export_mesh()

Mesh * blender::io::usd::USDMeshWriter::get_export_mesh ( Object * object_eval,
bool & r_needsfree )
overrideprotectedvirtual

◆ init_blend_shapes()

void blender::io::usd::USDMeshWriter::init_blend_shapes ( const HierarchyContext & context)
protected

◆ init_skinned_mesh()

◆ set_skel_export_flags()

void blender::io::usd::USDMeshWriter::set_skel_export_flags ( const HierarchyContext & context)
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 712 of file usd_writer_mesh.cc.

References blender::io::usd::can_export_skinned_mesh(), blender::io::usd::is_mesh_with_shape_keys(), params, and blender::io::usd::USDAbstractWriter::usd_export_context_.

Referenced by do_write().


The documentation for this class was generated from the following files: