Blender V5.3
blender::io::obj::OBJParser Class Reference

#include <obj_import_file_reader.hh>

Public Member Functions

 OBJParser (const OBJImportParams &import_params)
 ~OBJParser ()
void parse (Vector< std::unique_ptr< Geometry > > &r_all_geometries, GlobalVertices &r_global_vertices)
Span< std::string > mtl_libraries () const

Detailed Description

Definition at line 26 of file obj_import_file_reader.hh.

Constructor & Destructor Documentation

◆ OBJParser()

blender::io::obj::OBJParser::OBJParser ( const OBJImportParams & import_params)

Open OBJ file at the path given in import parameters.

Definition at line 443 of file obj_import_file_reader.cc.

References blender::BKE_reportf(), blender::BLI_mmap_open(), blender::BLI_open(), CLOG_ERROR, blender::LOG, O_BINARY, and blender::RPT_ERROR.

◆ ~OBJParser()

blender::io::obj::OBJParser::~OBJParser ( )

Definition at line 466 of file obj_import_file_reader.cc.

References blender::BLI_mmap_free().

Member Function Documentation

◆ mtl_libraries()

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 846 of file obj_import_file_reader.cc.

Referenced by blender::io::obj::importer_main().

◆ parse()

void blender::io::obj::OBJParser::parse ( Vector< std::unique_ptr< Geometry > > & r_all_geometries,
GlobalVertices & r_global_vertices )

The documentation for this class was generated from the following files: