SimplifyToolsDouglasPeuckerSimplify Method |
Ramer-Douglas-Peucker polygon simplification algorithm. This is the general recursive version that does not use the
speed-up technique by using the Melkman convex hull.
If you pass in 0, it will remove all collinear points.
Namespace: Internal.Physics2D.Common.PolygonManipulationAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntaxpublic static Vertices DouglasPeuckerSimplify(
Vertices vertices,
float distanceTolerance
)
Parameters
- vertices Vertices
-
- distanceTolerance Single
-
Return Value
VerticesThe simplified polygon
See Also