|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| std::vector< std::shared_ptr< Buffers::MeshBuffer > > MayaFlux::IO::IOManager::load_mesh | ( | const std::string & | filepath, |
| TextureResolver | resolver = nullptr |
||
| ) |
Load all meshes from a 3D model file into MeshBuffer instances.
Opens the file via ModelReader, extracts all aiMesh entries as MeshData, constructs one MeshBuffer per mesh, calls setup_processors() on each, and returns them. setup_rendering() is left to the caller.
If resolver is null, the default resolver is used: paths resolved relative to the model file's directory via ImageReader::load_texture. Unresolvable textures are logged and skipped.
| filepath | Path to the model file (glTF, FBX, OBJ, PLY, etc.). |
| resolver | Optional texture resolver. |
Definition at line 381 of file IOManager.cpp.
References MayaFlux::Journal::API, MayaFlux::Journal::FileIO, MF_ERROR, and MF_INFO.