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

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

Collaboration diagram for Save mesh functions:

Functions

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::saveMesh (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.
 
std::set< FileFormatvcl::saveMeshFormats ()
 Returns the set of mesh formats supported for saving.
 

Detailed Description

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

Function Documentation

◆ saveMesh()

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::saveMesh ( 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.

◆ saveMeshFormats()

std::set< FileFormat > vcl::saveMeshFormats ( )
inline

Returns the set of mesh formats supported for saving.

The set contains all the mesh formats that can be saved using all the external libraries compiled with VCLib.

Returns
A set of mesh formats supported for saving.