Table of Contents

Method ToGeoPolygon3

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

ToGeoPolygon3()

Gets the polyline as a loop of straight edges in the world, of the vertices ToGeoPolyline3() reads: closed or not, its last vertex joined back to its first, and a last vertex on the first left out. The closed polyline (0, 0), (12, 0), (12, 8) at no elevation is the GeoPolygon3 of area 48, 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.