Table of Contents

Method ToGeoPolygon2

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

ToGeoPolygon2()

Gets the area of the solid as a polygon of the plane, as DxfReader reads it with PlanAs2D within the default tolerance: the square above is the GeoPolygon2 (0, 0), (2, 0), (2, 2), (0, 2). One at a height, or on a normal other than (0, 0, 1) and (0, 0, -1), does not lie on the floor, and is refused.

public GeoPolygon2 ToGeoPolygon2()

Returns

GeoPolygon2

The polygon in the plane.

Exceptions

InvalidOperationException

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

ToGeoPolygon2(Tolerance)

Gets the area of the solid as a polygon of the plane, as ToGeoPolygon2() does, within a tolerance, which says whether it encloses an area.

public GeoPolygon2 ToGeoPolygon2(Tolerance tolerance)

Parameters

tolerance Tolerance

The tolerance, as Tolerance reads it.

Returns

GeoPolygon2

The polygon in the plane.

Exceptions

InvalidOperationException

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