MeshLib Documentation
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 saveValidOnly = true
 
bool rearrangeTriangles = true
 
const VertColors * colors = nullptr
 optional per-vertex color to save with the geometry
 
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
 
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

◆ materialName

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

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

◆ progress

ProgressCallback MR::SaveSettings::progress

to report save progress and cancel saving if user desires

◆ rearrangeTriangles

bool MR::SaveSettings::rearrangeTriangles = true

if it is turned on, then higher compression ratios are reached but the order of triangles is changed; currently affects .ctm format only

◆ saveValidOnly

bool MR::SaveSettings::saveValidOnly = true

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

◆ 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: