Table of Contents

Method ToGeoPolygon3

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

ToGeoPolygon3()

Gets the polyline as a loop 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, 0), (10, 0, 0), (10, 10, 5) is the GeoPolygon3 of those three corners, as GetGeometry() gives it. One whose vertices do not lie in one plane within the planar tolerance, or are on one line, is refused.

public GeoPolygon3 ToGeoPolygon3()

Returns

GeoPolygon3

The loop, in world coordinates.

Exceptions

InvalidOperationException

Thrown when the polyline does not lie in one plane, encloses no area within the default tolerance, a number of its record is not finite, or it is erased.