Blender
V3.3
|
#include <obj_import_mesh.hh>
Public Member Functions | |
MeshFromGeometry (Geometry &mesh_geometry, const GlobalVertices &global_vertices) | |
Object * | create_mesh (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 23 of file obj_import_mesh.hh.
|
inline |
Definition at line 29 of file obj_import_mesh.hh.
Object * blender::io::obj::MeshFromGeometry::create_mesh | ( | Main * | bmain, |
Map< std::string, std::unique_ptr< MTLMaterial >> & | materials, | ||
Map< std::string, Material * > & | created_materials, | ||
const OBJImportParams & | import_params | ||
) |
Definition at line 29 of file obj_import_mesh.cc.
References BKE_mesh_new_nomain(), BKE_mesh_nomain_to_mesh(), BKE_mesh_validate(), BKE_object_add_only_object(), BKE_object_obdata_add_from_type(), CD_MASK_EVERYTHING, Object::data, blender::io::obj::Geometry::edges_, blender::io::obj::Geometry::face_elements_, Mesh::flag, blender::io::obj::Geometry::geometry_name_, blender::io::obj::Geometry::get_vertex_count(), blender::io::obj::Geometry::has_invalid_polys_, OBJImportParams::import_vertex_groups, materials, ME_AUTOSMOOTH, mesh, OB_MESH, OBJImportParams::relative_paths, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::io::obj::Geometry::total_loops_, blender::io::obj::transform_object(), and OBJImportParams::validate_meshes.