MeshLib Python Docs
Loading...
Searching...
No Matches
meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f Class Reference

Public Member Functions

None __init__ (self)
 
None __init__ (self, DecimatePolylineSettings_Vector2f arg0)
 
None __init__ (self, float maxError, float maxEdgeLen, float stabilizer, bool optimizeVertexPos, int maxDeletedVertices, VertBitSet region, bool touchBdVertices, func_bool_from_Id_EdgeTag_Vector2_float preCollapse, func_void_from_Id_UndirectedEdgeTag_float_Vector2_float adjustCollapse, Vector_QuadraticForm2f_VertId vertForms)
 
func_void_from_Id_UndirectedEdgeTag_float_Vector2_float adjustCollapse (self)
 
None adjustCollapse (self, func_void_from_Id_UndirectedEdgeTag_float_Vector2_float arg1)
 
int maxDeletedVertices (self)
 
None maxDeletedVertices (self, int arg1)
 
float maxEdgeLen (self)
 
None maxEdgeLen (self, float arg1)
 
float maxError (self)
 
None maxError (self, float arg1)
 
bool optimizeVertexPos (self)
 
None optimizeVertexPos (self, bool arg1)
 
func_bool_from_Id_EdgeTag_Vector2_float preCollapse (self)
 
None preCollapse (self, func_bool_from_Id_EdgeTag_Vector2_float arg1)
 
VertBitSet region (self)
 
None region (self, VertBitSet arg1)
 
float stabilizer (self)
 
None stabilizer (self, float arg1)
 
bool touchBdVertices (self)
 
None touchBdVertices (self, bool arg1)
 
Vector_QuadraticForm2f_VertId vertForms (self)
 
None vertForms (self, Vector_QuadraticForm2f_VertId arg1)
 

Detailed Description

Generated from:  MR::DecimatePolylineSettings<MR::Vector2f>
Aliases:  DecimatePolylineSettings2, DecimatePolylineSettings2


 \\struct MR::DecimatePolylineSettings
 \\brief Parameters structure for MR::decimatePolyline
 \\ingroup DecimateGroup

 \\sa \\ref decimatePolyline

Constructor & Destructor Documentation

◆ __init__() [1/3]

None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.__init__ ( self)
Implicit default constructor.

◆ __init__() [2/3]

None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.__init__ ( self,
DecimatePolylineSettings_Vector2f arg0 )
Implicit copy constructor.

◆ __init__() [3/3]

None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.__init__ ( self,
float maxError,
float maxEdgeLen,
float stabilizer,
bool optimizeVertexPos,
int maxDeletedVertices,
VertBitSet region,
bool touchBdVertices,
func_bool_from_Id_EdgeTag_Vector2_float preCollapse,
func_void_from_Id_UndirectedEdgeTag_float_Vector2_float adjustCollapse,
Vector_QuadraticForm2f_VertId vertForms )
Implicit aggregate constructor.

Member Function Documentation

◆ adjustCollapse() [1/2]

func_void_from_Id_UndirectedEdgeTag_float_Vector2_float meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.adjustCollapse ( self)
 \\brief The user can provide this optional callback for adjusting error introduced by this
 edge collapse and the collapse position.
 \\details On input the callback gets the squared error and position computed by standard means,
 and callback can modify any of them. The larger the error, the later this edge will be collapsed.
 This callback can be called from many threads in parallel and must be thread-safe.
 This callback can be called many times for each edge before real collapsing, and it is important to make the same adjustment.

◆ adjustCollapse() [2/2]

None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.adjustCollapse ( self,
func_void_from_Id_UndirectedEdgeTag_float_Vector2_float arg1 )

◆ maxDeletedVertices() [1/2]

int meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.maxDeletedVertices ( self)
Limit on the number of deleted vertices

◆ maxDeletedVertices() [2/2]

None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.maxDeletedVertices ( self,
int arg1 )

◆ maxEdgeLen() [1/2]

float meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.maxEdgeLen ( self)
Maximal possible edge length created during decimation

◆ maxEdgeLen() [2/2]

None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.maxEdgeLen ( self,
float arg1 )

◆ maxError() [1/2]

float meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.maxError ( self)
Limit from above on the maximum distance from moved vertices to original contour

◆ maxError() [2/2]

None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.maxError ( self,
float arg1 )

◆ optimizeVertexPos() [1/2]

bool meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.optimizeVertexPos ( self)
if true then after each edge collapse the position of remaining vertex is optimized to
minimize local shape change, if false then the edge is collapsed in one of its vertices, which keeps its position

◆ optimizeVertexPos() [2/2]

None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.optimizeVertexPos ( self,
bool arg1 )

◆ preCollapse() [1/2]

func_bool_from_Id_EdgeTag_Vector2_float meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.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

◆ preCollapse() [2/2]

None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.preCollapse ( self,
func_bool_from_Id_EdgeTag_Vector2_float arg1 )

◆ region() [1/2]

VertBitSet meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.region ( self)
Region of the polyline to be decimated, it is updated during the operation
Remain nullptr to include the whole polyline

◆ region() [2/2]

None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.region ( self,
VertBitSet arg1 )

◆ stabilizer() [1/2]

float meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.stabilizer ( self)
Stabilizer is dimensionless coefficient.
The larger is stabilizer, the more Decimator will strive to retain the density of input points.
If stabilizer is zero, then only the shape of input line will be preserved.

◆ stabilizer() [2/2]

None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.stabilizer ( self,
float arg1 )

◆ touchBdVertices() [1/2]

bool meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.touchBdVertices ( self)
Whether to allow collapsing edges with at least one vertex on the end of not-closed polyline
(or on region boundary if region is given);
if touchBdVertices is false then boundary vertices are strictly fixed

◆ touchBdVertices() [2/2]

None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.touchBdVertices ( self,
bool arg1 )

◆ vertForms() [1/2]

Vector_QuadraticForm2f_VertId meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.vertForms ( self)
 \\brief  If not null, then
 on input: if the vector is not empty then it is taken for initialization instead of form computation for all vertices;
 on output: quadratic form for each remaining vertex is returned there

◆ vertForms() [2/2]

None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.vertForms ( self,
Vector_QuadraticForm2f_VertId arg1 )

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