Table of Contents

Method ToGeoPolygon2

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

ToGeoPolygon2()

Gets the polyline as a loop of the plane, as ToGeoPolygon3() reads it, where it lies on the floor as ToGeoPolyline2() says.

public GeoPolygon2 ToGeoPolygon2()

Returns

GeoPolygon2

The loop in the plane.

Exceptions

InvalidOperationException

Thrown when the polyline does not lie on the floor, encloses no area, a number of its record is not finite, or it is erased.

ToGeoPolygon2(Tolerance)

Gets the polyline as a loop of the plane, as ToGeoPolygon2() does, within a tolerance, which says which vertices are one and whether it encloses an area.

public GeoPolygon2 ToGeoPolygon2(Tolerance tolerance)

Parameters

tolerance Tolerance

The tolerance, as Tolerance reads it.

Returns

GeoPolygon2

The loop in the plane.

Exceptions

InvalidOperationException

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