Method ToPolyline
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
ToPolyline()
Approximates the circle as a chain, cut by the automatic chord tolerance.
public GeoPolyline2 ToPolyline()
Returns
- GeoPolyline2
A chain from the zero parameter all the way round, its first point repeated at the end.
Remarks
A chain is always open, so the first point is repeated at the end to close the loop: that is what it takes for a GeoPolyline2 to trace something closed.
ToPolyline(int)
Approximates the circle as a chain with a given number of pieces.
public GeoPolyline2 ToPolyline(int segmentCount)
Parameters
segmentCountintHow many pieces the chain should have; at least three.
Returns
- GeoPolyline2
A chain with its first point repeated at the end.
Exceptions
- ArgumentOutOfRangeException
Thrown when fewer than three pieces are asked for.