Method ToGeoPolygon2
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
ToGeoPolygon2()
Gets the polyline as a loop of straight edges of the plane, as ToGeoPolygon3() reads it, where it lies on the floor as ToGeoPolyline2() says: the closed polyline (0, 0), (12, 0), (12, 8) at no elevation is the GeoPolygon2 of area 48.
public GeoPolygon2 ToGeoPolygon2()
Returns
- GeoPolygon2
The loop in the plane.
Exceptions
- InvalidOperationException
Thrown when the polyline does not lie on the floor, has an arc, encloses no area, a number of its record is not finite, or it is erased.
ToGeoPolygon2(Tolerance)
Gets the polyline as a loop of straight edges 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
Returns
- GeoPolygon2
The loop in the plane.
Exceptions
- InvalidOperationException
Thrown when the polyline does not lie on the floor, has an arc, encloses no area within the tolerance, a number of its record is not finite, or it is erased.