Table of Contents

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

polygon Polygon

Returns

GeoPolygon3

ToGeoPolygon3(Polygon, Tolerance)

Converts a Tekla polygon to a GeometryHelper loop, within a tolerance.

public static GeoPolygon3 ToGeoPolygon3(this Polygon polygon, Tolerance tolerance)

Parameters

polygon Polygon

The Tekla polygon.

tolerance Tolerance

The 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 polygon is null.

ArgumentException

Thrown when fewer than three distinct points are given, or they do not lie in one plane.