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

Typedefs

using ObjectSaver = Expected<void>( * )( const Object&, const std::filesystem::path&, const ProgressCallback& )
 

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={})
 

Typedef Documentation

◆ ObjectSaver

using MR::ObjectSave::ObjectSaver = Expected<void>( * )( const Object&, const std::filesystem::path&, const ProgressCallback& )

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