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

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

+ Inheritance diagram for MR.MeshSave.CtmSaveOptions:

Public Member Functions

unsafe CtmSaveOptions ()
 Constructs an empty (default-constructed) instance.
 
unsafe CtmSaveOptions (MR.MeshSave._ByValue_CtmSaveOptions _other)
 Generated from constructor MR.MeshSave.CtmSaveOptions.CtmSaveOptions.
 
 CtmSaveOptions (Const_CtmSaveOptions _other)
 Generated from constructor MR.MeshSave.CtmSaveOptions.CtmSaveOptions.
 
 CtmSaveOptions (CtmSaveOptions _other)
 Generated from constructor MR.MeshSave.CtmSaveOptions.CtmSaveOptions.
 
unsafe MR.MeshSave.CtmSaveOptions assign (MR.MeshSave._ByValue_CtmSaveOptions _other)
 Generated from method MR.MeshSave.CtmSaveOptions.operator=.
 

Static Public Member Functions

static unsafe implicit operator MR.SaveSettings (CtmSaveOptions self)
 

Properties

new unsafe ref MR.MeshSave.CtmSaveOptions.MeshCompression meshCompression [get]
 
new unsafe ref float vertexPrecision [get]
 
new unsafe ref int compressionLevel [get]
 LZMA compression: 0 - minimal compression, but fast; 9 - maximal compression, but slow.
 
new unsafe MR.Misc.? Const_Box< byte > comment [get, set]
 comment saved in the file
 
new unsafe ref bool onlyValidPoints [get]
 
new unsafe ref bool packPrimitives [get]
 
new unsafe MR.? Const_VertColors colors [get, set]
 optional per-vertex color to save with the geometry
 
new unsafe MR.Std.? Const_Vector_MRColor primitiveColors [get, set]
 per-face colors for meshes, per-undirected-edge colors for polylines, unused for point clouds and other
 
new unsafe MR.? Const_VertCoords2 uvMap [get, set]
 optional per-vertex uv coordinate to save with the geometry
 
new unsafe ref bool saveTriCornerUVCoords [get]
 
new unsafe MR.? Const_MeshTexture texture [get, set]
 optional texture to save with the geometry
 
new unsafe MR.Std.String materialName [get, protected set]
 the name of file (UTF8 encoded) without extension to save texture in some formats (e.g. .OBJ, .PLY)
 
new unsafe MR.? ConstBox_AffineXf3d xf [get, set]
 this transformation can optionally be applied to all vertices (points) of saved object
 
new unsafe MR.Std.Optional_MRLengthUnit lengthUnit [get, protected set]
 units of input coordinates and transformation, to be serialized if the format supports it
 
new unsafe MR.Std.Optional_MRColor solidColor [get, protected set]
 the color of whole object
 
new unsafe MR.Std.Function_BoolFuncFromFloat progress [get, protected set]
 to report save progress and cancel saving if user desires
 

Detailed Description

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

Constructor & Destructor Documentation

◆ CtmSaveOptions() [1/4]

unsafe MR.MeshSave.CtmSaveOptions.CtmSaveOptions ( )
inline

Constructs an empty (default-constructed) instance.

◆ CtmSaveOptions() [2/4]

unsafe MR.MeshSave.CtmSaveOptions.CtmSaveOptions ( MR.MeshSave._ByValue_CtmSaveOptions _other)
inline

Generated from constructor MR.MeshSave.CtmSaveOptions.CtmSaveOptions.

◆ CtmSaveOptions() [3/4]

MR.MeshSave.CtmSaveOptions.CtmSaveOptions ( Const_CtmSaveOptions _other)
inline

Generated from constructor MR.MeshSave.CtmSaveOptions.CtmSaveOptions.

◆ CtmSaveOptions() [4/4]

MR.MeshSave.CtmSaveOptions.CtmSaveOptions ( CtmSaveOptions _other)
inline

Generated from constructor MR.MeshSave.CtmSaveOptions.CtmSaveOptions.

Member Function Documentation

◆ assign()

unsafe MR.MeshSave.CtmSaveOptions MR.MeshSave.CtmSaveOptions.assign ( MR.MeshSave._ByValue_CtmSaveOptions _other)
inline

Generated from method MR.MeshSave.CtmSaveOptions.operator=.

◆ operator MR.SaveSettings()

static unsafe implicit MR.MeshSave.CtmSaveOptions.operator MR.SaveSettings ( CtmSaveOptions self)
inlinestatic

Property Documentation

◆ colors

new unsafe MR.? Const_VertColors MR.MeshSave.CtmSaveOptions.colors
getset

optional per-vertex color to save with the geometry

◆ comment

new unsafe MR.Misc.? Const_Box<byte> MR.MeshSave.CtmSaveOptions.comment
getset

comment saved in the file

◆ compressionLevel

new unsafe ref int MR.MeshSave.CtmSaveOptions.compressionLevel
get

LZMA compression: 0 - minimal compression, but fast; 9 - maximal compression, but slow.

◆ lengthUnit

new unsafe MR.Std.Optional_MRLengthUnit MR.MeshSave.CtmSaveOptions.lengthUnit
getprotected set

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

◆ materialName

new unsafe MR.Std.String MR.MeshSave.CtmSaveOptions.materialName
getprotected set

the name of file (UTF8 encoded) without extension to save texture in some formats (e.g. .OBJ, .PLY)

◆ meshCompression

new unsafe ref MR.MeshSave.CtmSaveOptions.MeshCompression MR.MeshSave.CtmSaveOptions.meshCompression
get

◆ onlyValidPoints

new unsafe ref bool MR.MeshSave.CtmSaveOptions.onlyValidPoints
get

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

◆ packPrimitives

new unsafe ref bool MR.MeshSave.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

◆ primitiveColors

new unsafe MR.Std.? Const_Vector_MRColor MR.MeshSave.CtmSaveOptions.primitiveColors
getset

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

◆ progress

new unsafe MR.Std.Function_BoolFuncFromFloat MR.MeshSave.CtmSaveOptions.progress
getprotected set

to report save progress and cancel saving if user desires

◆ saveTriCornerUVCoords

new unsafe ref bool MR.MeshSave.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)

◆ solidColor

new unsafe MR.Std.Optional_MRColor MR.MeshSave.CtmSaveOptions.solidColor
getprotected set

the color of whole object

◆ texture

new unsafe MR.? Const_MeshTexture MR.MeshSave.CtmSaveOptions.texture
getset

optional texture to save with the geometry

◆ uvMap

new unsafe MR.? Const_VertCoords2 MR.MeshSave.CtmSaveOptions.uvMap
getset

optional per-vertex uv coordinate to save with the geometry

◆ vertexPrecision

new unsafe ref float MR.MeshSave.CtmSaveOptions.vertexPrecision
get

◆ xf

new unsafe MR.? ConstBox_AffineXf3d MR.MeshSave.CtmSaveOptions.xf
getset

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


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