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

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

Collaboration diagram for Load mesh functions:

Functions

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

Detailed Description

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

Function Documentation

◆ loadMesh() [1/8]

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

◆ loadMesh() [2/8]

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

◆ loadMesh() [3/8]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
MeshType vcl::loadMesh ( const std::string &  filename,
MeshInfo loadedInfo,
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.
[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.

◆ loadMesh() [4/8]

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

◆ loadMesh() [5/8]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::loadMesh ( MeshType &  m,
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 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]settingssettings for loading the file.
[in,out]logThe logger object to use for logging messages during loading. Default is the nullLogger object.
Exceptions
vcl::UnknownFileFormatExceptionif the file extension is not recognized.

◆ loadMesh() [6/8]

template<MeshConcept MeshType, LoggerConcept LogType = NullLogger>
void vcl::loadMesh ( 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]settingssettings for loading the file.
[in,out]logThe logger object to use for logging messages during loading. Default is the nullLogger object.
Exceptions
vcl::UnknownFileFormatExceptionif the file extension is not recognized.

◆ loadMesh() [7/8]

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

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]settingssettings for loading the file.
[in,out]logThe logger object to use for logging messages during loading. Default is the nullLogger object.
Exceptions
vcl::UnknownFileFormatExceptionif the file extension is not recognized.

◆ loadMesh() [8/8]

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

◆ loadMeshes() [1/8]

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

Loads a list of meshes from a file with the given filename and stores it in the returned vector. 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 vector of mesh objects in which to store the loaded meshes.
Exceptions
vcl::UnknownFileFormatExceptionif the file extension is not recognized.

◆ loadMeshes() [2/8]

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

Loads a list of meshes from a file with the given filename and stores it in the returned vector. 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 vector of mesh objects in which to store the loaded meshes.
Exceptions
vcl::UnknownFileFormatExceptionif the file extension is not recognized.

◆ loadMeshes() [3/8]

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

Loads a list of meshes from a file with the given filename and stores it in the returned vector. 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]loadedInfoVector of information about the meshes components that have been loaded from the file.
[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 vector of mesh objects in which to store the loaded meshes.
Exceptions
vcl::UnknownFileFormatExceptionif the file extension is not recognized.

◆ loadMeshes() [4/8]

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

Loads a list of meshes from a file with the given filename and stores it in the returned vector. 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]loadedInfoVector of information about the meshes 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 vector of mesh objects in which to store the loaded meshes.
Exceptions
vcl::UnknownFileFormatExceptionif the file extension is not recognized.

◆ loadMeshes() [5/8]

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

Loads a list of meshes from a file with the given filename and stores it in the given vector. 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]meshesThe vector of mesh objects in which to store the loaded meshes.
[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.
Exceptions
vcl::UnknownFileFormatExceptionif the file extension is not recognized.

◆ loadMeshes() [6/8]

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

Loads a list of meshes from a file with the given filename and stores it in the given vector. 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]meshesThe vector of mesh objects in which to store the loaded meshes.
[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.

◆ loadMeshes() [7/8]

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

Loads a list of meshes from a file with the given filename and stores it in the given vector. 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]meshesThe vector of mesh objects in which to store the loaded meshes.
[in]filenameThe filename of the file containing the mesh data.
[out]loadedInfoVector of information about the meshes components that have been loaded from the file.
[in]settingssettings for loading the file.
[in,out]logThe logger object to use for logging messages during loading. Default is the nullLogger object.
Exceptions
vcl::UnknownFileFormatExceptionif the file extension is not recognized.

◆ loadMeshes() [8/8]

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

Loads a list of meshes from a file with the given filename and stores it in the given vector. 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]meshesThe vector of mesh objects in which to store the loaded meshes.
[in]filenameThe filename of the file containing the mesh data.
[out]loadedInfoVector of information about the meshes 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.

◆ loadMeshesFileFormats()

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

Returns the set of mesh formats supported for loading multiple Meshes from file.

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

Returns
A set of mesh formats supported for loading multiple Meshes.

◆ loadMeshFormats()

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

Returns the set of mesh formats supported for loading a single Mesh from file.

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

Returns
A set of mesh formats supported for loading.

◆ loadObj() [1/2]

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

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]settingssettings for loading the file/stream.
[in]logthe logger to use

◆ loadObj() [2/2]

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

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]settingssettings for loading the file/stream.
[in]logthe logger to use

◆ loadOff() [1/2]

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

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]settingssettings for loading the file/stream.
[in]logthe logger to use

◆ loadOff() [2/2]

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

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]settingssettings for loading the file/stream.
[in]logthe logger to use

◆ loadPly() [1/2]

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

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]settingssettings for loading the file/stream.
[in]logthe logger to use

◆ loadPly() [2/2]

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

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]settingssettings for loading the file/stream.
[in]logthe logger to use

◆ loadStl() [1/2]

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

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]settingssettings for loading the file/stream.
[in]logthe logger to use

◆ loadStl() [2/2]

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

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]settingssettings for loading the file/stream.
[in]logthe logger to use