named object in the data model
Definition MRObject.h:60
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:600
tl::expected< T, E > Expected
Definition MRExpected.h:58
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