Nevron .NET Vision
Nevron.GraphicsCore Namespace / NPolygonF Class / Simplify Method
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).


In This Topic
    Simplify Method (NPolygonF)
    In This Topic
    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.
    Syntax
    'Declaration
     
    
    Public Function Simplify( _
       ByVal tolerance 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 tolerance
    )

    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.
    Requirements

    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

    See Also