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

Classes

class  Mode

Public Member Functions

 __init__ (self, *args, **kwargs)
Const_func_bool_from_float cb (self)
float criticalTriAspectRatio (self)
float maxAngleChange (self)
float maxDeviation (self)
bool mimicPatch (self)
FixMeshDegeneraciesParams.Mode mode (self)
bool protectAttributeBorders (self)
FaceBitSet region (self)
float stabilizer (self)
float tinyEdgeLength (self)

Static Protected Attributes

typing _offsetof_cb = 40
typing _offsetof_criticalTriAspectRatio = 8
typing _offsetof_maxAngleChange = 12
typing _offsetof_maxDeviation = 0
typing _offsetof_mimicPatch = 36
typing _offsetof_mode = 32
typing _offsetof_protectAttributeBorders = 37
typing _offsetof_region = 24
typing _offsetof_stabilizer = 16
typing _offsetof_tinyEdgeLength = 4

Detailed Description

Generated from:  MR::FixMeshDegeneraciesParams

Constructor & Destructor Documentation

◆ __init__()

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

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

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

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstFixMeshDegeneraciesParams, maxDeviation: float, tinyEdgeLength: float, criticalTriAspectRatio: float, maxAngleChange: float, stabilizer: float, region: meshlib.mrmeshpy.FaceBitSet, mode: meshlib.mrmeshpy.FixMeshDegeneraciesParams.Mode, mimicPatch: bool, protectAttributeBorders: bool, cb: meshlib.mrmeshpy.Const_func_bool_from_float) -> None

Implicit aggregate constructor.

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

Member Function Documentation

◆ cb()

Const_func_bool_from_float mrmeshpy.ConstFixMeshDegeneraciesParams.cb ( self)

◆ criticalTriAspectRatio()

float mrmeshpy.ConstFixMeshDegeneraciesParams.criticalTriAspectRatio ( self)
the algorithm will ignore dihedral angle check if one of triangles had aspect ratio equal or more than this value;
and the algorithm will permit temporary increase in aspect ratio after collapse, if before collapse one of the triangles had larger aspect ratio

Reimplemented in mrmeshpy.FixMeshDegeneraciesParams, and mrmeshpy.FixMeshDegeneraciesParams.

◆ maxAngleChange()

float mrmeshpy.ConstFixMeshDegeneraciesParams.maxAngleChange ( self)
Permit edge flips if it does not change dihedral angle more than on this value

Reimplemented in mrmeshpy.FixMeshDegeneraciesParams, and mrmeshpy.FixMeshDegeneraciesParams.

◆ maxDeviation()

float mrmeshpy.ConstFixMeshDegeneraciesParams.maxDeviation ( self)
maximum permitted deviation from the original surface

Reimplemented in mrmeshpy.FixMeshDegeneraciesParams, and mrmeshpy.FixMeshDegeneraciesParams.

◆ mimicPatch()

bool mrmeshpy.ConstFixMeshDegeneraciesParams.mimicPatch ( self)
trying to stay close to initial surface when patching
also disables smoothing on patch

Reimplemented in mrmeshpy.FixMeshDegeneraciesParams, and mrmeshpy.FixMeshDegeneraciesParams.

◆ mode()

FixMeshDegeneraciesParams.Mode mrmeshpy.ConstFixMeshDegeneraciesParams.mode ( self)

◆ protectAttributeBorders()

bool mrmeshpy.ConstFixMeshDegeneraciesParams.protectAttributeBorders ( self)
only for fixMeshDataDegeneracies (fixMeshDegeneracies ignores it): never flip the edges between faces with different colors or texture ids,
the selected edges and the creases, so that the fixing does not move them, but their vertices can still shift by up to max( maxDeviation, tinyEdgeLength )
in the collapses of nearby edges; a degenerate triangle with the longest edge among them is then fixed
only if its opposite vertex is within max( maxDeviation, tinyEdgeLength ) from that edge, or by Mode::RemeshPatch

Reimplemented in mrmeshpy.FixMeshDegeneraciesParams, and mrmeshpy.FixMeshDegeneraciesParams.

◆ region()

FaceBitSet mrmeshpy.ConstFixMeshDegeneraciesParams.region ( self)
degenerations will be fixed only in given region, it is updated during the operation

Reimplemented in mrmeshpy.FixMeshDegeneraciesParams, and mrmeshpy.FixMeshDegeneraciesParams.

◆ stabilizer()

float mrmeshpy.ConstFixMeshDegeneraciesParams.stabilizer ( self)
Small stabilizer is important to achieve good results on completely planar mesh parts,
if your mesh is not-planer everywhere, then you can set it to zero

Reimplemented in mrmeshpy.FixMeshDegeneraciesParams, and mrmeshpy.FixMeshDegeneraciesParams.

◆ tinyEdgeLength()

float mrmeshpy.ConstFixMeshDegeneraciesParams.tinyEdgeLength ( self)
edges not longer than this value will be collapsed ignoring normals and aspect ratio checks

Reimplemented in mrmeshpy.FixMeshDegeneraciesParams, and mrmeshpy.FixMeshDegeneraciesParams.

Member Data Documentation

◆ _offsetof_cb

typing mrmeshpy.ConstFixMeshDegeneraciesParams._offsetof_cb = 40
staticprotected

◆ _offsetof_criticalTriAspectRatio

typing mrmeshpy.ConstFixMeshDegeneraciesParams._offsetof_criticalTriAspectRatio = 8
staticprotected

◆ _offsetof_maxAngleChange

typing mrmeshpy.ConstFixMeshDegeneraciesParams._offsetof_maxAngleChange = 12
staticprotected

◆ _offsetof_maxDeviation

typing mrmeshpy.ConstFixMeshDegeneraciesParams._offsetof_maxDeviation = 0
staticprotected

◆ _offsetof_mimicPatch

typing mrmeshpy.ConstFixMeshDegeneraciesParams._offsetof_mimicPatch = 36
staticprotected

◆ _offsetof_mode

typing mrmeshpy.ConstFixMeshDegeneraciesParams._offsetof_mode = 32
staticprotected

◆ _offsetof_protectAttributeBorders

typing mrmeshpy.ConstFixMeshDegeneraciesParams._offsetof_protectAttributeBorders = 37
staticprotected

◆ _offsetof_region

typing mrmeshpy.ConstFixMeshDegeneraciesParams._offsetof_region = 24
staticprotected

◆ _offsetof_stabilizer

typing mrmeshpy.ConstFixMeshDegeneraciesParams._offsetof_stabilizer = 16
staticprotected

◆ _offsetof_tinyEdgeLength

typing mrmeshpy.ConstFixMeshDegeneraciesParams._offsetof_tinyEdgeLength = 4
staticprotected

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