Simplify Method (NPolygonF)
Returns a simplified version of this polygon using an improved version Douglas and Peucker algorithm (uses path hulls) which improves the worst case running time from O(n^2) to O(n * log2(n)). Topology is preserved.
'Declaration
Public Function Simplify( _
ByVal As System.Single _
) As NPolygonF
'Usage
Dim instance As NPolygonF
Dim tolerance As System.Single
Dim value As NPolygonF
value = instance.Simplify(tolerance)
public NPolygonF Simplify(
System.float
)
Parameters
- tolerance
- The tolerance (if all points from i to j are within tolerance with the line segment i-j then the chain i, i+1, ..., j is simplified to i, j).
Return Value
Returns a simplified version of this polygon.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2