Method ToPolyline
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
ToPolyline()
Converts this polygon's boundary into a closed 2D GeoPolyline2. The boundary is closed by repeating the first vertex at the end of the chain.
public GeoPolyline2 ToPolyline()
Returns
- GeoPolyline2
A new GeoPolyline2 instance representing the polygon boundary.
Remarks
The chain runs side for side, however short a side: at a millionth, the triangle (0, 0), (10, 0), (10, 10) with every corner cut by 0.0003 is a chain of seven vertices, where it was put back together within the global tolerance of a thousandth and came back four.