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