Visual Computing Library
Loading...
Searching...
No Matches
vcl::SaveSettings Struct Reference

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.
 

Detailed Description

The SaveSettings structure contains the settings that can be used to save a mesh to a stream/file.

Member Data Documentation

◆ binary

bool vcl::SaveSettings::binary = true

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.

◆ saveTextureImages

bool vcl::SaveSettings::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).

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.

Note
To avoid saving also the texture paths in the file, you should use the info class and set the TEXTURES component to false.

The documentation for this struct was generated from the following file: