Method ToGeoPolygon3
- Namespace
- GeometryHelper.TeklaConvert
- Assembly
- GeometryHelper.TeklaConvert.dll
ToGeoPolygon3(Polygon)
Converts a Tekla polygon to a GeometryHelper loop.
public static GeoPolygon3 ToGeoPolygon3(this Polygon polygon)
Parameters
polygonPolygon
Returns
ToGeoPolygon3(Polygon, Tolerance)
Converts a Tekla polygon to a GeometryHelper loop, within a tolerance.
public static GeoPolygon3 ToGeoPolygon3(this Polygon polygon, Tolerance tolerance)
Parameters
polygonPolygonThe Tekla polygon.
toleranceToleranceThe tolerance; the planar threshold decides how flat is flat enough.
Returns
- GeoPolygon3
The loop.
Remarks
A loop encloses an area, so its points have to be flat. Tekla coordinates run large and a run typed in by hand is rarely flat to the last decimal, which is why the tolerance is worth giving.
Exceptions
- ArgumentNullException
Thrown when
polygonis null.- ArgumentException
Thrown when fewer than three distinct points are given, or they do not lie in one plane.