Method ToGeoPolygon2
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
ToGeoPolygon2()
Gets the face as a polygon of the plane: the polygon of ToGeoPolygon3() where every corner of it is at a height of nought, as DxfReader takes a shape in world coordinates to lie on the floor, and refused otherwise, the reader reading a 3DFACE in space whatever PlanAs2D says. The face above is the GeoPolygon2 (0, 0), (10, 0), (10, 8), (0, 8).
public GeoPolygon2 ToGeoPolygon2()
Returns
- GeoPolygon2
The polygon in the plane.
Exceptions
- InvalidOperationException
Thrown when a corner is not at a height of nought, or as ToGeoPolygon3() refuses the face.
ToGeoPolygon2(Tolerance)
Gets the face as a polygon of the plane, as ToGeoPolygon2() does, its corners read within a tolerance, whose planar part says whether four corners are in one plane.
public GeoPolygon2 ToGeoPolygon2(Tolerance tolerance)
Parameters
Returns
- GeoPolygon2
The polygon in the plane.
Exceptions
- InvalidOperationException
Thrown when a corner is not at a height of nought, or as ToGeoPolygon3() refuses the face within the tolerance.