|
Blender V4.3
|
#include <obj_import_mesh.hh>
Inherits blender::NonMovable, and blender::NonCopyable.
Public Member Functions | |
| MeshFromGeometry (Geometry &mesh_geometry, const GlobalVertices &global_vertices) | |
| Mesh * | create_mesh (const OBJImportParams &import_params) |
| Object * | create_mesh_object (Main *bmain, Map< std::string, std::unique_ptr< MTLMaterial > > &materials, Map< std::string, Material * > &created_materials, const OBJImportParams &import_params) |
Make a Blender Mesh Object from a Geometry of GEOM_MESH type.
Definition at line 26 of file obj_import_mesh.hh.
|
inline |
Definition at line 32 of file obj_import_mesh.hh.
| Mesh * blender::io::obj::MeshFromGeometry::create_mesh | ( | const OBJImportParams & | import_params | ) |
Definition at line 34 of file obj_import_mesh.cc.
References BKE_mesh_new_nomain(), BKE_mesh_validate(), blender::io::obj::Geometry::edges_, blender::io::obj::Geometry::face_elements_, blender::io::obj::Geometry::get_vertex_count(), blender::io::obj::Geometry::has_invalid_faces_, OBJImportParams::import_vertex_groups, mesh, blender::io::obj::Geometry::total_corner_, OBJImportParams::use_split_groups, and OBJImportParams::validate_meshes.
Referenced by create_mesh_object().
| Object * blender::io::obj::MeshFromGeometry::create_mesh_object | ( | Main * | bmain, |
| Map< std::string, std::unique_ptr< MTLMaterial > > & | materials, | ||
| Map< std::string, Material * > & | created_materials, | ||
| const OBJImportParams & | import_params ) |
Definition at line 68 of file obj_import_mesh.cc.
References BKE_mesh_nomain_to_mesh(), BKE_object_add_only_object(), BKE_object_obdata_add_from_type(), OBJImportParams::collection_separator, create_mesh(), Object::data, blender::io::obj::Geometry::geometry_name_, blender::io::obj::get_geometry_name(), OB_MESH, OBJImportParams::relative_paths, and blender::io::obj::transform_object().