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

Public Member Functions

 __init__ (self, *args, **kwargs)
Const_func_void_from_Id_UndirectedEdgeTag_float_Vector2_float adjustCollapse (self)
int maxDeletedVertices (self)
float maxEdgeLen (self)
float maxError (self)
bool optimizeVertexPos (self)
Const_func_bool_from_Id_EdgeTag_Vector2_float preCollapse (self)
VertBitSet region (self)
float stabilizer (self)
bool touchBdVertices (self)
Vector_QuadraticForm2f_VertId vertForms (self)

Static Protected Attributes

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__()

mrmeshpy.ConstDecimatePolylineSettings_Vector2f.__init__ ( self,
* args,
** kwargs )
__init__(*args, **kwargs)
Overloaded function.

1. __init__(self: meshlib.mrmeshpy.ConstDecimatePolylineSettings_Vector2f) -> None

2. __init__(self: meshlib.mrmeshpy.ConstDecimatePolylineSettings_Vector2f, arg0: meshlib.mrmeshpy.ConstDecimatePolylineSettings_Vector2f) -> None

Implicit copy constructor.

3. __init__(self: meshlib.mrmeshpy.ConstDecimatePolylineSettings_Vector2f, maxError: float, maxEdgeLen: float, stabilizer: float, optimizeVertexPos: bool, maxDeletedVertices: int, region: meshlib.mrmeshpy.VertBitSet, touchBdVertices: bool, preCollapse: meshlib.mrmeshpy.Const_func_bool_from_Id_EdgeTag_Vector2_float, adjustCollapse: meshlib.mrmeshpy.Const_func_void_from_Id_UndirectedEdgeTag_float_Vector2_float, vertForms: meshlib.mrmeshpy.Vector_QuadraticForm2f_VertId) -> None

Implicit aggregate constructor.

4. __init__(self: meshlib.mrmeshpy.ConstDecimatePolylineSettings_Vector2f, : meshlib.mrmeshpy.ConstDecimatePolylineSettings_Vector2f) -> None

Member Function Documentation

◆ adjustCollapse()

Const_func_void_from_Id_UndirectedEdgeTag_float_Vector2_float mrmeshpy.ConstDecimatePolylineSettings_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 in mrmeshpy.DecimatePolylineSettings_Vector2f, and mrmeshpy.DecimatePolylineSettings_Vector2f.

◆ maxDeletedVertices()

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

Reimplemented in mrmeshpy.DecimatePolylineSettings_Vector2f, and mrmeshpy.DecimatePolylineSettings_Vector2f.

◆ maxEdgeLen()

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

Reimplemented in mrmeshpy.DecimatePolylineSettings_Vector2f, and mrmeshpy.DecimatePolylineSettings_Vector2f.

◆ maxError()

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

Reimplemented in mrmeshpy.DecimatePolylineSettings_Vector2f, and mrmeshpy.DecimatePolylineSettings_Vector2f.

◆ optimizeVertexPos()

bool mrmeshpy.ConstDecimatePolylineSettings_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 in mrmeshpy.DecimatePolylineSettings_Vector2f, and mrmeshpy.DecimatePolylineSettings_Vector2f.

◆ preCollapse()

Const_func_bool_from_Id_EdgeTag_Vector2_float mrmeshpy.ConstDecimatePolylineSettings_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 in mrmeshpy.DecimatePolylineSettings_Vector2f, and mrmeshpy.DecimatePolylineSettings_Vector2f.

◆ region()

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

Reimplemented in mrmeshpy.DecimatePolylineSettings_Vector2f, and mrmeshpy.DecimatePolylineSettings_Vector2f.

◆ stabilizer()

float mrmeshpy.ConstDecimatePolylineSettings_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 in mrmeshpy.DecimatePolylineSettings_Vector2f, and mrmeshpy.DecimatePolylineSettings_Vector2f.

◆ touchBdVertices()

bool mrmeshpy.ConstDecimatePolylineSettings_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 in mrmeshpy.DecimatePolylineSettings_Vector2f, and mrmeshpy.DecimatePolylineSettings_Vector2f.

◆ vertForms()

Vector_QuadraticForm2f_VertId mrmeshpy.ConstDecimatePolylineSettings_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 in mrmeshpy.DecimatePolylineSettings_Vector2f, and mrmeshpy.DecimatePolylineSettings_Vector2f.

Member Data Documentation

◆ _offsetof_adjustCollapse

typing mrmeshpy.ConstDecimatePolylineSettings_Vector2f._offsetof_adjustCollapse = 72
staticprotected

◆ _offsetof_maxDeletedVertices

typing mrmeshpy.ConstDecimatePolylineSettings_Vector2f._offsetof_maxDeletedVertices = 16
staticprotected

◆ _offsetof_maxEdgeLen

typing mrmeshpy.ConstDecimatePolylineSettings_Vector2f._offsetof_maxEdgeLen = 4
staticprotected

◆ _offsetof_maxError

typing mrmeshpy.ConstDecimatePolylineSettings_Vector2f._offsetof_maxError = 0
staticprotected

◆ _offsetof_optimizeVertexPos

typing mrmeshpy.ConstDecimatePolylineSettings_Vector2f._offsetof_optimizeVertexPos = 12
staticprotected

◆ _offsetof_preCollapse

typing mrmeshpy.ConstDecimatePolylineSettings_Vector2f._offsetof_preCollapse = 40
staticprotected

◆ _offsetof_region

typing mrmeshpy.ConstDecimatePolylineSettings_Vector2f._offsetof_region = 24
staticprotected

◆ _offsetof_stabilizer

typing mrmeshpy.ConstDecimatePolylineSettings_Vector2f._offsetof_stabilizer = 8
staticprotected

◆ _offsetof_touchBdVertices

typing mrmeshpy.ConstDecimatePolylineSettings_Vector2f._offsetof_touchBdVertices = 32
staticprotected

◆ _offsetof_vertForms

typing mrmeshpy.ConstDecimatePolylineSettings_Vector2f._offsetof_vertForms = 104
staticprotected

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