MeshLib C++ Docs
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>
10
11namespace MR
12{
13
14// loads scene from 3MF file in a new container object
15MRIOEXTRAS_API Expected<LoadedObject> deserializeObjectTreeFrom3mf( const std::filesystem::path& file, const ProgressCallback& callback = {} );
16
17// loads scene from .model file in a new container object
18MRIOEXTRAS_API Expected<LoadedObject> deserializeObjectTreeFromModel( const std::filesystem::path& file, const ProgressCallback& callback = {} );
19
20} // namespace MR
21#endif
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:600
tl::expected< T, E > Expected
Definition MRExpected.h:58
MRIOEXTRAS_API Expected< LoadedObject > deserializeObjectTreeFromModel(const std::filesystem::path &file, const ProgressCallback &callback={})
MRIOEXTRAS_API Expected< LoadedObject > deserializeObjectTreeFrom3mf(const std::filesystem::path &file, const ProgressCallback &callback={})