#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
named object in the data model
Definition MRObject.h:60
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:576
MRMESH_API Expected< void > toAnySupportedFormat(const Object &object, const std::filesystem::path &file, ProgressCallback callback={})
MRMESH_API Expected< void > toAnySupportedSceneFormat(const Object &object, const std::filesystem::path &file, ProgressCallback callback={})
Definition MRCameraOrientationPlugin.h:8
std::function< void(const std::filesystem::path &tempFolderName)> FolderCallback
this callback will be called before compression on serialization and after decompression on deseriali...
Definition MRUniqueTemporaryFolder.h:11
tl::expected< T, E > Expected
Definition MRExpected.h:58
MRMESH_API Expected< void > serializeObjectTree(const Object &object, const std::filesystem::path &path, ProgressCallback progress, FolderCallback preCompress)
saves object subtree in given scene file (zip/mru)