Table of Contents

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

points IEnumerable<Point>

The run of Tekla points to convert.

Returns

GeoPolygon3

The converted GeoPolygon3.

Exceptions

ArgumentNullException

Thrown when points is 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

points IEnumerable<Point>

The run of Tekla points to convert.

tolerance Tolerance

The tolerance deciding duplicate vertices and flatness.

Returns

GeoPolygon3

The converted GeoPolygon3.

Exceptions

ArgumentNullException

Thrown when points is null.

ArgumentException

Thrown when fewer than three distinct vertices remain, when they are collinear, or when they do not lie on a common plane.