MeshLib C# Docs
Loading...
Searching...
No Matches
MR.MeshSave.Const_CtmSaveOptions Class Reference

Generated from class MR.MeshSave.CtmSaveOptions. Base classes: Direct: (non-virtual) MR.SaveSettings This is the const half of the class. More...

+ Inheritance diagram for MR.MeshSave.Const_CtmSaveOptions:

Classes

struct  _Underlying
 

Public Types

enum  MeshCompression : int
 

Public Member Functions

virtual void Dispose ()
 
unsafe Const_CtmSaveOptions ()
 Constructs an empty (default-constructed) instance.
 
unsafe Const_CtmSaveOptions (MR.MeshSave._ByValue_CtmSaveOptions _other)
 Generated from constructor MR.MeshSave.CtmSaveOptions.CtmSaveOptions.
 

Static Public Member Functions

static unsafe implicit operator MR.Const_SaveSettings (Const_CtmSaveOptions self)
 

Protected Member Functions

virtual unsafe void Dispose (bool disposing)
 

Properties

unsafe MR.MeshSave.CtmSaveOptions.MeshCompression meshCompression [get]
 
unsafe float vertexPrecision [get]
 
unsafe int compressionLevel [get]
 LZMA compression: 0 - minimal compression, but fast; 9 - maximal compression, but slow.
 
unsafe MR.Misc.? Const_Box< byte > comment [get]
 comment saved in the file
 
unsafe bool onlyValidPoints [get]
 
unsafe bool packPrimitives [get]
 
unsafe MR.? Const_VertColors colors [get]
 optional per-vertex color to save with the geometry
 
unsafe MR.Std.? Const_Vector_MRColor primitiveColors [get]
 per-face colors for meshes, per-undirected-edge colors for polylines, unused for point clouds and other
 
unsafe MR.? Const_VertCoords2 uvMap [get]
 optional per-vertex uv coordinate to save with the geometry
 
unsafe bool saveTriCornerUVCoords [get]
 
unsafe MR.? Const_MeshTexture texture [get]
 optional texture to save with the geometry
 
unsafe MR.Std.Const_String materialName [get]
 the name of file (UTF8 encoded) without extension to save texture in some formats (e.g. .OBJ, .PLY)
 
unsafe MR.? ConstBox_AffineXf3d xf [get]
 this transformation can optionally be applied to all vertices (points) of saved object
 
unsafe MR.Std.Const_Optional_MRLengthUnit lengthUnit [get]
 units of input coordinates and transformation, to be serialized if the format supports it
 
unsafe MR.Std.Const_Optional_MRColor solidColor [get]
 the color of whole object
 
unsafe MR.Std.Const_Function_BoolFuncFromFloat progress [get]
 to report save progress and cancel saving if user desires
 
- Properties inherited from MR.Misc.Object< Const_CtmSaveOptions >
virtual bool _IsOwning [get]
 Returns true if this is an owning instance, and when disposed, will destroy the underlying C++ instance. If false, we assume that the underlying C++ instance will live long enough.
 

Additional Inherited Members

- Protected Attributes inherited from MR.Misc.Object< Const_CtmSaveOptions >
bool _IsOwningVal
 

Detailed Description

Generated from class MR.MeshSave.CtmSaveOptions. Base classes: Direct: (non-virtual) MR.SaveSettings This is the const half of the class.

Property Documentation

◆ onlyValidPoints

unsafe bool MR.MeshSave.Const_CtmSaveOptions.onlyValidPoints
get

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

◆ packPrimitives

unsafe bool MR.MeshSave.Const_CtmSaveOptions.packPrimitives
get

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

◆ saveTriCornerUVCoords

unsafe bool MR.MeshSave.Const_CtmSaveOptions.saveTriCornerUVCoords
get

if a format supports both per-vertex and per-tri-corner UV-coordinates, then prefer the later option (it takes more space but more supported in other software)


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