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

Public Member Functions

None __init__ (self)
None __init__ (self, ConstDecimatePolylineSettings_Vector2f arg0)
None __init__ (self, float maxError, float maxEdgeLen, float stabilizer, bool optimizeVertexPos, int maxDeletedVertices, VertBitSet region, bool touchBdVertices, Const_func_bool_from_Id_EdgeTag_Vector2_float preCollapse, Const_func_void_from_Id_UndirectedEdgeTag_float_Vector2_float adjustCollapse, Vector_QuadraticForm2f_VertId vertForms)
DecimatePolylineSettings_Vector2f assign (self, ConstDecimatePolylineSettings_Vector2f other)
func_void_from_Id_UndirectedEdgeTag_float_Vector2_float adjustCollapse (self)
None adjustCollapse (self, Const_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, Const_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)
Public Member Functions inherited from mrmeshpy.ConstDecimatePolylineSettings_Vector2f
 __init__ (self, *args, **kwargs)

Static Public Member Functions

None __init__ (*args, **kwargs)

Additional Inherited Members

Static Protected Attributes inherited from mrmeshpy.ConstDecimatePolylineSettings_Vector2f
typing _offsetof_adjustCollapse = 72
typing _offsetof_maxDeletedVertices = 16
typing _offsetof_maxEdgeLen = 4
typing _offsetof_maxError = 0
typing _offsetof_optimizeVertexPos = 12
typing _offsetof_preCollapse = 40
typing _offsetof_region = 24
typing _offsetof_stabilizer = 8
typing _offsetof_touchBdVertices = 32
typing _offsetof_vertForms = 104

Detailed Description

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

\\struct MR::DecimatePolylineSettings
\\brief Parameters structure for MR::decimatePolyline
\\sa \\ref decimatePolyline

Constructor & Destructor Documentation

◆ __init__() [1/4]

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

◆ __init__() [2/4]

None mrmeshpy.DecimatePolylineSettings_Vector2f.__init__ ( self)

◆ __init__() [3/4]

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

◆ __init__() [4/4]

None mrmeshpy.DecimatePolylineSettings_Vector2f.__init__ ( self,
float maxError,
float maxEdgeLen,
float stabilizer,
bool optimizeVertexPos,
int maxDeletedVertices,
VertBitSet region,
bool touchBdVertices,
Const_func_bool_from_Id_EdgeTag_Vector2_float preCollapse,
Const_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 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.

Reimplemented from mrmeshpy.ConstDecimatePolylineSettings_Vector2f.

◆ adjustCollapse() [2/2]

None mrmeshpy.DecimatePolylineSettings_Vector2f.adjustCollapse ( self,
Const_func_void_from_Id_UndirectedEdgeTag_float_Vector2_float arg1 )
\\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.

Reimplemented from mrmeshpy.ConstDecimatePolylineSettings_Vector2f.

◆ assign()

DecimatePolylineSettings_Vector2f mrmeshpy.DecimatePolylineSettings_Vector2f.assign ( self,
ConstDecimatePolylineSettings_Vector2f other )

◆ maxDeletedVertices() [1/2]

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

Reimplemented from mrmeshpy.ConstDecimatePolylineSettings_Vector2f.

◆ maxDeletedVertices() [2/2]

None mrmeshpy.DecimatePolylineSettings_Vector2f.maxDeletedVertices ( self,
int arg1 )
Limit on the number of deleted vertices

Reimplemented from mrmeshpy.ConstDecimatePolylineSettings_Vector2f.

◆ maxEdgeLen() [1/2]

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

Reimplemented from mrmeshpy.ConstDecimatePolylineSettings_Vector2f.

◆ maxEdgeLen() [2/2]

None mrmeshpy.DecimatePolylineSettings_Vector2f.maxEdgeLen ( self,
float arg1 )
Maximal possible edge length created during decimation

Reimplemented from mrmeshpy.ConstDecimatePolylineSettings_Vector2f.

◆ maxError() [1/2]

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

Reimplemented from mrmeshpy.ConstDecimatePolylineSettings_Vector2f.

◆ maxError() [2/2]

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

Reimplemented from mrmeshpy.ConstDecimatePolylineSettings_Vector2f.

◆ optimizeVertexPos() [1/2]

bool 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

Reimplemented from mrmeshpy.ConstDecimatePolylineSettings_Vector2f.

◆ optimizeVertexPos() [2/2]

None mrmeshpy.DecimatePolylineSettings_Vector2f.optimizeVertexPos ( self,
bool arg1 )
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

Reimplemented from mrmeshpy.ConstDecimatePolylineSettings_Vector2f.

◆ preCollapse() [1/2]

func_bool_from_Id_EdgeTag_Vector2_float 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

Reimplemented from mrmeshpy.ConstDecimatePolylineSettings_Vector2f.

◆ preCollapse() [2/2]

None mrmeshpy.DecimatePolylineSettings_Vector2f.preCollapse ( self,
Const_func_bool_from_Id_EdgeTag_Vector2_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.ConstDecimatePolylineSettings_Vector2f.

◆ region() [1/2]

VertBitSet 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

Reimplemented from mrmeshpy.ConstDecimatePolylineSettings_Vector2f.

◆ region() [2/2]

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

Reimplemented from mrmeshpy.ConstDecimatePolylineSettings_Vector2f.

◆ stabilizer() [1/2]

float 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.

Reimplemented from mrmeshpy.ConstDecimatePolylineSettings_Vector2f.

◆ stabilizer() [2/2]

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

Reimplemented from mrmeshpy.ConstDecimatePolylineSettings_Vector2f.

◆ touchBdVertices() [1/2]

bool 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

Reimplemented from mrmeshpy.ConstDecimatePolylineSettings_Vector2f.

◆ touchBdVertices() [2/2]

None mrmeshpy.DecimatePolylineSettings_Vector2f.touchBdVertices ( self,
bool arg1 )
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

Reimplemented from mrmeshpy.ConstDecimatePolylineSettings_Vector2f.

◆ vertForms() [1/2]

Vector_QuadraticForm2f_VertId 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

Reimplemented from mrmeshpy.ConstDecimatePolylineSettings_Vector2f.

◆ vertForms() [2/2]

None mrmeshpy.DecimatePolylineSettings_Vector2f.vertForms ( self,
Vector_QuadraticForm2f_VertId arg1 )
\\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

Reimplemented from mrmeshpy.ConstDecimatePolylineSettings_Vector2f.


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