Blender V4.3
blender::io::usd::USDMeshReader Class Reference

#include <usd_reader_mesh.hh>

Inherits blender::io::usd::USDGeomReader.

Public Member Functions

 USDMeshReader (const pxr::UsdPrim &prim, const USDImportParams &import_params, const ImportSettings &settings)
bool valid () const override
void create_object (Main *bmain, double motionSampleTime) override
void read_object_data (Main *bmain, double motionSampleTime) override
void read_geometry (bke::GeometrySet &geometry_set, USDMeshReadParams params, const char **r_err_str) override
bool topology_changed (const Mesh *existing_mesh, double motionSampleTime) override
std::string get_skeleton_path () const
Public Member Functions inherited from blender::io::usd::USDGeomReader
 USDGeomReader (const pxr::UsdPrim &prim, const USDImportParams &import_params, const ImportSettings &settings)
void add_cache_modifier ()
void add_subdiv_modifier ()
Public Member Functions inherited from blender::io::usd::USDXformReader
 USDXformReader (const pxr::UsdPrim &prim, const USDImportParams &import_params, const ImportSettings &settings)
void create_object (Main *bmain, double motionSampleTime) override
void read_object_data (Main *bmain, double motionSampleTime) override
void read_matrix (float r_mat[4][4], float time, float scale, bool *r_is_constant) const
bool use_parent_xform () const
void set_use_parent_xform (bool flag)
bool prim_has_xform_ops () const
Public Member Functions inherited from blender::io::usd::USDPrimReader
 USDPrimReader (const pxr::UsdPrim &prim, const USDImportParams &import_params, const ImportSettings &settings)
virtual ~USDPrimReader ()
const pxr::UsdPrim & prim () const
Objectobject () const
void object (Object *ob)
USDPrimReaderparent () const
void parent (USDPrimReader *parent)
ReportListreports () const
int refcount () const
void incref ()
void decref ()
const std::string & name () const
const std::string & prim_path () const
void set_is_in_instancer_proto (bool flag)
bool is_in_instancer_proto () const
bool is_in_proto () const

Additional Inherited Members

Protected Member Functions inherited from blender::io::usd::USDXformReader
bool is_root_xform_prim () const
Protected Member Functions inherited from blender::io::usd::USDPrimReader
void set_props (bool merge_with_parent=false, pxr::UsdTimeCode motionSampleTime=pxr::UsdTimeCode::Default())
Protected Attributes inherited from blender::io::usd::USDPrimReader
std::string name_
std::string prim_path_
Objectobject_
pxr::UsdPrim prim_
const USDImportParamsimport_params_
USDPrimReaderparent_reader_
const ImportSettingssettings_
int refcount_
bool is_in_instancer_proto_

Detailed Description

Definition at line 18 of file usd_reader_mesh.hh.

Constructor & Destructor Documentation

◆ USDMeshReader()

blender::io::usd::USDMeshReader::USDMeshReader ( const pxr::UsdPrim & prim,
const USDImportParams & import_params,
const ImportSettings & settings )

Member Function Documentation

◆ create_object()

void blender::io::usd::USDMeshReader::create_object ( Main * bmain,
double motionSampleTime )
overridevirtual

◆ get_skeleton_path()

std::string blender::io::usd::USDMeshReader::get_skeleton_path ( ) const

If the USD mesh prim has a valid UsdSkel schema defined, return the USD path string to the bound skeleton, if any. Returns the empty string if no skeleton binding is defined.

The returned path is currently used to match armature modifiers with armature objects during import.

Definition at line 828 of file usd_reader_mesh.cc.

References blender::io::usd::USDPrimReader::prim_.

Referenced by blender::io::usd::USDStageReader::process_armature_modifiers().

◆ read_geometry()

void blender::io::usd::USDMeshReader::read_geometry ( bke::GeometrySet & geometry_set,
USDMeshReadParams params,
const char ** r_err_str )
overridevirtual

◆ read_object_data()

◆ topology_changed()

bool blender::io::usd::USDMeshReader::topology_changed ( const Mesh * existing_mesh,
double motionSampleTime )
overridevirtual

◆ valid()

bool blender::io::usd::USDMeshReader::valid ( ) const
overridevirtual

Reimplemented from blender::io::usd::USDPrimReader.

Definition at line 228 of file usd_reader_mesh.cc.


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