MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / fromAnySupportedFormat

Function fromAnySupportedFormat

source/MRMesh/MRSceneLoad.cpp:216–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214} // anonymous namespace
215
216Result fromAnySupportedFormat( const std::vector<std::filesystem::path>& files, const Settings& settings )
217{
218 SceneConstructor constructor( settings.targetUnit );
219 for ( auto index = 0ull; index < files.size(); ++index )
220 {
221 const auto& path = files[index];
222 if ( path.empty() )
223 continue;
224 constructor.process( path, sLoadPath( path, settings.openFolder, subprogress( settings.progress, index, files.size() ) ) );
225 }
226 return constructor.construct();
227}
228
229void asyncFromAnySupportedFormat( const std::vector<std::filesystem::path>& files,
230 const SceneLoad::PostLoadCallback& postLoadCallback, const Settings& settings )

Callers

nothing calls this directly

Calls 6

sLoadPathFunction · 0.85
subprogressFunction · 0.85
sizeMethod · 0.45
emptyMethod · 0.45
processMethod · 0.45
constructMethod · 0.45

Tested by

no test coverage detected