|
Blender V4.3
|
#include <mesh.hh>
Inherits blender::io::hydra::ObjectData.
Classes | |
| struct | SubMesh |
Public Member Functions | |
| MeshData (HydraSceneDelegate *scene_delegate, const Object *object, pxr::SdfPath const &prim_id) | |
| void | init () override |
| void | insert () override |
| void | remove () override |
| void | update () override |
| pxr::VtValue | get_data (pxr::TfToken const &key) const override |
| pxr::VtValue | get_data (pxr::SdfPath const &id, pxr::TfToken const &key) const override |
| pxr::SdfPath | material_id (pxr::SdfPath const &id) const override |
| void | available_materials (Set< pxr::SdfPath > &paths) const override |
| pxr::HdMeshTopology | topology (pxr::SdfPath const &id) const |
| pxr::HdPrimvarDescriptorVector | primvar_descriptors (pxr::HdInterpolation interpolation) const |
| pxr::HdCullStyle | cull_style (pxr::SdfPath const &id) const |
| bool | double_sided (pxr::SdfPath const &id) const |
| void | update_double_sided (MaterialData *mat_data) |
| pxr::SdfPathVector | submesh_paths () const |
Public Member Functions inherited from blender::io::hydra::ObjectData | |
| ObjectData (HydraSceneDelegate *scene_delegate, const Object *object, pxr::SdfPath const &prim_id) | |
| virtual pxr::SdfPath | material_id () const |
| virtual pxr::VtValue | get_data (pxr::TfToken const &key) const=0 |
Public Member Functions inherited from blender::io::hydra::IdData | |
| IdData (HydraSceneDelegate *scene_delegate, const ID *id, pxr::SdfPath const &prim_id) | |
| virtual | ~IdData ()=default |
Protected Member Functions | |
| void | write_materials () override |
Protected Member Functions inherited from blender::io::hydra::ObjectData | |
| virtual void | write_transform () |
| MaterialData * | get_or_create_material (const Material *mat) |
Additional Inherited Members | |
Static Public Member Functions inherited from blender::io::hydra::ObjectData | |
| static std::unique_ptr< ObjectData > | create (HydraSceneDelegate *scene_delegate, const Object *object, pxr::SdfPath const &prim_id) |
| static bool | is_supported (const Object *object) |
| static bool | is_mesh (const Object *object) |
| static bool | is_visible (HydraSceneDelegate *scene_delegate, const Object *object, int mode=OB_VISIBLE_SELF) |
Public Attributes inherited from blender::io::hydra::ObjectData | |
| pxr::GfMatrix4d | transform |
| bool | visible = true |
Public Attributes inherited from blender::io::hydra::IdData | |
| const ID * | id |
| pxr::SdfPath | prim_id |
Protected Attributes inherited from blender::io::hydra::IdData | |
| HydraSceneDelegate * | scene_delegate_ |
| blender::io::hydra::MeshData::MeshData | ( | HydraSceneDelegate * | scene_delegate, |
| const Object * | object, | ||
| pxr::SdfPath const & | prim_id ) |
Definition at line 28 of file io/usd/hydra/mesh.cc.
|
overridevirtual |
Reimplemented from blender::io::hydra::ObjectData.
Definition at line 121 of file io/usd/hydra/mesh.cc.
| pxr::HdCullStyle blender::io::hydra::MeshData::cull_style | ( | pxr::SdfPath const & | id | ) | const |
Definition at line 159 of file io/usd/hydra/mesh.cc.
References blender::io::hydra::MaterialData::cull_style(), and blender::io::hydra::MeshData::SubMesh::mat_data.
Referenced by blender::io::hydra::HydraSceneDelegate::GetCullStyle().
| bool blender::io::hydra::MeshData::double_sided | ( | pxr::SdfPath const & | id | ) | const |
Definition at line 168 of file io/usd/hydra/mesh.cc.
References blender::io::hydra::MaterialData::double_sided, and blender::io::hydra::MeshData::SubMesh::mat_data.
Referenced by blender::io::hydra::HydraSceneDelegate::GetDoubleSided().
|
overridevirtual |
Reimplemented from blender::io::hydra::ObjectData.
Definition at line 97 of file io/usd/hydra/mesh.cc.
References get_data(), and blender::io::hydra::usdtokens::st().
|
overridevirtual |
Implements blender::io::hydra::IdData.
Definition at line 92 of file io/usd/hydra/mesh.cc.
Referenced by get_data().
|
overridevirtual |
Implements blender::io::hydra::IdData.
Definition at line 35 of file io/usd/hydra/mesh.cc.
References BKE_object_to_mesh(), BKE_object_to_mesh_clear(), ID_LOGN, write_materials(), and blender::io::hydra::ObjectData::write_transform().
Referenced by update().
|
overridevirtual |
Implements blender::io::hydra::IdData.
Definition at line 50 of file io/usd/hydra/mesh.cc.
References ID_LOGN.
|
overridevirtual |
Reimplemented from blender::io::hydra::ObjectData.
Definition at line 112 of file io/usd/hydra/mesh.cc.
References blender::io::hydra::MeshData::SubMesh::mat_data, and blender::io::hydra::IdData::prim_id.
| pxr::HdPrimvarDescriptorVector blender::io::hydra::MeshData::primvar_descriptors | ( | pxr::HdInterpolation | interpolation | ) | const |
Definition at line 139 of file io/usd/hydra/mesh.cc.
References blender::io::hydra::usdtokens::st().
|
overridevirtual |
Implements blender::io::hydra::IdData.
Definition at line 56 of file io/usd/hydra/mesh.cc.
References ID_LOG.
| pxr::SdfPathVector blender::io::hydra::MeshData::submesh_paths | ( | ) | const |
Definition at line 189 of file io/usd/hydra/mesh.cc.
References ret.
| pxr::HdMeshTopology blender::io::hydra::MeshData::topology | ( | pxr::SdfPath const & | id | ) | const |
Definition at line 130 of file io/usd/hydra/mesh.cc.
References blender::io::hydra::MeshData::SubMesh::face_vertex_counts, and blender::io::hydra::MeshData::SubMesh::face_vertex_indices.
|
overridevirtual |
Implements blender::io::hydra::IdData.
Definition at line 63 of file io/usd/hydra/mesh.cc.
References ID_LOGN, ID_RECALC_GEOMETRY, ID_RECALC_SHADING, ID_RECALC_TRANSFORM, init(), blender::io::hydra::IdData::scene_delegate_, write_materials(), and blender::io::hydra::ObjectData::write_transform().
| void blender::io::hydra::MeshData::update_double_sided | ( | MaterialData * | mat_data | ) |
Definition at line 177 of file io/usd/hydra/mesh.cc.
References ID_LOGN, and blender::io::hydra::IdData::scene_delegate_.
|
overrideprotectedvirtual |
Reimplemented from blender::io::hydra::ObjectData.
Definition at line 198 of file io/usd/hydra/mesh.cc.
References BKE_object_material_get_eval(), blender::io::hydra::ObjectData::get_or_create_material(), blender::io::hydra::MeshData::SubMesh::mat_data, and blender::io::hydra::MeshData::SubMesh::mat_index.