Table of Contents

Method ToGeoPolygon3

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

ToGeoPolygon3()

Gets the polyline as a loop of straight edges in the world: closed or not, its last vertex joined back to its first, as the AutoCAD bridge's ToGeoPolygonArc2 joins one, and a last vertex on the first left out. The closed polyline (0, 0), (10, 0), (10, 10) at the elevation 5 is the GeoPolygon3 of those three corners at z = 5, as GetGeometry() gives it. A polyline with an arc is refused (ToGeoPolygonArc3() gives it), and so is one that encloses no area, its vertices on one line.

public GeoPolygon3 ToGeoPolygon3()

Returns

GeoPolygon3

The loop, in world coordinates.

Exceptions

InvalidOperationException

Thrown when the polyline has an arc, encloses no area within the default tolerance, a number of its record is not finite, or it is erased.