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

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

Collaboration diagram for Load functions:

Functions

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::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. Checks automatically the file format to load from the given filename.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::load (MeshType &m, const std::string &filename, 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. Checks automatically the file format to load from the given filename.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::load (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 returned mesh object. Checks automatically the file format to load from the given filename.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::load (const std::string &filename, const LoadSettings &settings, LogType &log=nullLogger)
 Loads a mesh from a file with the given filename and stores it in the returned mesh object. Checks automatically the file format to load from the given filename.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::load (const std::string &filename, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
 Loads a mesh from a file with the given filename and stores it in the returned mesh object. Checks automatically the file format to load from the given filename.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::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.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::loadObj (MeshType &m, std::istream &inputObjStream, const std::vector< std::istream * > &inputMtlStreams, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
 Loads from the given input obj stream and puts the content into the mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadObj (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 returned mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadObj (std::istream &inputObjStream, const std::vector< std::istream * > &inputMtlStreams, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
 Loads from the given input obj stream and puts the content into the returned mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::loadObj (MeshType &m, const std::string &filename, MeshInfo &loadedInfo, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
 Loads from the given input obj file and puts the content into the mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::loadObj (MeshType &m, const std::string &filename, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
 Loads from the given input obj file and puts the content into the mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadObj (const std::string &filename, MeshInfo &loadedInfo, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
 Loads from the given input obj file and puts the content into the returned mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadObj (const std::string &filename, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
 Loads from the given input obj file and puts the content into the returned mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::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.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::loadOff (MeshType &m, std::istream &inputOffStream, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
 Loads from the given input off stream and puts the content into the mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadOff (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 returned mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadOff (std::istream &inputOffStream, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
 Loads from the given input off stream and puts the content into the returned mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::loadOff (MeshType &m, const std::string &filename, MeshInfo &loadedInfo, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
 Loads from the given input off file and puts the content into the mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::loadOff (MeshType &m, const std::string &filename, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
 Loads from the given input off file and puts the content into the mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadOff (const std::string &filename, MeshInfo &loadedInfo, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
 Loads from the given input off file and puts the content into the returned mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadOff (const std::string &filename, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
 Loads from the given input off file and puts the content into the returned mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::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.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::loadPly (MeshType &m, std::istream &inputPlyStream, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
 Loads from the given input ply stream and puts the content into the mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadPly (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 returned mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadPly (std::istream &inputPlyStream, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
 Loads from the given input ply stream and puts the content into the returned mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::loadPly (MeshType &m, const std::string &filename, MeshInfo &loadedInfo, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
 Loads the given ply file and puts the content into the mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::loadPly (MeshType &m, const std::string &filename, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
 Loads the given ply file and puts the content into the mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadPly (const std::string &filename, MeshInfo &loadedInfo, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
 Loads the given ply file and puts the content into the returned mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadPly (const std::string &filename, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
 Loads the given ply file and puts the content into the returned mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::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.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::loadStl (MeshType &m, std::istream &inputStlStream, 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.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadStl (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 returned mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadStl (std::istream &inputStlStream, bool isBinary=false, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
 Loads from the given input stl stream and puts the content into the returned mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::loadStl (MeshType &m, const std::string &filename, MeshInfo &loadedInfo, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
 Loads from the given input stl file and puts the content into the mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::loadStl (MeshType &m, const std::string &filename, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
 Loads from the given input stl file and puts the content into the mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadStl (const std::string &filename, MeshInfo &loadedInfo, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
 Loads from the given input stl file and puts the content into the returned mesh m.
 
template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadStl (const std::string &filename, LogType &log=nullLogger, const LoadSettings &settings=LoadSettings())
 Loads from the given input stl file and puts the content into the returned mesh m.
 

Detailed Description

List of functions that allow to load from file an input Mesh.

Function Documentation

◆ load() [1/5]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::load ( const std::string &  filename,
const LoadSettings settings,
LogType log = nullLogger 
)

Loads a mesh from a file with the given filename and stores it in the returned mesh object. Checks automatically the file format to load from the given filename.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]filenameThe filename of the file containing the mesh data.
[in]settingssettings for loading the file.
[in,out]logThe logger object to use for logging messages during loading. Default is the nullLogger object.
Returns
The mesh object containing the loaded mesh.
Exceptions
vcl::UnknownFileFormatExceptionif the file extension is not recognized.

◆ load() [2/5]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::load ( const std::string &  filename,
LogType log = nullLogger,
const LoadSettings settings = LoadSettings() 
)

Loads a mesh from a file with the given filename and stores it in the returned mesh object. Checks automatically the file format to load from the given filename.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]filenameThe filename of the file containing the mesh data.
[in,out]logThe logger object to use for logging messages during loading. Default is the nullLogger object.
[in]settingssettings for loading the file.
Returns
The mesh object containing the loaded mesh.
Exceptions
vcl::UnknownFileFormatExceptionif the file extension is not recognized.

◆ load() [3/5]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::load ( 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 returned mesh object. Checks automatically the file format to load from the given filename.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]filenameThe filename of the file containing the mesh data.
[out]loadedInfoInformation about the mesh components that have been loaded from the file.
[in,out]logThe logger object to use for logging messages during loading. Default is the nullLogger object.
[in]settingssettings for loading the file.
Returns
The mesh object containing the loaded mesh.
Exceptions
vcl::UnknownFileFormatExceptionif the file extension is not recognized.

◆ load() [4/5]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::load ( MeshType &  m,
const std::string &  filename,
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. Checks automatically the file format to load from the given filename.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[out]mThe mesh object in which to store the loaded mesh.
[in]filenameThe filename of the file containing the mesh data.
[in,out]logThe logger object to use for logging messages during loading. Default is the nullLogger object.
[in]settingssettings for loading the file.
Exceptions
vcl::UnknownFileFormatExceptionif the file extension is not recognized.

◆ load() [5/5]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::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. Checks automatically the file format to load from the given filename.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[out]mThe mesh object in which to store the loaded mesh.
[in]filenameThe filename of the file containing the mesh data.
[out]loadedInfoInformation about the mesh components that have been loaded from the file.
[in,out]logThe logger object to use for logging messages during loading. Default is the nullLogger object.
[in]settingssettings for loading the file.
Exceptions
vcl::UnknownFileFormatExceptionif the file extension is not recognized.

◆ loadObj() [1/8]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadObj ( const std::string &  filename,
LogType log = nullLogger,
const LoadSettings settings = LoadSettings() 
)

Loads from the given input obj file and puts the content into the returned mesh m.

The function will fill all the components read into the file that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the stream, will be enabled before loading the stream.

In case of materials used in the obj file that were not found in the material files, a warning will be logged in the log argument.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]filenamethe file to read from
[in]logthe logger to use
[in]settingssettings for loading the file/stream.
Returns
the mesh loaded from the file.

◆ loadObj() [2/8]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadObj ( const std::string &  filename,
MeshInfo loadedInfo,
LogType log = nullLogger,
const LoadSettings settings = LoadSettings() 
)

Loads from the given input obj file and puts the content into the returned mesh m.

The function will fill all the components read into the file that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the stream, will be enabled before loading the stream.

The info about what elements and components have been loaded from the stream will be stored into the loadedInfo argument.

In case of materials used in the obj file that were not found in the material files, a warning will be logged in the log argument.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]filenamethe file to read from
[out]loadedInfothe info about what elements and components have been loaded from the file
[in]logthe logger to use
[in]settingssettings for loading the file/stream.
Returns
the mesh loaded from the file.

◆ loadObj() [3/8]

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

Loads from the given input obj file and puts the content into the mesh m.

The function will fill all the components read into the file that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the stream, will be enabled before loading the stream.

In case of materials used in the obj file that were not found in the material files, a warning will be logged in the log argument.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]mthe mesh to fill
[in]filenamethe file to read from
[in]logthe logger to use
[in]settingssettings for loading the file/stream.

◆ loadObj() [4/8]

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

Loads from the given input obj file and puts the content into the mesh m.

The function will fill all the components read into the file that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the stream, will be enabled before loading the stream.

The info about what elements and components have been loaded from the stream will be stored into the loadedInfo argument.

In case of materials used in the obj file that were not found in the material files, a warning will be logged in the log argument.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]mthe mesh to fill
[in]filenamethe file to read from
[out]loadedInfothe info about what elements and components have been loaded from the file
[in]logthe logger to use
[in]settingssettings for loading the file/stream.

◆ loadObj() [5/8]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::loadObj ( MeshType &  m,
std::istream &  inputObjStream,
const std::vector< std::istream * > &  inputMtlStreams,
LogType log = nullLogger,
const LoadSettings settings = LoadSettings() 
)

Loads from the given input obj stream and puts the content into the mesh m.

The function will fill all the components read into the stream that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the stream, will be enabled before loading the stream.

In case of materials used in the obj stream that were not found in the material streams, a warning will be logged in the log argument.

Parameters
[in]mthe mesh to fill
[in]inputObjStreamthe stream to read from
[in]inputMtlStreamsthe streams to read the material from (if any)
[in]logthe logger to use
[in]settingssettings for loading the file/stream.

◆ loadObj() [6/8]

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

The function will fill all the components read into the stream that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the stream, will be enabled before loading the stream.

The info about what elements and components have been loaded from the stream will be stored into the loadedInfo argument.

In case of materials used in the obj stream that were not found in the material streams, a warning will be logged in the log argument.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]mthe mesh to fill
[in]inputObjStreamthe stream to read from
[in]inputMtlStreamsthe streams to read the material from (if any)
[out]loadedInfothe info about what elements and components have been loaded from the stream
[in]logthe logger to use
[in]settingssettings for loading the file/stream.

◆ loadObj() [7/8]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadObj ( std::istream &  inputObjStream,
const std::vector< std::istream * > &  inputMtlStreams,
LogType log = nullLogger,
const LoadSettings settings = LoadSettings() 
)

Loads from the given input obj stream and puts the content into the returned mesh m.

The function will fill all the components read into the stream that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the stream, will be enabled before loading the stream.

In case of materials used in the obj stream that were not found in the material streams, a warning will be logged in the log argument.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]inputObjStreamthe stream to read from
[in]inputMtlStreamsthe streams to read the material from (if any)
[in]logthe logger to use
[in]settingssettings for loading the file/stream.
Returns
the mesh loaded from the stream.

◆ loadObj() [8/8]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadObj ( 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 returned mesh m.

The function will fill all the components read into the stream that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the stream, will be enabled before loading the stream.

The info about what elements and components have been loaded from the stream will be stored into the loadedInfo argument.

In case of materials used in the obj stream that were not found in the material streams, a warning will be logged in the log argument.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]inputObjStreamthe stream to read from
[in]inputMtlStreamsthe streams to read the material from (if any)
[out]loadedInfothe info about what elements and components have been loaded from the stream
[in]logthe logger to use
[in]settingssettings for loading the file/stream.
Returns
the mesh loaded from the stream.

◆ loadOff() [1/8]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadOff ( const std::string &  filename,
LogType log = nullLogger,
const LoadSettings settings = LoadSettings() 
)

Loads from the given input off file and puts the content into the returned mesh m.

The function will fill all the components read into the file that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the file, will be enabled before loading the file.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]filenamethe name of the file to read from
[in]logthe logger to use
[in]settingssettings for loading the file/stream.
Returns
the mesh loaded from the file.

◆ loadOff() [2/8]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadOff ( const std::string &  filename,
MeshInfo loadedInfo,
LogType log = nullLogger,
const LoadSettings settings = LoadSettings() 
)

Loads from the given input off file and puts the content into the returned mesh m.

The function will fill all the components read into the file that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the file, will be enabled before loading the file.

The info about what elements and components have been loaded from the file will be stored into the loadedInfo argument.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]filenamethe name of the file to read from
[out]loadedInfothe info about what elements and components have been loaded from the file
[in]logthe logger to use
[in]settingssettings for loading the file/stream.
Returns
the mesh loaded from the file.

◆ loadOff() [3/8]

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

Loads from the given input off file and puts the content into the mesh m.

The function will fill all the components read into the file that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the file, will be enabled before loading the file.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]mthe mesh to fill
[in]filenamethe name of the file to read from
[in]logthe logger to use
[in]settingssettings for loading the file/stream.

◆ loadOff() [4/8]

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

Loads from the given input off file and puts the content into the mesh m.

The function will fill all the components read into the file that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the file, will be enabled before loading the file.

The info about what elements and components have been loaded from the file will be stored into the loadedInfo argument.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]mthe mesh to fill
[in]filenamethe name of the file to read from
[out]loadedInfothe info about what elements and components have been loaded from the file
[in]logthe logger to use
[in]settingssettings for loading the file/stream.

◆ loadOff() [5/8]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::loadOff ( MeshType &  m,
std::istream &  inputOffStream,
LogType log = nullLogger,
const LoadSettings settings = LoadSettings() 
)

Loads from the given input off stream and puts the content into the mesh m.

The function will fill all the components read into the stream that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the stream, will be enabled before loading the stream.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]mthe mesh to fill
[in]inputOffStreamthe stream to read from
[in]logthe logger to use
[in]settingssettings for loading the file/stream.

◆ loadOff() [6/8]

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

The function will fill all the components read into the stream that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the stream, will be enabled before loading the stream.

The info about what elements and components have been loaded from the stream will be stored into the loadedInfo argument.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]mthe mesh to fill
[in]inputOffStreamthe stream to read from
[out]loadedInfothe info about what elements and components have been loaded from the stream
[in]logthe logger to use
[in]settingssettings for loading the file/stream.

◆ loadOff() [7/8]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadOff ( std::istream &  inputOffStream,
LogType log = nullLogger,
const LoadSettings settings = LoadSettings() 
)

Loads from the given input off stream and puts the content into the returned mesh m.

The function will fill all the components read into the stream that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the stream, will be enabled before loading the stream.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]inputOffStreamthe stream to read from
[in]logthe logger to use
[in]settingssettings for loading the file/stream.
Returns
the mesh loaded from the stream.

◆ loadOff() [8/8]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadOff ( 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 returned mesh m.

The function will fill all the components read into the stream that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the stream, will be enabled before loading the stream.

The info about what elements and components have been loaded from the stream will be stored into the loadedInfo argument.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]inputOffStreamthe stream to read from
[out]loadedInfothe info about what elements and components have been loaded from the stream
[in]logthe logger to use
[in]settingssettings for loading the file/stream.
Returns
the mesh loaded from the stream.

◆ loadPly() [1/8]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadPly ( const std::string &  filename,
LogType log = nullLogger,
const LoadSettings settings = LoadSettings() 
)

Loads the given ply file and puts the content into the returned mesh m.

The function will fill all the components read into the file that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the file, will be enabled before loading the file.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]filenamethe name of the file to read from
[in]logthe logger to use
[in]settingssettings for loading the file/stream.
Returns
the mesh loaded from the file.

◆ loadPly() [2/8]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadPly ( const std::string &  filename,
MeshInfo loadedInfo,
LogType log = nullLogger,
const LoadSettings settings = LoadSettings() 
)

Loads the given ply file and puts the content into the returned mesh m.

The function will fill all the components read into the file that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the file, will be enabled before loading the file.

The info about what elements and components have been loaded from the file will be stored into the loadedInfo argument.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]filenamethe name of the file to read from
[out]loadedInfothe info about what elements and components have been loaded from the file
[in]logthe logger to use
[in]settingssettings for loading the file/stream.
Returns
the mesh loaded from the file.

◆ loadPly() [3/8]

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

Loads the given ply file and puts the content into the mesh m.

The function will fill all the components read into the file that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the file, will be enabled before loading the file.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]mthe mesh to fill
[in]filenamethe name of the file to read from
[in]logthe logger to use
[in]settingssettings for loading the file/stream.

◆ loadPly() [4/8]

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

Loads the given ply file and puts the content into the mesh m.

The function will fill all the components read into the file that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the file, will be enabled before loading the file.

The info about what elements and components have been loaded from the file will be stored into the loadedInfo argument.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]mthe mesh to fill
[in]filenamethe name of the file to read from
[out]loadedInfothe info about what elements and components have been loaded from the file
[in]logthe logger to use
[in]settingssettings for loading the file/stream.

◆ loadPly() [5/8]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::loadPly ( MeshType &  m,
std::istream &  inputPlyStream,
LogType log = nullLogger,
const LoadSettings settings = LoadSettings() 
)

Loads from the given input ply stream and puts the content into the mesh m.

The function will fill all the components read into the stream that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the stream, will be enabled before loading the stream.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]mthe mesh to fill
[in]inputPlyStreamthe stream to read from
[in]logthe logger to use
[in]settingssettings for loading the file/stream.

◆ loadPly() [6/8]

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

The function will fill all the components read into the stream that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the stream, will be enabled before loading the stream.

The info about what elements and components have been loaded from the stream will be stored into the loadedInfo argument.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]mthe mesh to fill
[in]inputPlyStreamthe stream to read from
[out]loadedInfothe info about what elements and components have been loaded from the stream
[in]logthe logger to use
[in]settingssettings for loading the file/stream.

◆ loadPly() [7/8]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadPly ( std::istream &  inputPlyStream,
LogType log = nullLogger,
const LoadSettings settings = LoadSettings() 
)

Loads from the given input ply stream and puts the content into the returned mesh m.

The function will fill all the components read into the stream that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the stream, will be enabled before loading the stream.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]inputPlyStreamthe stream to read from
[in]logthe logger to use
[in]settingssettings for loading the file/stream.
Returns
the mesh loaded from the stream.

◆ loadPly() [8/8]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadPly ( 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 returned mesh m.

The function will fill all the components read into the stream that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the stream, will be enabled before loading the stream.

The info about what elements and components have been loaded from the stream will be stored into the loadedInfo argument.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]inputPlyStreamthe stream to read from
[out]loadedInfothe info about what elements and components have been loaded from the stream
[in]logthe logger to use
[in]settingssettings for loading the file/stream.
Returns
the mesh loaded from the stream.

◆ loadStl() [1/8]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadStl ( const std::string &  filename,
LogType log = nullLogger,
const LoadSettings settings = LoadSettings() 
)

Loads from the given input stl file and puts the content into the returned mesh m.

The function will fill all the components read into the file that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the file, will be enabled before loading the file.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]filenamethe name of the file to read from
[in]logthe logger to use
[in]settingssettings for loading the file/stream.
Returns
the mesh loaded from the file.

◆ loadStl() [2/8]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadStl ( const std::string &  filename,
MeshInfo loadedInfo,
LogType log = nullLogger,
const LoadSettings settings = LoadSettings() 
)

Loads from the given input stl file and puts the content into the returned mesh m.

The function will fill all the components read into the file that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the file, will be enabled before loading the file.

The info about what elements and components have been loaded from the file will be stored into the loadedInfo argument.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]filenamethe name of the file to read from
[out]loadedInfothe info about what elements and components have been loaded from the stream
[in]logthe logger to use
[in]settingssettings for loading the file/stream.
Returns
the mesh loaded from the file.

◆ loadStl() [3/8]

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

Loads from the given input stl file and puts the content into the mesh m.

The function will fill all the components read into the file that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the file, will be enabled before loading the file.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]mthe mesh to fill
[in]filenamethe name of the file to read from
[in]logthe logger to use
[in]settingssettings for loading the file/stream.

◆ loadStl() [4/8]

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

Loads from the given input stl file and puts the content into the mesh m.

The function will fill all the components read into the file that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the file, will be enabled before loading the file.

The info about what elements and components have been loaded from the file will be stored into the loadedInfo argument.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]mthe mesh to fill
[in]filenamethe name of the file to read from
[out]loadedInfothe info about what elements and components have been loaded from the stream
[in]logthe logger to use
[in]settingssettings for loading the file/stream.

◆ loadStl() [5/8]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::loadStl ( MeshType &  m,
std::istream &  inputStlStream,
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.

Since the STL format does not provide any information whether the file is binary or ascii, the user must specify it. If the user specifies the wrong format, the behaviour is undefined.

The function will fill all the components read into the stream that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the stream, will be enabled before loading the stream.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]mthe mesh to fill
[in]inputStlStreamthe stream to read from
[in]isBinaryif true, the stream is considered binary, otherwise it is considered ascii
[in]logthe logger to use
[in]settingssettings for loading the file/stream.

◆ loadStl() [6/8]

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

Since the STL format does not provide any information whether the file is binary or ascii, the user must specify it. If the user specifies the wrong format, the behaviour is undefined.

The function will fill all the components read into the stream that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the stream, will be enabled before loading the stream.

The info about what elements and components have been loaded from the stream will be stored into the loadedInfo argument.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]mthe mesh to fill
[in]inputStlStreamthe stream to read from
[out]loadedInfothe info about what elements and components have been loaded from the stream
[in]isBinaryif true, the stream is considered binary, otherwise it is considered ascii
[in]logthe logger to use
[in]settingssettings for loading the file/stream.

◆ loadStl() [7/8]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadStl ( std::istream &  inputStlStream,
bool  isBinary = false,
LogType log = nullLogger,
const LoadSettings settings = LoadSettings() 
)

Loads from the given input stl stream and puts the content into the returned mesh m.

Since the STL format does not provide any information whether the file is binary or ascii, the user must specify it. If the user specifies the wrong format, the behaviour is undefined.

The function will fill all the components read into the stream that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the stream, will be enabled before loading the stream.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]inputStlStreamthe stream to read from
[in]isBinaryif true, the stream is considered binary, otherwise it is considered ascii
[in]logthe logger to use
[in]settingssettings for loading the file/stream.
Returns
the mesh loaded from the stream.

◆ loadStl() [8/8]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadStl ( 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 returned mesh m.

Since the STL format does not provide any information whether the file is binary or ascii, the user must specify it. If the user specifies the wrong format, the behaviour is undefined.

The function will fill all the components read into the stream that can be filled into the mesh. If the enableOprionalComponents argument is enabled, some eventual optional components of the mesh that were not enabled and that can be loaded from the stream, will be enabled before loading the stream.

The info about what elements and components have been loaded from the stream will be stored into the loadedInfo argument.

Template Parameters
MeshTypeThe type of mesh to load. It must satisfy the MeshConcept.
LogTypeThe type of logger to use. It must satisfy the LoggerConcept.
Parameters
[in]inputStlStreamthe stream to read from
[out]loadedInfothe info about what elements and components have been loaded from the stream
[in]isBinaryif true, the stream is considered binary, otherwise it is considered ascii
[in]logthe logger to use
[in]settingssettings for loading the file/stream.
Returns
the mesh loaded from the stream.