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

Classes

class  Mode

Public Member Functions

None __init__ (self)
None __init__ (self, ConstFixMeshDegeneraciesParams arg0)
None __init__ (self, float maxDeviation, float tinyEdgeLength, float criticalTriAspectRatio, float maxAngleChange, float stabilizer, FaceBitSet region, FixMeshDegeneraciesParams.Mode mode, bool mimicPatch, bool protectAttributeBorders, Const_func_bool_from_float cb)
FixMeshDegeneraciesParams assign (self, ConstFixMeshDegeneraciesParams other)
func_bool_from_float cb (self)
None cb (self, Const_func_bool_from_float arg1)
float criticalTriAspectRatio (self)
None criticalTriAspectRatio (self, float arg1)
float maxAngleChange (self)
None maxAngleChange (self, float arg1)
float maxDeviation (self)
None maxDeviation (self, float arg1)
bool mimicPatch (self)
None mimicPatch (self, bool arg1)
bool protectAttributeBorders (self)
None protectAttributeBorders (self, bool arg1)
FaceBitSet region (self)
None region (self, FaceBitSet arg1)
float stabilizer (self)
None stabilizer (self, float arg1)
float tinyEdgeLength (self)
None tinyEdgeLength (self, float arg1)
Public Member Functions inherited from mrmeshpy.ConstFixMeshDegeneraciesParams
 __init__ (self, *args, **kwargs)
FixMeshDegeneraciesParams.Mode mode (self)

Static Public Member Functions

None __init__ (*args, **kwargs)

Additional Inherited Members

Static Protected Attributes inherited from mrmeshpy.ConstFixMeshDegeneraciesParams
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__() [1/4]

None mrmeshpy.FixMeshDegeneraciesParams.__init__ ( * args,
** kwargs )
static

◆ __init__() [2/4]

None mrmeshpy.FixMeshDegeneraciesParams.__init__ ( self)

◆ __init__() [3/4]

None mrmeshpy.FixMeshDegeneraciesParams.__init__ ( self,
ConstFixMeshDegeneraciesParams arg0 )
Implicit copy constructor.

◆ __init__() [4/4]

None mrmeshpy.FixMeshDegeneraciesParams.__init__ ( self,
float maxDeviation,
float tinyEdgeLength,
float criticalTriAspectRatio,
float maxAngleChange,
float stabilizer,
FaceBitSet region,
FixMeshDegeneraciesParams.Mode mode,
bool mimicPatch,
bool protectAttributeBorders,
Const_func_bool_from_float cb )
Implicit aggregate constructor.

Member Function Documentation

◆ assign()

FixMeshDegeneraciesParams mrmeshpy.FixMeshDegeneraciesParams.assign ( self,
ConstFixMeshDegeneraciesParams other )

◆ cb() [1/2]

func_bool_from_float mrmeshpy.FixMeshDegeneraciesParams.cb ( self)

◆ cb() [2/2]

None mrmeshpy.FixMeshDegeneraciesParams.cb ( self,
Const_func_bool_from_float arg1 )

◆ criticalTriAspectRatio() [1/2]

float mrmeshpy.FixMeshDegeneraciesParams.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 from mrmeshpy.ConstFixMeshDegeneraciesParams.

◆ criticalTriAspectRatio() [2/2]

None mrmeshpy.FixMeshDegeneraciesParams.criticalTriAspectRatio ( self,
float arg1 )
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 from mrmeshpy.ConstFixMeshDegeneraciesParams.

◆ maxAngleChange() [1/2]

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

Reimplemented from mrmeshpy.ConstFixMeshDegeneraciesParams.

◆ maxAngleChange() [2/2]

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

Reimplemented from mrmeshpy.ConstFixMeshDegeneraciesParams.

◆ maxDeviation() [1/2]

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

Reimplemented from mrmeshpy.ConstFixMeshDegeneraciesParams.

◆ maxDeviation() [2/2]

None mrmeshpy.FixMeshDegeneraciesParams.maxDeviation ( self,
float arg1 )
maximum permitted deviation from the original surface

Reimplemented from mrmeshpy.ConstFixMeshDegeneraciesParams.

◆ mimicPatch() [1/2]

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

Reimplemented from mrmeshpy.ConstFixMeshDegeneraciesParams.

◆ mimicPatch() [2/2]

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

Reimplemented from mrmeshpy.ConstFixMeshDegeneraciesParams.

◆ protectAttributeBorders() [1/2]

bool mrmeshpy.FixMeshDegeneraciesParams.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 from mrmeshpy.ConstFixMeshDegeneraciesParams.

◆ protectAttributeBorders() [2/2]

None mrmeshpy.FixMeshDegeneraciesParams.protectAttributeBorders ( self,
bool arg1 )
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 from mrmeshpy.ConstFixMeshDegeneraciesParams.

◆ region() [1/2]

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

Reimplemented from mrmeshpy.ConstFixMeshDegeneraciesParams.

◆ region() [2/2]

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

Reimplemented from mrmeshpy.ConstFixMeshDegeneraciesParams.

◆ stabilizer() [1/2]

float mrmeshpy.FixMeshDegeneraciesParams.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 from mrmeshpy.ConstFixMeshDegeneraciesParams.

◆ stabilizer() [2/2]

None mrmeshpy.FixMeshDegeneraciesParams.stabilizer ( self,
float arg1 )
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 from mrmeshpy.ConstFixMeshDegeneraciesParams.

◆ tinyEdgeLength() [1/2]

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

Reimplemented from mrmeshpy.ConstFixMeshDegeneraciesParams.

◆ tinyEdgeLength() [2/2]

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

Reimplemented from mrmeshpy.ConstFixMeshDegeneraciesParams.


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