|
Blender
V3.3
|
#include <usd_reader_mesh.h>
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 |
| struct Mesh * | read_mesh (struct Mesh *existing_mesh, double motionSampleTime, int read_flag, const char **err_str) override |
| bool | topology_changed (const Mesh *existing_mesh, double motionSampleTime) override |
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) |
| 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 |
| Object * | object () const |
| void | object (Object *ob) |
| USDPrimReader * | parent () const |
| void | parent (USDPrimReader *parent) |
| int | refcount () const |
| void | incref () |
| void | decref () |
| const std::string & | name () const |
| const std::string & | prim_path () const |
Additional Inherited Members | |
Protected Member Functions inherited from blender::io::usd::USDXformReader | |
| bool | is_root_xform_prim () const |
Protected Attributes inherited from blender::io::usd::USDPrimReader | |
| std::string | name_ |
| std::string | prim_path_ |
| Object * | object_ |
| pxr::UsdPrim | prim_ |
| const USDImportParams & | import_params_ |
| USDPrimReader * | parent_reader_ |
| const ImportSettings * | settings_ |
| int | refcount_ |
Definition at line 15 of file usd_reader_mesh.h.
| blender::io::usd::USDMeshReader::USDMeshReader | ( | const pxr::UsdPrim & | prim, |
| const USDImportParams & | import_params, | ||
| const ImportSettings & | settings | ||
| ) |
Definition at line 205 of file usd_reader_mesh.cc.
|
overridevirtual |
Implements blender::io::usd::USDPrimReader.
Definition at line 217 of file usd_reader_mesh.cc.
References BKE_mesh_add(), BKE_object_add_only_object(), Object::data, mesh, blender::io::usd::USDPrimReader::name_, OB_MESH, and blender::io::usd::USDPrimReader::object_.
|
overridevirtual |
Implements blender::io::usd::USDGeomReader.
Definition at line 810 of file usd_reader_mesh.cc.
References add_customdata_cb(), BKE_mesh_new_nomain_from_template(), CD_MLOOPUV, ELEM, USDImportParams::import_materials, blender::io::usd::USDPrimReader::import_params_, interp(), Mesh::mloopuv, MOD_MESHSEQ_READ_UV, Mesh::mpoly, blender::io::usd::USDPrimReader::name(), blender::io::usd::ImportSettings::read_flag, usdtokens::st(), topology_changed(), Mesh::totpoly, and type.
Referenced by read_object_data().
|
overridevirtual |
Reimplemented from blender::io::usd::USDPrimReader.
Definition at line 225 of file usd_reader_mesh.cc.
References blender::io::usd::USDGeomReader::add_cache_modifier(), blender::io::usd::USDGeomReader::add_subdiv_modifier(), BKE_mesh_nomain_to_mesh(), CD_MASK_MESH, Object::data, Mesh::flag, blender::io::usd::USDPrimReader::import_params_, USDImportParams::import_subdiv, ME_AUTOSMOOTH, mesh, USDImportParams::mesh_read_flag, blender::io::usd::USDPrimReader::object_, read_mesh(), and blender::io::usd::USDXformReader::read_object_data().
|
overridevirtual |
Reimplemented from blender::io::usd::USDGeomReader.
Definition at line 269 of file usd_reader_mesh.cc.
References usdtokens::normalsPrimvar(), Mesh::totloop, Mesh::totpoly, and Mesh::totvert.
Referenced by read_mesh().
|
overridevirtual |
Reimplemented from blender::io::usd::USDPrimReader.
Definition at line 264 of file usd_reader_mesh.cc.