MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.FillHoleParams Class Reference

Classes

class  MultipleEdgesResolveMode
 

Public Member Functions

None __init__ (self)
 
None __init__ (self, FillHoleMetric metric, bool smoothBd, FaceBitSet outNewFaces, FillHoleParams.MultipleEdgesResolveMode multipleEdgesResolveMode, bool makeDegenerateBand, int maxPolygonSubdivisions, bool_output stopBeforeBadTriangulation)
 
bool makeDegenerateBand (self)
 
None makeDegenerateBand (self, bool arg1)
 
int maxPolygonSubdivisions (self)
 
None maxPolygonSubdivisions (self, int arg1)
 
FillHoleMetric metric (self)
 
None metric (self, FillHoleMetric arg1)
 
FaceBitSet outNewFaces (self)
 
None outNewFaces (self, FaceBitSet arg1)
 
bool smoothBd (self)
 
None smoothBd (self, bool arg1)
 
bool stopBeforeBadTriangulation (self)
 
None stopBeforeBadTriangulation (self, bool_output arg1)
 

Static Public Member Functions

None __init__ (*args, **kwargs)
 
FillHoleParams operator (*args, **kwargs)
 
FillHoleParams operator (*args, **kwargs)
 

Static Public Attributes

FillHoleParams multipleEdgesResolveMode .MultipleEdgesResolveMode
 

Static Protected Attributes

typing _offsetof_maxPolygonSubdivisions = 120
 
typing _offsetof_metric = 0
 
typing _offsetof_multipleEdgesResolveMode = 112
 
typing _offsetof_outNewFaces = 104
 
typing _offsetof_smoothBd = 96
 
typing _offsetof_stopBeforeBadTriangulation = 128
 

Detailed Description

Generated from:  MR::FillHoleParams

\\struct MR::FillHoleParams
\\brief Parameters structure for MR::fillHole\\n
Structure has some options to control MR::fillHole

\\sa \\ref fillHole
\\sa \\ref FillHoleMetric

Constructor & Destructor Documentation

◆ __init__() [1/3]

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

◆ __init__() [2/3]

None mrmeshpy.FillHoleParams.__init__ ( self)

◆ __init__() [3/3]

None mrmeshpy.FillHoleParams.__init__ ( self,
FillHoleMetric metric,
bool smoothBd,
FaceBitSet outNewFaces,
FillHoleParams.MultipleEdgesResolveMode multipleEdgesResolveMode,
bool makeDegenerateBand,
int maxPolygonSubdivisions,
bool_output stopBeforeBadTriangulation )
Implicit aggregate constructor.

Member Function Documentation

◆ makeDegenerateBand() [1/2]

bool mrmeshpy.FillHoleParams.makeDegenerateBand ( self)
If true creates degenerate faces band around hole to have sharp angle visualization
\\warning This flag bad for result topology, most likely you do not need it

◆ makeDegenerateBand() [2/2]

None mrmeshpy.FillHoleParams.makeDegenerateBand ( self,
bool arg1 )

◆ maxPolygonSubdivisions() [1/2]

int mrmeshpy.FillHoleParams.maxPolygonSubdivisions ( self)
The maximum number of polygon subdivisions on a triangle and two smaller polygons,
must be 2 or larger

◆ maxPolygonSubdivisions() [2/2]

None mrmeshpy.FillHoleParams.maxPolygonSubdivisions ( self,
int arg1 )

◆ metric() [1/2]

FillHoleMetric mrmeshpy.FillHoleParams.metric ( self)
Specifies triangulation metric\\n
default for MR::fillHole: getCircumscribedFillMetric\\n
\\sa \\ref FillHoleMetric

◆ metric() [2/2]

None mrmeshpy.FillHoleParams.metric ( self,
FillHoleMetric arg1 )

◆ operator() [1/2]

FillHoleParams mrmeshpy.FillHoleParams.operator ( * args,
** kwargs )
static

◆ operator() [2/2]

FillHoleParams mrmeshpy.FillHoleParams.operator ( * args,
** kwargs )
static

◆ outNewFaces() [1/2]

FaceBitSet mrmeshpy.FillHoleParams.outNewFaces ( self)
If not nullptr accumulate new faces

◆ outNewFaces() [2/2]

None mrmeshpy.FillHoleParams.outNewFaces ( self,
FaceBitSet arg1 )

◆ smoothBd() [1/2]

bool mrmeshpy.FillHoleParams.smoothBd ( self)
If true, hole filling will minimize the sum of metrics including boundary edges,
where one triangle was present before hole filling, and another is added during hole filling.
This makes boundary edges same smooth as inner edges of the patch.
If false, edge metric will not be applied to boundary edges, and the patch tends to make a sharper turn there.

◆ smoothBd() [2/2]

None mrmeshpy.FillHoleParams.smoothBd ( self,
bool arg1 )

◆ stopBeforeBadTriangulation() [1/2]

bool mrmeshpy.FillHoleParams.stopBeforeBadTriangulation ( self)
Input/output value, if it is present: 
returns true if triangulation was bad and do not actually fill hole, 
if triangulation is ok returns false; 
if it is not present fill hole trivially in case of bad triangulation, (or leaves bad triangulation, depending on metric)

◆ stopBeforeBadTriangulation() [2/2]

None mrmeshpy.FillHoleParams.stopBeforeBadTriangulation ( self,
bool_output arg1 )

Member Data Documentation

◆ _offsetof_maxPolygonSubdivisions

typing mrmeshpy.FillHoleParams._offsetof_maxPolygonSubdivisions = 120
staticprotected

◆ _offsetof_metric

typing mrmeshpy.FillHoleParams._offsetof_metric = 0
staticprotected

◆ _offsetof_multipleEdgesResolveMode

typing mrmeshpy.FillHoleParams._offsetof_multipleEdgesResolveMode = 112
staticprotected

◆ _offsetof_outNewFaces

typing mrmeshpy.FillHoleParams._offsetof_outNewFaces = 104
staticprotected

◆ _offsetof_smoothBd

typing mrmeshpy.FillHoleParams._offsetof_smoothBd = 96
staticprotected

◆ _offsetof_stopBeforeBadTriangulation

typing mrmeshpy.FillHoleParams._offsetof_stopBeforeBadTriangulation = 128
staticprotected

◆ multipleEdgesResolveMode

FillHoleParams mrmeshpy.FillHoleParams.multipleEdgesResolveMode .MultipleEdgesResolveMode
static

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