Table of Contents

Method ToGeoPolygon2

Namespace
GeometryHelper.TeklaConvert
Assembly
GeometryHelper.TeklaConvert.dll

ToGeoPolygon2(IEnumerable<Point>)

Converts a run of Tekla points into a 2D polygon (discarding Z coordinates).

public static GeoPolygon2 ToGeoPolygon2(this IEnumerable<Point> points)

Parameters

points IEnumerable<Point>

The run of Tekla points to convert.

Returns

GeoPolygon2

The converted GeoPolygon2.

Exceptions

ArgumentNullException

Thrown when points is null.

ArgumentException

Thrown when fewer than three distinct vertices remain.