Parameters structure for MR::decimatePolyline. More...
#include <MRPolylineDecimate.h>
Public Attributes | |
| float | maxError = 0.001f |
| Limit from above on the maximum distance from moved vertices to original contour. | |
| float | maxEdgeLen = FLT_MAX |
| Maximal possible edge length created during decimation. | |
| float | stabilizer = 0.001f |
| bool | optimizeVertexPos = true |
| int | maxDeletedVertices = INT_MAX |
| Limit on the number of deleted vertices. | |
| VertBitSet * | region = nullptr |
| bool | touchBdVertices = true |
| std::function< bool(EdgeId edgeToCollapse, const V &newEdgeOrgPos)> | preCollapse |
| The user can provide this optional callback that is invoked immediately before edge collapse;. | |
| std::function< void(UndirectedEdgeId ue, float &collapseErrorSq, V &collapsePos)> | adjustCollapse |
| The user can provide this optional callback for adjusting error introduced by this edge collapse and the collapse position. | |
| Vector< QuadraticForm< V >, VertId > * | vertForms = nullptr |
| 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. | |
Parameters structure for MR::decimatePolyline.