Classes | |
| struct | Result |
| Scene loading result. More... | |
| struct | Settings |
Typedefs | |
| using | SceneLoader = Expected<LoadedObject>( * )( const std::filesystem::path&, const ProgressCallback& ) |
| using | PostLoadCallback = std::function<void ( Result )> |
Functions | |
| MRMESH_API Result | fromAnySupportedFormat (const std::vector< std::filesystem::path > &files, const Settings &settings={}) |
| MRMESH_API void | asyncFromAnySupportedFormat (const std::vector< std::filesystem::path > &files, const PostLoadCallback &postLoadCallback, const Settings &settings={}) |
| using MR::SceneLoad::PostLoadCallback = std::function<void ( Result )> |
Async load scene from file; calls postLoadCallback from a working thread (or from the main thread on single-thread platforms) after all files being loaded
| using MR::SceneLoad::SceneLoader = Expected<LoadedObject>( * )( const std::filesystem::path&, const ProgressCallback& ) |
| MRMESH_API void MR::SceneLoad::asyncFromAnySupportedFormat | ( | const std::vector< std::filesystem::path > & | files, |
| const PostLoadCallback & | postLoadCallback, | ||
| const Settings & | settings = {} ) |
| MRMESH_API Result MR::SceneLoad::fromAnySupportedFormat | ( | const std::vector< std::filesystem::path > & | files, |
| const Settings & | settings = {} ) |
Load scene from file; if both targetUnit and loadedObject.lengthUnit are not nullopt, then adjusts transformations of the loaded objects