MeshLib C# Docs
Loading...
Searching...
No Matches

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 { None = 0 , Lossless = 1 , Lossy = 2 }

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.
 Const_CtmSaveOptions (Const_CtmSaveOptions _other)
 Generated from constructor MR.MeshSave.CtmSaveOptions.CtmSaveOptions.
 Const_CtmSaveOptions (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)

Protected Attributes

unsafe MR.MeshSave.CtmSaveOptions.MeshCompression__ref_storage_meshCompression
unsafe float * __ref_storage_vertexPrecision
unsafe int * __ref_storage_compressionLevel
unsafe byte ** __ptr_storage_comment
unsafe bool * __ref_storage_onlyValidPoints
unsafe bool * __ref_storage_packPrimitives
unsafe MR.Const_VertColors._Underlying ** __ptr_storage_colors
unsafe MR.Std.Const_Vector_MRColor._Underlying ** __ptr_storage_primitiveColors
unsafe MR.Const_VertCoords2._Underlying ** __ptr_storage_uvMap
unsafe bool * __ref_storage_saveTriCornerUVCoords
unsafe MR.Const_MeshTexture._Underlying ** __ptr_storage_texture
unsafe MR.ConstBox_AffineXf3d._Underlying ** __ptr_storage_xf

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]
 true - save valid points/vertices only (pack them); false - save all points/vertices preserving their indices
unsafe bool 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
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]
 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)
unsafe MR.? Const_MeshTexture texture [get]
 optional texture to save with the geometry
unsafe MR.Std.Const_String materialName [get, protected set]
 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, protected set]
 units of input coordinates and transformation, to be serialized if the format supports it
unsafe MR.Std.Const_Optional_MRColor solidColor [get, protected set]
 the color of whole object
unsafe MR.Std.Const_Function_Bool_From_Float 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 const half of the class.

Member Enumeration Documentation

◆ MeshCompression

Enumerator
None 

no compression at all, fast but not effective

Lossless 

compression without any loss in vertex coordinates

Lossy 

compression with loss in vertex coordinates

Constructor & Destructor Documentation

◆ Const_CtmSaveOptions() [1/4]

unsafe MR.MeshSave.Const_CtmSaveOptions.Const_CtmSaveOptions ( )
inline

Constructs an empty (default-constructed) instance.

◆ Const_CtmSaveOptions() [2/4]

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

Generated from constructor MR.MeshSave.CtmSaveOptions.CtmSaveOptions.

◆ Const_CtmSaveOptions() [3/4]

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

Generated from constructor MR.MeshSave.CtmSaveOptions.CtmSaveOptions.

◆ Const_CtmSaveOptions() [4/4]

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

Generated from constructor MR.MeshSave.CtmSaveOptions.CtmSaveOptions.

Member Function Documentation

◆ Dispose() [1/2]

virtual void MR.MeshSave.Const_CtmSaveOptions.Dispose ( )
inlinevirtual

◆ Dispose() [2/2]

virtual unsafe void MR.MeshSave.Const_CtmSaveOptions.Dispose ( bool disposing)
inlineprotectedvirtual

◆ operator MR.Const_SaveSettings()

unsafe implicit MR.MeshSave.Const_CtmSaveOptions.operator MR.Const_SaveSettings ( Const_CtmSaveOptions self)
inlinestatic

Member Data Documentation

◆ __ptr_storage_colors

unsafe MR.Const_VertColors._Underlying** MR.MeshSave.Const_CtmSaveOptions.__ptr_storage_colors
protected

◆ __ptr_storage_comment

unsafe byte** MR.MeshSave.Const_CtmSaveOptions.__ptr_storage_comment
protected

◆ __ptr_storage_primitiveColors

unsafe MR.Std.Const_Vector_MRColor._Underlying** MR.MeshSave.Const_CtmSaveOptions.__ptr_storage_primitiveColors
protected

◆ __ptr_storage_texture

unsafe MR.Const_MeshTexture._Underlying** MR.MeshSave.Const_CtmSaveOptions.__ptr_storage_texture
protected

◆ __ptr_storage_uvMap

unsafe MR.Const_VertCoords2._Underlying** MR.MeshSave.Const_CtmSaveOptions.__ptr_storage_uvMap
protected

◆ __ptr_storage_xf

unsafe MR.ConstBox_AffineXf3d._Underlying** MR.MeshSave.Const_CtmSaveOptions.__ptr_storage_xf
protected

◆ __ref_storage_compressionLevel

unsafe int* MR.MeshSave.Const_CtmSaveOptions.__ref_storage_compressionLevel
protected

◆ __ref_storage_meshCompression

unsafe MR.MeshSave.CtmSaveOptions.MeshCompression* MR.MeshSave.Const_CtmSaveOptions.__ref_storage_meshCompression
protected

◆ __ref_storage_onlyValidPoints

unsafe bool* MR.MeshSave.Const_CtmSaveOptions.__ref_storage_onlyValidPoints
protected

◆ __ref_storage_packPrimitives

unsafe bool* MR.MeshSave.Const_CtmSaveOptions.__ref_storage_packPrimitives
protected

◆ __ref_storage_saveTriCornerUVCoords

unsafe bool* MR.MeshSave.Const_CtmSaveOptions.__ref_storage_saveTriCornerUVCoords
protected

◆ __ref_storage_vertexPrecision

unsafe float* MR.MeshSave.Const_CtmSaveOptions.__ref_storage_vertexPrecision
protected

Property Documentation

◆ colors

unsafe MR.? Const_VertColors MR.MeshSave.Const_CtmSaveOptions.colors
get

optional per-vertex color to save with the geometry

◆ comment

unsafe MR.Misc.? Const_Box<byte> MR.MeshSave.Const_CtmSaveOptions.comment
get

comment saved in the file

◆ compressionLevel

unsafe int MR.MeshSave.Const_CtmSaveOptions.compressionLevel
get

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

◆ lengthUnit

unsafe MR.Std.Const_Optional_MRLengthUnit MR.MeshSave.Const_CtmSaveOptions.lengthUnit
getprotected set

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

◆ materialName

unsafe MR.Std.Const_String MR.MeshSave.Const_CtmSaveOptions.materialName
getprotected set

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

◆ meshCompression

unsafe MR.MeshSave.CtmSaveOptions.MeshCompression MR.MeshSave.Const_CtmSaveOptions.meshCompression
get

◆ 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

◆ primitiveColors

unsafe MR.Std.? Const_Vector_MRColor MR.MeshSave.Const_CtmSaveOptions.primitiveColors
get

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

◆ progress

unsafe MR.Std.Const_Function_Bool_From_Float MR.MeshSave.Const_CtmSaveOptions.progress
getprotected set

to report save progress and cancel saving if user desires

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

◆ solidColor

unsafe MR.Std.Const_Optional_MRColor MR.MeshSave.Const_CtmSaveOptions.solidColor
getprotected set

the color of whole object

◆ texture

unsafe MR.? Const_MeshTexture MR.MeshSave.Const_CtmSaveOptions.texture
get

optional texture to save with the geometry

◆ uvMap

unsafe MR.? Const_VertCoords2 MR.MeshSave.Const_CtmSaveOptions.uvMap
get

optional per-vertex uv coordinate to save with the geometry

◆ vertexPrecision

unsafe float MR.MeshSave.Const_CtmSaveOptions.vertexPrecision
get

◆ xf

unsafe MR.? ConstBox_AffineXf3d MR.MeshSave.Const_CtmSaveOptions.xf
get

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


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