Version

FlattenTo Method

Creates a simplified version of the the open simplex or polyline formed by the current points by removing internal points with the specified error tolerance.
Syntax
'Declaration
 
Public Shared Sub FlattenTo( _
   ByVal points As IList(Of Point), _
   ByVal list As IList(Of Point), _
   ByVal E As Double _
) 
public static void FlattenTo( 
   IList<Point> points,
   IList<Point> list,
   double E
)

Parameters

points
Polygon or polyline to flatten.
list
Destination to which the flattened polygon or polyline will be written (if null, a new one will be created)
E
Maximum flattenning error.

Return Value

Point collection containing the flattened polygon or polyline.
Remarks
The first and last point of the currents are always part of the returned points
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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