MeshLib C++ Docs
Loading...
Searching...
No Matches
MRSaveObjects.h
Go to the documentation of this file.
1#pragma once
2
3#include "exports.h"
4#include "MRMesh/MRExpected.h"
6#include <filesystem>
7
8namespace MR
9{
10class Object;
11
13{
15 bool backupOriginalFile = false;
16
18 ProgressCallback callback;
19};
20
21
26MRVIEWER_API Expected<void> saveObjectToFile( const Object& obj, const std::filesystem::path& filename,
27 const SaveObjectSettings & settings = {} );
28
29} //namespace MR
Definition MRObject.h:62
Definition MRCameraOrientationPlugin.h:8
MRVIEWER_API Expected< void > saveObjectToFile(const Object &obj, const std::filesystem::path &filename, const SaveObjectSettings &settings={})
save visual object (mesh, lines, points or voxels) to file
Definition MRSaveObjects.h:13
ProgressCallback callback
callback function to set progress (for progress bar)
Definition MRSaveObjects.h:18
bool backupOriginalFile
if true then before saving, original files is renamed, and renamed back if saving fails
Definition MRSaveObjects.h:15