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 VertUVCoords * | uvMap = nullptr |
| optional per-vertex uv coordinate to save with the geometry | |
| const MeshTexture * | texture = 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 | |
determines how to save points/lines/mesh
| const VertColors* MR::SaveSettings::colors = nullptr |
optional per-vertex color to save with the geometry
| std::string MR::SaveSettings::materialName = "Default" |
used to save texture and material in some formats (obj)
| bool MR::SaveSettings::onlyValidPoints = true |
true - save valid points/vertices only (pack them); false - save all points/vertices preserving their indices
| 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
| ProgressCallback MR::SaveSettings::progress |
to report save progress and cancel saving if user desires
| const MeshTexture* MR::SaveSettings::texture = nullptr |
optional texture to save with the geometry
| const VertUVCoords* MR::SaveSettings::uvMap = nullptr |
optional per-vertex uv coordinate to save with the geometry
| const AffineXf3d* MR::SaveSettings::xf = nullptr |
this transformation can optionally be applied to all vertices (points) of saved object