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

Public Member Functions

None __init__ (self)
None __init__ (self, ConstRemeshSettings arg0)
None __init__ (self, float targetEdgeLen, int maxEdgeSplits, float maxAngleChangeAfterFlip, bool frozenBoundary, float maxBdShift, bool useCurvature, float maxSplittableTriAspectRatio, int finalRelaxIters, bool finalRelaxNoShrinkage, FaceBitSet region, UndirectedEdgeBitSet notFlippable, bool packMesh, bool projectOnOriginalMesh, Const_func_void_from_Id_EdgeTag_Id_EdgeTag onEdgeSplit, Const_func_void_from_Id_EdgeTag_Id_EdgeTag onEdgeDel, Const_func_bool_from_Id_EdgeTag_Vector3_float preCollapse, Const_func_bool_from_float progressCallback)
RemeshSettings assign (self, ConstRemeshSettings other)
int finalRelaxIters (self)
None finalRelaxIters (self, int arg1)
bool finalRelaxNoShrinkage (self)
None finalRelaxNoShrinkage (self, bool arg1)
bool frozenBoundary (self)
None frozenBoundary (self, bool arg1)
float maxAngleChangeAfterFlip (self)
None maxAngleChangeAfterFlip (self, float arg1)
float maxBdShift (self)
None maxBdShift (self, float arg1)
int maxEdgeSplits (self)
None maxEdgeSplits (self, int arg1)
float maxSplittableTriAspectRatio (self)
None maxSplittableTriAspectRatio (self, float arg1)
UndirectedEdgeBitSet notFlippable (self)
None notFlippable (self, UndirectedEdgeBitSet arg1)
func_void_from_Id_EdgeTag_Id_EdgeTag onEdgeDel (self)
None onEdgeDel (self, Const_func_void_from_Id_EdgeTag_Id_EdgeTag arg1)
func_void_from_Id_EdgeTag_Id_EdgeTag onEdgeSplit (self)
None onEdgeSplit (self, Const_func_void_from_Id_EdgeTag_Id_EdgeTag arg1)
bool packMesh (self)
None packMesh (self, bool arg1)
func_bool_from_Id_EdgeTag_Vector3_float preCollapse (self)
None preCollapse (self, Const_func_bool_from_Id_EdgeTag_Vector3_float arg1)
func_bool_from_float progressCallback (self)
None progressCallback (self, Const_func_bool_from_float arg1)
bool projectOnOriginalMesh (self)
None projectOnOriginalMesh (self, bool arg1)
FaceBitSet region (self)
None region (self, FaceBitSet arg1)
float targetEdgeLen (self)
None targetEdgeLen (self, float arg1)
bool useCurvature (self)
None useCurvature (self, bool arg1)
Public Member Functions inherited from mrmeshpy.ConstRemeshSettings
 __init__ (self, *args, **kwargs)

Static Public Member Functions

None __init__ (*args, **kwargs)

Additional Inherited Members

Static Protected Attributes inherited from mrmeshpy.ConstRemeshSettings
typing _offsetof_finalRelaxIters = 28
typing _offsetof_finalRelaxNoShrinkage = 32
typing _offsetof_frozenBoundary = 12
typing _offsetof_maxAngleChangeAfterFlip = 8
typing _offsetof_maxBdShift = 16
typing _offsetof_maxEdgeSplits = 4
typing _offsetof_maxSplittableTriAspectRatio = 24
typing _offsetof_notFlippable = 48
typing _offsetof_onEdgeDel = 96
typing _offsetof_onEdgeSplit = 64
typing _offsetof_packMesh = 56
typing _offsetof_preCollapse = 128
typing _offsetof_progressCallback = 160
typing _offsetof_projectOnOriginalMesh = 57
typing _offsetof_region = 40
typing _offsetof_targetEdgeLen = 0
typing _offsetof_useCurvature = 20

Detailed Description

Generated from:  MR::RemeshSettings

Constructor & Destructor Documentation

◆ __init__() [1/4]

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

◆ __init__() [2/4]

None mrmeshpy.RemeshSettings.__init__ ( self)

◆ __init__() [3/4]

None mrmeshpy.RemeshSettings.__init__ ( self,
ConstRemeshSettings arg0 )
Implicit copy constructor.

◆ __init__() [4/4]

None mrmeshpy.RemeshSettings.__init__ ( self,
float targetEdgeLen,
int maxEdgeSplits,
float maxAngleChangeAfterFlip,
bool frozenBoundary,
float maxBdShift,
bool useCurvature,
float maxSplittableTriAspectRatio,
int finalRelaxIters,
bool finalRelaxNoShrinkage,
FaceBitSet region,
UndirectedEdgeBitSet notFlippable,
bool packMesh,
bool projectOnOriginalMesh,
Const_func_void_from_Id_EdgeTag_Id_EdgeTag onEdgeSplit,
Const_func_void_from_Id_EdgeTag_Id_EdgeTag onEdgeDel,
Const_func_bool_from_Id_EdgeTag_Vector3_float preCollapse,
Const_func_bool_from_float progressCallback )
Implicit aggregate constructor.

Member Function Documentation

◆ assign()

RemeshSettings mrmeshpy.RemeshSettings.assign ( self,
ConstRemeshSettings other )

◆ finalRelaxIters() [1/2]

int mrmeshpy.RemeshSettings.finalRelaxIters ( self)
the number of iterations of final relaxation of mesh vertices;
few iterations can give almost perfect uniformity of the vertices and edge lengths but deviate from the original surface

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ finalRelaxIters() [2/2]

None mrmeshpy.RemeshSettings.finalRelaxIters ( self,
int arg1 )
the number of iterations of final relaxation of mesh vertices;
few iterations can give almost perfect uniformity of the vertices and edge lengths but deviate from the original surface

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ finalRelaxNoShrinkage() [1/2]

bool mrmeshpy.RemeshSettings.finalRelaxNoShrinkage ( self)
if true prevents the surface from shrinkage after many iterations

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ finalRelaxNoShrinkage() [2/2]

None mrmeshpy.RemeshSettings.finalRelaxNoShrinkage ( self,
bool arg1 )
if true prevents the surface from shrinkage after many iterations

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ frozenBoundary() [1/2]

bool mrmeshpy.RemeshSettings.frozenBoundary ( self)
Allows or prohibits splitting and/or collapse boundary edges
it recommended to keep default value here for better quality

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ frozenBoundary() [2/2]

None mrmeshpy.RemeshSettings.frozenBoundary ( self,
bool arg1 )
Allows or prohibits splitting and/or collapse boundary edges
it recommended to keep default value here for better quality

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ maxAngleChangeAfterFlip() [1/2]

float mrmeshpy.RemeshSettings.maxAngleChangeAfterFlip ( self)
Improves local mesh triangulation by doing edge flips if it does not change dihedral angle more than on this value

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ maxAngleChangeAfterFlip() [2/2]

None mrmeshpy.RemeshSettings.maxAngleChangeAfterFlip ( self,
float arg1 )
Improves local mesh triangulation by doing edge flips if it does not change dihedral angle more than on this value

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ maxBdShift() [1/2]

float mrmeshpy.RemeshSettings.maxBdShift ( self)
Maximal shift of a boundary during one edge collapse
only makes sense if `frozenBoundary=false`

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ maxBdShift() [2/2]

None mrmeshpy.RemeshSettings.maxBdShift ( self,
float arg1 )
Maximal shift of a boundary during one edge collapse
only makes sense if `frozenBoundary=false`

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ maxEdgeSplits() [1/2]

int mrmeshpy.RemeshSettings.maxEdgeSplits ( self)
Maximum number of edge splits allowed during subdivision

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ maxEdgeSplits() [2/2]

None mrmeshpy.RemeshSettings.maxEdgeSplits ( self,
int arg1 )
Maximum number of edge splits allowed during subdivision

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ maxSplittableTriAspectRatio() [1/2]

float mrmeshpy.RemeshSettings.maxSplittableTriAspectRatio ( self)
An edge is subdivided only if both its left and right triangles have aspect ratio below or equal to this value.
So this is a maximum aspect ratio of a triangle that can be split on two before Delone optimization.
Please set it to a smaller value only if frozenBoundary==true, otherwise many narrow triangles can appear near border

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ maxSplittableTriAspectRatio() [2/2]

None mrmeshpy.RemeshSettings.maxSplittableTriAspectRatio ( self,
float arg1 )
An edge is subdivided only if both its left and right triangles have aspect ratio below or equal to this value.
So this is a maximum aspect ratio of a triangle that can be split on two before Delone optimization.
Please set it to a smaller value only if frozenBoundary==true, otherwise many narrow triangles can appear near border

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ notFlippable() [1/2]

UndirectedEdgeBitSet mrmeshpy.RemeshSettings.notFlippable ( self)
Edges specified by this bit-set will never be flipped or collapsed, but they can be replaced during collapse of nearby edges so it is updated during the operation;
also the vertices incident to these edges are excluded from relaxation

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ notFlippable() [2/2]

None mrmeshpy.RemeshSettings.notFlippable ( self,
UndirectedEdgeBitSet arg1 )
Edges specified by this bit-set will never be flipped or collapsed, but they can be replaced during collapse of nearby edges so it is updated during the operation;
also the vertices incident to these edges are excluded from relaxation

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ onEdgeDel() [1/2]

func_void_from_Id_EdgeTag_Id_EdgeTag mrmeshpy.RemeshSettings.onEdgeDel ( self)
if valid (e1) is given then dest(e) = dest(e1) and their origins are in different ends of collapsing edge, e1 shall take the place of e

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ onEdgeDel() [2/2]

None mrmeshpy.RemeshSettings.onEdgeDel ( self,
Const_func_void_from_Id_EdgeTag_Id_EdgeTag arg1 )
if valid (e1) is given then dest(e) = dest(e1) and their origins are in different ends of collapsing edge, e1 shall take the place of e

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ onEdgeSplit() [1/2]

func_void_from_Id_EdgeTag_Id_EdgeTag mrmeshpy.RemeshSettings.onEdgeSplit ( self)
this function is called each time edge (e) is split into (e1->e), but before the ring is made Delone

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ onEdgeSplit() [2/2]

None mrmeshpy.RemeshSettings.onEdgeSplit ( self,
Const_func_void_from_Id_EdgeTag_Id_EdgeTag arg1 )
this function is called each time edge (e) is split into (e1->e), but before the ring is made Delone

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ packMesh() [1/2]

bool mrmeshpy.RemeshSettings.packMesh ( self)
whether to pack mesh at the end

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ packMesh() [2/2]

None mrmeshpy.RemeshSettings.packMesh ( self,
bool arg1 )
whether to pack mesh at the end

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ preCollapse() [1/2]

func_bool_from_Id_EdgeTag_Vector3_float mrmeshpy.RemeshSettings.preCollapse ( self)
\\brief The user can provide this optional callback that is invoked immediately before edge collapse;
\\details It receives the edge being collapsed: its destination vertex will disappear,
and its origin vertex will get new position (provided as the second argument) after collapse;
If the callback returns false, then the collapse is prohibited

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ preCollapse() [2/2]

None mrmeshpy.RemeshSettings.preCollapse ( self,
Const_func_bool_from_Id_EdgeTag_Vector3_float arg1 )
\\brief The user can provide this optional callback that is invoked immediately before edge collapse;
\\details It receives the edge being collapsed: its destination vertex will disappear,
and its origin vertex will get new position (provided as the second argument) after collapse;
If the callback returns false, then the collapse is prohibited

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ progressCallback() [1/2]

func_bool_from_float mrmeshpy.RemeshSettings.progressCallback ( self)
callback to report algorithm progress and cancel it by user request

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ progressCallback() [2/2]

None mrmeshpy.RemeshSettings.progressCallback ( self,
Const_func_bool_from_float arg1 )
callback to report algorithm progress and cancel it by user request

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ projectOnOriginalMesh() [1/2]

bool mrmeshpy.RemeshSettings.projectOnOriginalMesh ( self)
if true, then every new vertex after subdivision will be projected on the original mesh (before smoothing);
this does not affect the vertices moved on other stages of the processing

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ projectOnOriginalMesh() [2/2]

None mrmeshpy.RemeshSettings.projectOnOriginalMesh ( self,
bool arg1 )
if true, then every new vertex after subdivision will be projected on the original mesh (before smoothing);
this does not affect the vertices moved on other stages of the processing

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ region() [1/2]

FaceBitSet mrmeshpy.RemeshSettings.region ( self)
Region on mesh to be changed, it is updated during the operation

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ region() [2/2]

None mrmeshpy.RemeshSettings.region ( self,
FaceBitSet arg1 )
Region on mesh to be changed, it is updated during the operation

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ targetEdgeLen() [1/2]

float mrmeshpy.RemeshSettings.targetEdgeLen ( self)
the algorithm will try to keep the length of all edges close to this value,
splitting the edges longer than targetEdgeLen, and then eliminating the edges shorter than targetEdgeLen

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ targetEdgeLen() [2/2]

None mrmeshpy.RemeshSettings.targetEdgeLen ( self,
float arg1 )
the algorithm will try to keep the length of all edges close to this value,
splitting the edges longer than targetEdgeLen, and then eliminating the edges shorter than targetEdgeLen

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ useCurvature() [1/2]

bool mrmeshpy.RemeshSettings.useCurvature ( self)
This option in subdivision works best for natural surfaces, where all triangles are close to equilateral and have similar area,
and no sharp edges in between

Reimplemented from mrmeshpy.ConstRemeshSettings.

◆ useCurvature() [2/2]

None mrmeshpy.RemeshSettings.useCurvature ( self,
bool arg1 )
This option in subdivision works best for natural surfaces, where all triangles are close to equilateral and have similar area,
and no sharp edges in between

Reimplemented from mrmeshpy.ConstRemeshSettings.


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