MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.ConstSaveSettings Class Reference
Inheritance diagram for mrmeshpy.ConstSaveSettings:

Public Member Functions

 __init__ (self, *args, **kwargs)
VertColors colors (self)
Const_std_optional_LengthUnit lengthUnit (self)
str materialName (self)
bool onlyValidPoints (self)
bool packPrimitives (self)
FaceColors primitiveColors (self)
Const_func_bool_from_float progress (self)
bool saveTriCornerUVCoords (self)
Const_std_optional_Color solidColor (self)
bool telemetrySignal (self)
MeshTexture texture (self)
VertCoords2 uvMap (self)
AffineXf3d xf (self)

Static Protected Attributes

typing _offsetof_colors = 8
typing _offsetof_lengthUnit = 88
typing _offsetof_materialName = 48
typing _offsetof_onlyValidPoints = 0
typing _offsetof_packPrimitives = 1
typing _offsetof_primitiveColors = 16
typing _offsetof_progress = 104
typing _offsetof_saveTriCornerUVCoords = 32
typing _offsetof_solidColor = 96
typing _offsetof_telemetrySignal = 101
typing _offsetof_texture = 40
typing _offsetof_uvMap = 24
typing _offsetof_xf = 80

Detailed Description

Generated from:  MR::SaveSettings

determines how to save points/lines/mesh

Constructor & Destructor Documentation

◆ __init__()

mrmeshpy.ConstSaveSettings.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstSaveSettings) -> None

2. __init__(self: meshlib.mrmeshpy.ConstSaveSettings, arg0: meshlib.mrmeshpy.ConstSaveSettings) -> None

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstSaveSettings, onlyValidPoints: bool, packPrimitives: bool, colors: meshlib.mrmeshpy.ConstVertColors, primitiveColors: meshlib.mrmeshpy.ConstFaceColors, uvMap: meshlib.mrmeshpy.ConstVertCoords2, saveTriCornerUVCoords: bool, texture: meshlib.mrmeshpy.ConstMeshTexture, materialName: str, xf: meshlib.mrmeshpy.ConstAffineXf3d, lengthUnit: meshlib.mrmeshpy.Const_std_optional_LengthUnit, solidColor: meshlib.mrmeshpy.Const_std_optional_Color, telemetrySignal: bool, progress: meshlib.mrmeshpy.Const_func_bool_from_float) -> None

Implicit aggregate constructor.

4. __init__(self: meshlib.mrmeshpy.ConstSaveSettings, : meshlib.mrmeshpy.ConstSaveSettings) -> None

Member Function Documentation

◆ colors()

VertColors mrmeshpy.ConstSaveSettings.colors ( self)
optional per-vertex color to save with the geometry

Reimplemented in mrmeshpy.SaveSettings, and mrmeshpy.SaveSettings.

◆ lengthUnit()

Const_std_optional_LengthUnit mrmeshpy.ConstSaveSettings.lengthUnit ( self)
units of input coordinates and transformation, to be serialized if the format supports it

Reimplemented in mrmeshpy.SaveSettings, and mrmeshpy.SaveSettings.

◆ materialName()

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

Reimplemented in mrmeshpy.SaveSettings, and mrmeshpy.SaveSettings.

◆ onlyValidPoints()

bool mrmeshpy.ConstSaveSettings.onlyValidPoints ( self)
true - save valid points/vertices only (pack them);
false - save all points/vertices preserving their indices

Reimplemented in mrmeshpy.SaveSettings, and mrmeshpy.SaveSettings.

◆ packPrimitives()

bool mrmeshpy.ConstSaveSettings.packPrimitives ( self)
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

Reimplemented in mrmeshpy.SaveSettings, and mrmeshpy.SaveSettings.

◆ primitiveColors()

FaceColors mrmeshpy.ConstSaveSettings.primitiveColors ( self)
per-face colors for meshes, per-undirected-edge colors for polylines, unused for point clouds and other

Reimplemented in mrmeshpy.SaveSettings, and mrmeshpy.SaveSettings.

◆ progress()

Const_func_bool_from_float mrmeshpy.ConstSaveSettings.progress ( self)
to report save progress and cancel saving if user desires

Reimplemented in mrmeshpy.SaveSettings, and mrmeshpy.SaveSettings.

◆ saveTriCornerUVCoords()

bool mrmeshpy.ConstSaveSettings.saveTriCornerUVCoords ( self)
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)

Reimplemented in mrmeshpy.SaveSettings, and mrmeshpy.SaveSettings.

◆ solidColor()

Const_std_optional_Color mrmeshpy.ConstSaveSettings.solidColor ( self)
the color of whole object, saved only in the formats having object color:
.3mf (if neither per-vertex nor per-triangle colors are given), .obj (Kd in .mtl file), binary .stl (COLOR= in the header)

Reimplemented in mrmeshpy.SaveSettings, and mrmeshpy.SaveSettings.

◆ telemetrySignal()

bool mrmeshpy.ConstSaveSettings.telemetrySignal ( self)
permit telemetry signal about saving

Reimplemented in mrmeshpy.SaveSettings, and mrmeshpy.SaveSettings.

◆ texture()

MeshTexture mrmeshpy.ConstSaveSettings.texture ( self)
optional texture to save with the geometry

Reimplemented in mrmeshpy.SaveSettings, and mrmeshpy.SaveSettings.

◆ uvMap()

VertCoords2 mrmeshpy.ConstSaveSettings.uvMap ( self)
optional per-vertex uv coordinate to save with the geometry

Reimplemented in mrmeshpy.SaveSettings, and mrmeshpy.SaveSettings.

◆ xf()

AffineXf3d mrmeshpy.ConstSaveSettings.xf ( self)
this transformation can optionally be applied to all vertices (points) of saved object

Reimplemented in mrmeshpy.SaveSettings, and mrmeshpy.SaveSettings.

Member Data Documentation

◆ _offsetof_colors

typing mrmeshpy.ConstSaveSettings._offsetof_colors = 8
staticprotected

◆ _offsetof_lengthUnit

typing mrmeshpy.ConstSaveSettings._offsetof_lengthUnit = 88
staticprotected

◆ _offsetof_materialName

typing mrmeshpy.ConstSaveSettings._offsetof_materialName = 48
staticprotected

◆ _offsetof_onlyValidPoints

typing mrmeshpy.ConstSaveSettings._offsetof_onlyValidPoints = 0
staticprotected

◆ _offsetof_packPrimitives

typing mrmeshpy.ConstSaveSettings._offsetof_packPrimitives = 1
staticprotected

◆ _offsetof_primitiveColors

typing mrmeshpy.ConstSaveSettings._offsetof_primitiveColors = 16
staticprotected

◆ _offsetof_progress

typing mrmeshpy.ConstSaveSettings._offsetof_progress = 104
staticprotected

◆ _offsetof_saveTriCornerUVCoords

typing mrmeshpy.ConstSaveSettings._offsetof_saveTriCornerUVCoords = 32
staticprotected

◆ _offsetof_solidColor

typing mrmeshpy.ConstSaveSettings._offsetof_solidColor = 96
staticprotected

◆ _offsetof_telemetrySignal

typing mrmeshpy.ConstSaveSettings._offsetof_telemetrySignal = 101
staticprotected

◆ _offsetof_texture

typing mrmeshpy.ConstSaveSettings._offsetof_texture = 40
staticprotected

◆ _offsetof_uvMap

typing mrmeshpy.ConstSaveSettings._offsetof_uvMap = 24
staticprotected

◆ _offsetof_xf

typing mrmeshpy.ConstSaveSettings._offsetof_xf = 80
staticprotected

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