Method ToGeoPolygon3
- Namespace
- GeometryHelper.TeklaConvert
- Assembly
- GeometryHelper.TeklaConvert.dll
ToGeoPolygon3(IEnumerable<Point>)
Converts a run of Tekla points into a polygon.
public static GeoPolygon3 ToGeoPolygon3(this IEnumerable<Point> points)
Parameters
pointsIEnumerable<Point>The run of Tekla points to convert.
Returns
- GeoPolygon3
The converted GeoPolygon3.
Exceptions
- ArgumentNullException
Thrown when
pointsis null.- ArgumentException
Thrown when fewer than three distinct vertices remain, when they are collinear, or when they do not lie on a common plane.
ToGeoPolygon3(IEnumerable<Point>, Tolerance)
Converts a run of Tekla points into a polygon, within a tolerance.
public static GeoPolygon3 ToGeoPolygon3(this IEnumerable<Point> points, Tolerance tolerance)
Parameters
pointsIEnumerable<Point>The run of Tekla points to convert.
toleranceToleranceThe tolerance deciding duplicate vertices and flatness.
Returns
- GeoPolygon3
The converted GeoPolygon3.
Exceptions
- ArgumentNullException
Thrown when
pointsis null.- ArgumentException
Thrown when fewer than three distinct vertices remain, when they are collinear, or when they do not lie on a common plane.