MeshLib
 
Loading...
Searching...
No Matches
MR::ObjectSave Namespace Reference

Functions

MRMESH_API Expected< void > toAnySupportedSceneFormat (const Object &object, const std::filesystem::path &file, ProgressCallback callback={})
 
MRMESH_API Expected< void > toAnySupportedFormat (const Object &object, const std::filesystem::path &file, ProgressCallback callback={})
 

Function Documentation

◆ toAnySupportedFormat()

MRMESH_API Expected< void > MR::ObjectSave::toAnySupportedFormat ( const Object & object,
const std::filesystem::path & file,
ProgressCallback callback = {} )

save a scene object to a given file if the file format is scene-capable, saves all the object's entities otherwise, saves only merged entities of the corresponding type (mesh, polyline, point cloud, etc.)

◆ toAnySupportedSceneFormat()

MRMESH_API Expected< void > MR::ObjectSave::toAnySupportedSceneFormat ( const Object & object,
const std::filesystem::path & file,
ProgressCallback callback = {} )

save an object tree to a given file file format must be scene-capable