23#ifndef VCL_LOAD_SAVE_SAVE_H
24#define VCL_LOAD_SAVE_SAVE_H
58template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
70 else if (
ext ==
".off") {
73 else if (
ext ==
".ply") {
76 else if (
ext ==
".stl") {
97template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
100 const std::string& filename,
101 const SaveSettings& settings,
104 save(m, filename, log, settings);
static std::string extension(const std::string &filename)
Get the extension of a file.
Definition file_info.h:257
A class representing a line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:43
NullLogger nullLogger
The nullLogger object is an object of type NullLogger that is used as default argument in the functio...
Definition null_logger.h:125
void 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...
Definition save.h:59
The SaveSettings structure contains the settings that can be used to save a mesh to a stream/file.
Definition settings.h:62