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

determines how to save points/lines/mesh Generated from class MR.SaveSettings. Derived classes: Direct: (non-virtual) MR.MeshSave.CtmSaveOptions MR.PointsSave.CtmSavePointsOptions This is the const half of the class. More...

Inheritance diagram for MR.Const_SaveSettings:

Classes

struct  _Underlying

Public Member Functions

virtual void Dispose ()
unsafe Const_SaveSettings ()
 Constructs an empty (default-constructed) instance.
unsafe Const_SaveSettings (bool onlyValidPoints, bool packPrimitives, MR.Const_VertColors? colors, MR.Std.Const_Vector_MRColor? primitiveColors, MR.Const_VertCoords2? uvMap, bool saveTriCornerUVCoords, MR.Const_MeshTexture? texture, string materialName, MR.AffineXf3d? xf, MR.LengthUnit? lengthUnit, MR._InOpt_Color solidColor, MR.Std._ByValue_Function_Bool_From_Float progress)
 Constructs MR.SaveSettings elementwise.
unsafe Const_SaveSettings (MR._ByValue_SaveSettings _other)
 Generated from constructor MR.SaveSettings.SaveSettings.
 Const_SaveSettings (Const_SaveSettings _other)
 Generated from constructor MR.SaveSettings.SaveSettings.
 Const_SaveSettings (SaveSettings _other)
 Generated from constructor MR.SaveSettings.SaveSettings.

Protected Member Functions

virtual unsafe void Dispose (bool disposing)

Protected Attributes

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

determines how to save points/lines/mesh Generated from class MR.SaveSettings. Derived classes: Direct: (non-virtual) MR.MeshSave.CtmSaveOptions MR.PointsSave.CtmSavePointsOptions This is the const half of the class.

Constructor & Destructor Documentation

◆ Const_SaveSettings() [1/5]

unsafe MR.Const_SaveSettings.Const_SaveSettings ( )
inline

Constructs an empty (default-constructed) instance.

◆ Const_SaveSettings() [2/5]

unsafe MR.Const_SaveSettings.Const_SaveSettings ( bool onlyValidPoints,
bool packPrimitives,
MR.Const_VertColors? colors,
MR.Std.Const_Vector_MRColor? primitiveColors,
MR.Const_VertCoords2? uvMap,
bool saveTriCornerUVCoords,
MR.Const_MeshTexture? texture,
string materialName,
MR.AffineXf3d? xf,
MR.LengthUnit? lengthUnit,
MR._InOpt_Color solidColor,
MR.Std._ByValue_Function_Bool_From_Float progress )
inline

Constructs MR.SaveSettings elementwise.

◆ Const_SaveSettings() [3/5]

unsafe MR.Const_SaveSettings.Const_SaveSettings ( MR._ByValue_SaveSettings _other)
inline

Generated from constructor MR.SaveSettings.SaveSettings.

◆ Const_SaveSettings() [4/5]

MR.Const_SaveSettings.Const_SaveSettings ( Const_SaveSettings _other)
inline

Generated from constructor MR.SaveSettings.SaveSettings.

◆ Const_SaveSettings() [5/5]

MR.Const_SaveSettings.Const_SaveSettings ( SaveSettings _other)
inline

Generated from constructor MR.SaveSettings.SaveSettings.

Member Function Documentation

◆ Dispose() [1/2]

virtual void MR.Const_SaveSettings.Dispose ( )
inlinevirtual

◆ Dispose() [2/2]

virtual unsafe void MR.Const_SaveSettings.Dispose ( bool disposing)
inlineprotectedvirtual

Member Data Documentation

◆ __ptr_storage_colors

unsafe MR.Const_VertColors._Underlying** MR.Const_SaveSettings.__ptr_storage_colors
protected

◆ __ptr_storage_primitiveColors

unsafe MR.Std.Const_Vector_MRColor._Underlying** MR.Const_SaveSettings.__ptr_storage_primitiveColors
protected

◆ __ptr_storage_texture

unsafe MR.Const_MeshTexture._Underlying** MR.Const_SaveSettings.__ptr_storage_texture
protected

◆ __ptr_storage_uvMap

unsafe MR.Const_VertCoords2._Underlying** MR.Const_SaveSettings.__ptr_storage_uvMap
protected

◆ __ptr_storage_xf

unsafe MR.ConstBox_AffineXf3d._Underlying** MR.Const_SaveSettings.__ptr_storage_xf
protected

◆ __ref_storage_onlyValidPoints

unsafe bool* MR.Const_SaveSettings.__ref_storage_onlyValidPoints
protected

◆ __ref_storage_packPrimitives

unsafe bool* MR.Const_SaveSettings.__ref_storage_packPrimitives
protected

◆ __ref_storage_saveTriCornerUVCoords

unsafe bool* MR.Const_SaveSettings.__ref_storage_saveTriCornerUVCoords
protected

Property Documentation

◆ colors

unsafe MR.? Const_VertColors MR.Const_SaveSettings.colors
get

optional per-vertex color to save with the geometry

◆ lengthUnit

unsafe MR.Std.Const_Optional_MRLengthUnit MR.Const_SaveSettings.lengthUnit
getprotected set

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

◆ materialName

unsafe MR.Std.Const_String MR.Const_SaveSettings.materialName
getprotected set

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

◆ onlyValidPoints

unsafe bool MR.Const_SaveSettings.onlyValidPoints
get

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

◆ packPrimitives

unsafe bool MR.Const_SaveSettings.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.Const_SaveSettings.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.Const_SaveSettings.progress
getprotected set

to report save progress and cancel saving if user desires

◆ saveTriCornerUVCoords

unsafe bool MR.Const_SaveSettings.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.Const_SaveSettings.solidColor
getprotected set

the color of whole object

◆ texture

unsafe MR.? Const_MeshTexture MR.Const_SaveSettings.texture
get

optional texture to save with the geometry

◆ uvMap

unsafe MR.? Const_VertCoords2 MR.Const_SaveSettings.uvMap
get

optional per-vertex uv coordinate to save with the geometry

◆ xf

unsafe MR.? ConstBox_AffineXf3d MR.Const_SaveSettings.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: