MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::SaveSettings Struct Reference

determines how to save points/lines/mesh More...

#include <MRSaveSettings.h>

+ Inheritance diagram for MR::SaveSettings:

Public Attributes

bool onlyValidPoints = true
 
bool packPrimitives = true
 
const VertColors * colors = nullptr
 optional per-vertex color to save with the geometry
 
const std::vector< Color > * primitiveColors = nullptr
 per-face colors for meshes, per-undirected-edge colors for polylines, unused for point clouds and other
 
const VertUVCoords * uvMap = nullptr
 optional per-vertex uv coordinate to save with the geometry
 
const MeshTexturetexture = nullptr
 optional texture to save with the geometry
 
std::string materialName = "Default"
 used to save texture and material in some formats (obj)
 
const AffineXf3d * xf = nullptr
 this transformation can optionally be applied to all vertices (points) of saved object
 
std::optional< LengthUnitlengthUnit
 units of input coordinates and transformation, to be serialized if the format supports it
 
std::optional< ColorsolidColor
 the color of whole object
 
ProgressCallback progress
 to report save progress and cancel saving if user desires
 

Detailed Description

determines how to save points/lines/mesh

Member Data Documentation

◆ colors

const VertColors* MR::SaveSettings::colors = nullptr

optional per-vertex color to save with the geometry

◆ lengthUnit

std::optional<LengthUnit> MR::SaveSettings::lengthUnit

units of input coordinates and transformation, to be serialized if the format supports it

◆ materialName

std::string MR::SaveSettings::materialName = "Default"

used to save texture and material in some formats (obj)

◆ onlyValidPoints

bool MR::SaveSettings::onlyValidPoints = true

true - save valid points/vertices only (pack them); false - save all points/vertices preserving their indices

◆ packPrimitives

bool MR::SaveSettings::packPrimitives = true

whether to allow packing or shuffling of primitives (triangles in meshes or edges in polylines); if packPrimitives=true, then ids of invalid primitives are reused by valid primitives and higher compression (in .ctm format) can be reached if the order of triangles is changed; if packPrimitives=false then all primitives maintain their ids, and invalid primitives are saved with all vertex ids equal to zero; currently this flag affects the saving in .ctm and .ply formats only

◆ primitiveColors

const std::vector<Color>* MR::SaveSettings::primitiveColors = nullptr

per-face colors for meshes, per-undirected-edge colors for polylines, unused for point clouds and other

◆ progress

ProgressCallback MR::SaveSettings::progress

to report save progress and cancel saving if user desires

◆ solidColor

std::optional<Color> MR::SaveSettings::solidColor

the color of whole object

◆ texture

const MeshTexture* MR::SaveSettings::texture = nullptr

optional texture to save with the geometry

◆ uvMap

const VertUVCoords* MR::SaveSettings::uvMap = nullptr

optional per-vertex uv coordinate to save with the geometry

◆ xf

const AffineXf3d* MR::SaveSettings::xf = nullptr

this transformation can optionally be applied to all vertices (points) of saved object


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