23#ifndef VCL_LOAD_SAVE_LOAD_H
24#define VCL_LOAD_SAVE_LOAD_H
62template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
78 else if (
ext ==
".off") {
81 else if (
ext ==
".ply") {
84 else if (
ext ==
".stl") {
111template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
143template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
174template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
203template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
static std::string extension(const std::string &filename)
Get the extension of a file.
Definition file_info.h:257
A simple class that allows to store which elements and their components have been imported/loaded or ...
Definition mesh_info.h:76
A class representing a line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:43
void loadOff(MeshType &m, std::istream &inputOffStream, MeshInfo &loadedInfo, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
Loads from the given input off stream and puts the content into the mesh m.
Definition load.h:511
void loadStl(MeshType &m, std::istream &inputStlStream, MeshInfo &loadedInfo, bool isBinary=false, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
Loads from the given input stl stream and puts the content into the mesh m.
Definition load.h:310
void load(MeshType &m, const std::string &filename, MeshInfo &loadedInfo, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
Loads a mesh from a file with the given filename and stores it in the given mesh object....
Definition load.h:63
void loadObj(MeshType &m, std::istream &inputObjStream, const std::vector< std::istream * > &inputMtlStreams, MeshInfo &loadedInfo, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
Loads from the given input obj stream and puts the content into the mesh m.
Definition load.h:710
void loadPly(MeshType &m, std::istream &inputPlyStream, MeshInfo &loadedInfo, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
Loads from the given input ply stream and puts the content into the mesh m.
Definition load.h:159
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
The LoadSettings structure contains the settings that can be used to load a mesh from a stream/file.
Definition settings.h:35