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

Function deserializeObjectTree

source/MRMesh/MRObjectLoad.cpp:551–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549}
550
551Expected<LoadedObject> deserializeObjectTree( const std::filesystem::path& path, const FolderCallback& postDecompress,
552 const ProgressCallback& progressCb )
553{
554 MR_TIMER;
555 UniqueTemporaryFolder scenePath( postDecompress );
556 if ( !scenePath )
557 return unexpected( "Cannot create temporary folder" );
558 auto res = decompressZip( path, scenePath );
559 if ( !res.has_value() )
560 return unexpected( std::move( res.error() ) );
561
562 return deserializeObjectTreeFromFolder( scenePath, progressCb );
563}
564
565Expected<LoadedObject> deserializeObjectTreeFromFolder( const std::filesystem::path& folder,
566 const ProgressCallback& progressCb )

Callers

nothing calls this directly

Calls 4

decompressZipFunction · 0.85
errorMethod · 0.80
unexpectedFunction · 0.70

Tested by

no test coverage detected