Visual Computing Library
|
The SaveSettings structure contains the settings that can be used to save a mesh to a stream/file. More...
#include <vclib/load_save/settings.h>
Public Attributes | |
bool | binary = true |
If true, the mesh will be saved in binary format. Otherwise, it will be saved in ASCII format. | |
bool | saveTextureImages = false |
If true, and if the Mesh has the TextureImages component, the saving function will save the texture images to the paths stored in the TextureImages component. Otherwise, only the paths of the textures will be saved (meaning that the file will contain the paths to the textures, but the texture images will not be saved). | |
bool | magicsMode = false |
Applied only to STL binary files. Magics mode is a specific file format used by the Magics software, which includes more information than the standard STL format, like face colors. The magicsMode works only when binary flag is set to true . | |
MeshInfo | info |
Data structure that tells the saving functions which components of the mesh should be saved. Only the components that can be saved in the file format will be saved. If the info is uninitialized, all the components that can be saved will be saved. | |
The SaveSettings structure contains the settings that can be used to save a mesh to a stream/file.
If true, the mesh will be saved in binary format. Otherwise, it will be saved in ASCII format.
It applies to all the saving functions that save to a file format that supports both binary and ASCII format.
If true, and if the Mesh has the TextureImages component, the saving function will save the texture images to the paths stored in the TextureImages component. Otherwise, only the paths of the textures will be saved (meaning that the file will contain the paths to the textures, but the texture images will not be saved).
This is useful when the texture images are in a format not supported by the saving function, or when the texture images are already saved.
It applies to all the saving functions that save to a file format that supports textures.