Generated from: MR::DecimatePolylineSettings<MR::Vector2f> Aliases: DecimatePolylineSettings2, DecimatePolylineSettings2 \\struct MR::DecimatePolylineSettings \\brief Parameters structure for MR::decimatePolyline \\ingroup DecimateGroup \\sa \\ref decimatePolyline
None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.__init__ | ( | self | ) |
Implicit default constructor.
None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.__init__ | ( | self, | |
DecimatePolylineSettings_Vector2f | arg0 ) |
Implicit copy constructor.
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.
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.
None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.adjustCollapse | ( | self, | |
func_void_from_Id_UndirectedEdgeTag_float_Vector2_float | arg1 ) |
int meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.maxDeletedVertices | ( | self | ) |
Limit on the number of deleted vertices
None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.maxDeletedVertices | ( | self, | |
int | arg1 ) |
float meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.maxEdgeLen | ( | self | ) |
Maximal possible edge length created during decimation
None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.maxEdgeLen | ( | self, | |
float | arg1 ) |
float meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.maxError | ( | self | ) |
Limit from above on the maximum distance from moved vertices to original contour
None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.maxError | ( | self, | |
float | arg1 ) |
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
None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.optimizeVertexPos | ( | self, | |
bool | arg1 ) |
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
None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.preCollapse | ( | self, | |
func_bool_from_Id_EdgeTag_Vector2_float | arg1 ) |
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
None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.region | ( | self, | |
VertBitSet | arg1 ) |
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.
None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.stabilizer | ( | self, | |
float | arg1 ) |
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
None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.touchBdVertices | ( | self, | |
bool | arg1 ) |
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
None meshlib.mrmeshpy.DecimatePolylineSettings_Vector2f.vertForms | ( | self, | |
Vector_QuadraticForm2f_VertId | arg1 ) |