Visual Computing Library
|
List of functions that allow to load from file an input Mesh. More...
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. | |
List of functions that allow to load from file an input Mesh.
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | filename | The filename of the file containing the mesh data. |
[in] | settings | settings for loading the file. |
[in,out] | log | The logger object to use for logging messages during loading. Default is the nullLogger object. |
vcl::UnknownFileFormatException | if the file extension is not recognized. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | filename | The filename of the file containing the mesh data. |
[in,out] | log | The logger object to use for logging messages during loading. Default is the nullLogger object. |
[in] | settings | settings for loading the file. |
vcl::UnknownFileFormatException | if the file extension is not recognized. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | filename | The filename of the file containing the mesh data. |
[out] | loadedInfo | Information about the mesh components that have been loaded from the file. |
[in,out] | log | The logger object to use for logging messages during loading. Default is the nullLogger object. |
[in] | settings | settings for loading the file. |
vcl::UnknownFileFormatException | if the file extension is not recognized. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[out] | m | The mesh object in which to store the loaded mesh. |
[in] | filename | The filename of the file containing the mesh data. |
[in,out] | log | The logger object to use for logging messages during loading. Default is the nullLogger object. |
[in] | settings | settings for loading the file. |
vcl::UnknownFileFormatException | if the file extension is not recognized. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[out] | m | The mesh object in which to store the loaded mesh. |
[in] | filename | The filename of the file containing the mesh data. |
[out] | loadedInfo | Information about the mesh components that have been loaded from the file. |
[in,out] | log | The logger object to use for logging messages during loading. Default is the nullLogger object. |
[in] | settings | settings for loading the file. |
vcl::UnknownFileFormatException | if the file extension is not recognized. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | filename | the file to read from |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | filename | the file to read from |
[out] | loadedInfo | the info about what elements and components have been loaded from the file |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | m | the mesh to fill |
[in] | filename | the file to read from |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | m | the mesh to fill |
[in] | filename | the file to read from |
[out] | loadedInfo | the info about what elements and components have been loaded from the file |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
[in] | m | the mesh to fill |
[in] | inputObjStream | the stream to read from |
[in] | inputMtlStreams | the streams to read the material from (if any) |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | m | the mesh to fill |
[in] | inputObjStream | the stream to read from |
[in] | inputMtlStreams | the streams to read the material from (if any) |
[out] | loadedInfo | the info about what elements and components have been loaded from the stream |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | inputObjStream | the stream to read from |
[in] | inputMtlStreams | the streams to read the material from (if any) |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | inputObjStream | the stream to read from |
[in] | inputMtlStreams | the streams to read the material from (if any) |
[out] | loadedInfo | the info about what elements and components have been loaded from the stream |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | filename | the name of the file to read from |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | filename | the name of the file to read from |
[out] | loadedInfo | the info about what elements and components have been loaded from the file |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | m | the mesh to fill |
[in] | filename | the name of the file to read from |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | m | the mesh to fill |
[in] | filename | the name of the file to read from |
[out] | loadedInfo | the info about what elements and components have been loaded from the file |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | m | the mesh to fill |
[in] | inputOffStream | the stream to read from |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | m | the mesh to fill |
[in] | inputOffStream | the stream to read from |
[out] | loadedInfo | the info about what elements and components have been loaded from the stream |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | inputOffStream | the stream to read from |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | inputOffStream | the stream to read from |
[out] | loadedInfo | the info about what elements and components have been loaded from the stream |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | filename | the name of the file to read from |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | filename | the name of the file to read from |
[out] | loadedInfo | the info about what elements and components have been loaded from the file |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | m | the mesh to fill |
[in] | filename | the name of the file to read from |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | m | the mesh to fill |
[in] | filename | the name of the file to read from |
[out] | loadedInfo | the info about what elements and components have been loaded from the file |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | m | the mesh to fill |
[in] | inputPlyStream | the stream to read from |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | m | the mesh to fill |
[in] | inputPlyStream | the stream to read from |
[out] | loadedInfo | the info about what elements and components have been loaded from the stream |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | inputPlyStream | the stream to read from |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | inputPlyStream | the stream to read from |
[out] | loadedInfo | the info about what elements and components have been loaded from the stream |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | filename | the name of the file to read from |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | filename | the name of the file to read from |
[out] | loadedInfo | the info about what elements and components have been loaded from the stream |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | m | the mesh to fill |
[in] | filename | the name of the file to read from |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | m | the mesh to fill |
[in] | filename | the name of the file to read from |
[out] | loadedInfo | the info about what elements and components have been loaded from the stream |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | m | the mesh to fill |
[in] | inputStlStream | the stream to read from |
[in] | isBinary | if true, the stream is considered binary, otherwise it is considered ascii |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | m | the mesh to fill |
[in] | inputStlStream | the stream to read from |
[out] | loadedInfo | the info about what elements and components have been loaded from the stream |
[in] | isBinary | if true, the stream is considered binary, otherwise it is considered ascii |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | inputStlStream | the stream to read from |
[in] | isBinary | if true, the stream is considered binary, otherwise it is considered ascii |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |
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.
MeshType | The type of mesh to load. It must satisfy the MeshConcept. |
LogType | The type of logger to use. It must satisfy the LoggerConcept. |
[in] | inputStlStream | the stream to read from |
[out] | loadedInfo | the info about what elements and components have been loaded from the stream |
[in] | isBinary | if true, the stream is considered binary, otherwise it is considered ascii |
[in] | log | the logger to use |
[in] | settings | settings for loading the file/stream. |