MeshLib
 
Loading...
Searching...
No Matches
MR3mf.h
Go to the documentation of this file.
1#pragma once
2
3#include "config.h"
4#ifndef MRIOEXTRAS_NO_3MF
5#include "exports.h"
6
7#include <MRMesh/MRExpected.h>
8#include <MRMesh/MRObject.h>
9
10namespace MR
11{
12
13// loads scene from 3MF file in a new container object
14MRIOEXTRAS_API Expected<std::shared_ptr<Object>> deserializeObjectTreeFrom3mf( const std::filesystem::path& file, std::string* loadWarn = nullptr, ProgressCallback callback = {} );
15
16// loads scene from .model file in a new container object
17MRIOEXTRAS_API Expected<std::shared_ptr<Object>> deserializeObjectTreeFromModel( const std::filesystem::path& file, std::string* loadWarn = nullptr, ProgressCallback callback = {} );
18
19} // namespace MR
20#endif
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:571
Definition MRCameraOrientationPlugin.h:8
tl::expected< T, E > Expected
Definition MRExpected.h:58
MRIOEXTRAS_API Expected< std::shared_ptr< Object > > deserializeObjectTreeFromModel(const std::filesystem::path &file, std::string *loadWarn=nullptr, ProgressCallback callback={})
MRIOEXTRAS_API Expected< std::shared_ptr< Object > > deserializeObjectTreeFrom3mf(const std::filesystem::path &file, std::string *loadWarn=nullptr, ProgressCallback callback={})