|
Blender V5.0
|
#include <usd_writer_mesh.hh>
Inherits blender::io::usd::USDAbstractWriter.
Inherited by blender::io::usd::USDMeshWriter, blender::io::usd::USDMetaballWriter, and blender::io::usd::USDTextWriter.
Public Member Functions | |
| 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 |
| ReportList * | reports () const |
| Public Member Functions inherited from blender::io::AbstractHierarchyWriter | |
| virtual | ~AbstractHierarchyWriter ()=default |
Protected Member Functions | |
| bool | is_supported (const HierarchyContext *context) const override |
| void | do_write (HierarchyContext &context) override |
| virtual Mesh * | get_export_mesh (Object *object_eval, bool &r_needsfree)=0 |
| 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_ |
Definition at line 26 of file usd_writer_mesh.hh.
| blender::io::usd::USDGenericMeshWriter::USDGenericMeshWriter | ( | const USDExporterContext & | ctx | ) |
Definition at line 47 of file usd_writer_mesh.cc.
References blender::io::usd::USDAbstractWriter::USDAbstractWriter().
Referenced by blender::io::usd::USDMeshWriter::USDMeshWriter(), blender::io::usd::USDMetaballWriter::USDMetaballWriter(), and blender::io::usd::USDTextWriter::USDTextWriter().
|
overrideprotectedvirtual |
Implements blender::io::usd::USDAbstractWriter.
Reimplemented in blender::io::usd::USDMeshWriter.
Definition at line 85 of file usd_writer_mesh.cc.
References BKE_mesh_from_bmesh_for_eval_nomain(), BKE_mesh_to_bmesh_ex(), bm, BM_mesh_free(), BM_mesh_triangulate(), BMeshFromMeshParams::calc_face_normal, BMeshFromMeshParams::calc_vert_normal, Object::duplicator_visibility_flag, free_export_mesh(), get_export_mesh(), blender::io::usd::USDAbstractWriter::get_export_time_code(), blender::io::usd::get_last_subdiv_modifier(), Mesh::id, OB_DUPLI_FLAG_RENDER, blender::io::usd::USDAbstractWriter::usd_export_context_, and blender::io::usd::USDAbstractWriter::write_id_properties().
Referenced by blender::io::usd::USDMeshWriter::do_write().
|
protectedvirtual |
Reimplemented in blender::io::usd::USDMetaballWriter, and blender::io::usd::USDTextWriter.
Definition at line 281 of file usd_writer_mesh.cc.
References BKE_id_free().
Referenced by do_write(), and blender::io::usd::USDMeshWriter::init_skinned_mesh().
|
protectedpure virtual |
Implemented in blender::io::usd::USDMeshWriter, blender::io::usd::USDMetaballWriter, and blender::io::usd::USDTextWriter.
Referenced by do_write().
|
overrideprotectedvirtual |
Returns true if the data to be written is actually supported. This would, for example, allow a hypothetical camera writer accept a perspective camera but reject an orthogonal one.
Returning false from a transform writer will prevent the object and all its descendants from being exported. Returning false from a data writer (object data, hair, or particles) will only prevent that data from being written (and thus cause the object to be exported as an Empty).
Reimplemented from blender::io::usd::USDAbstractWriter.
Reimplemented in blender::io::usd::USDMetaballWriter.
Definition at line 51 of file usd_writer_mesh.cc.
References blender::io::usd::USDAbstractWriter::usd_export_context_.
Referenced by blender::io::usd::USDMetaballWriter::is_supported().