|
Blender V5.0
|
#include <obj_import_file_reader.hh>
Public Member Functions | |
| OBJParser (const OBJImportParams &import_params, size_t read_buffer_size) | |
| ~OBJParser () | |
| void | parse (Vector< std::unique_ptr< Geometry > > &r_all_geometries, GlobalVertices &r_global_vertices) |
| Span< std::string > | mtl_libraries () const |
Definition at line 24 of file obj_import_file_reader.hh.
| blender::io::obj::OBJParser::OBJParser | ( | const OBJImportParams & | import_params, |
| size_t | read_buffer_size ) |
Open OBJ file at the path given in import parameters.
Definition at line 428 of file obj_import_file_reader.cc.
References BKE_reportf(), BLI_fopen(), CLOG_ERROR, LOG, and RPT_ERROR.
| blender::io::obj::OBJParser::~OBJParser | ( | ) |
Definition at line 442 of file obj_import_file_reader.cc.
| Span< string > blender::io::obj::OBJParser::mtl_libraries | ( | ) | const |
Return a list of all material library filepaths referenced by the OBJ file.
Definition at line 838 of file obj_import_file_reader.cc.
Referenced by blender::io::obj::importer_main().
| void blender::io::obj::OBJParser::parse | ( | Vector< std::unique_ptr< Geometry > > & | r_all_geometries, |
| GlobalVertices & | r_global_vertices ) |
Read the OBJ file line by line and create OBJ Geometry instances. Also store all the vertex and UV vertex coordinates in a struct accessible by all objects.
Definition at line 618 of file obj_import_file_reader.cc.
References BLI_path_basename(), BLI_path_extension_strip(), CLOG_ERROR, blender::io::obj::create_geometry(), blender::Array< T, InlineBufferCapacity, Allocator >::data(), FILE_MAXFILE, blender::io::fixup_line_continuations(), blender::io::obj::GlobalVertices::flush_mrgb_block(), blender::io::obj::GEOM_MESH, LOG, STRNCPY(), and blender::io::obj::use_all_vertices_if_no_faces().
Referenced by blender::io::obj::importer_geometry(), blender::io::obj::importer_main(), and blender::io::obj::TEST().