MeshLib C++ Docs
Loading...
Searching...
No Matches
MROpenObjects.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRViewerFwd.h"
4#include <MRMesh/MRExpected.h>
6#include <filesystem>
7
8namespace MR
9{
10
12MRVIEWER_API Expected<LoadedObject> makeObjectTreeFromFolder( const std::filesystem::path& folder, const ProgressCallback& callback = {} );
13
15MRVIEWER_API Expected<LoadedObject> makeObjectTreeFromZip( const std::filesystem::path& zipPath, const ProgressCallback& callback = {} );
16
17} //namespace MR
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:600
MRVIEWER_API Expected< LoadedObject > makeObjectTreeFromZip(const std::filesystem::path &zipPath, const ProgressCallback &callback={})
load all supported files from given zip-archive in new container object
tl::expected< T, E > Expected
Definition MRExpected.h:58
MRVIEWER_API Expected< LoadedObject > makeObjectTreeFromFolder(const std::filesystem::path &folder, const ProgressCallback &callback={})
load all supported files from given folder in new container object