Click or drag to resize

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.PolygonManipulation
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public static Vertices DouglasPeuckerSimplify(
	Vertices vertices,
	float distanceTolerance
)

Parameters

vertices  Vertices
 
distanceTolerance  Single
 

Return Value

Vertices
The simplified polygon
See Also