Visual Computing Library
Loading...
Searching...
No Matches
Save functions

List of functions that allow to save to file an input Mesh. More...

Collaboration diagram for Save functions:

Functions

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::save (const MeshType &m, const std::string &filename, LogType &log=nullLogger, const SaveSettings &settings=SaveSettings())
 Saves a mesh to a file with the given filename. Checks automatically the file format to save from the given filename.
 

Detailed Description

List of functions that allow to save to file an input Mesh.

Function Documentation

◆ save()

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::save ( const MeshType &  m,
const std::string &  filename,
LogType log = nullLogger,
const SaveSettings settings = SaveSettings() 
)

Saves a mesh to a file with the given filename. Checks automatically the file format to save from the given filename.

Template Parameters
MeshTypeThe type of mesh to save. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]mThe mesh object to save.
[in]filenameThe filename of the file where to save the mesh data.
[in,out]logThe logger object to use for logging messages during saving.
[in]settingsSettings for saving the file.
Exceptions
vcl::UnknownFileFormatExceptionif the file extension is not recognized.