Method ToGeoPolygon3
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
ToGeoPolygon3()
Gets the face as the library's polygon, of the corners GetGeometry() reads: the boundary of its GeoFace3 where it has four corners in one plane within the planar tolerance, and the polygon of its GeoTriangle3 where it has three, a corner the same as the one before it to the bit left out. The face (0, 0, 0), (10, 0, 0), (10, 8, 0), (0, 8, 0) is that GeoPolygon3; with a corner raised by 1 its corners are not in one plane, the reader cuts it into two triangles, and it is refused, as the bow tie (0, 0, 0), (10, 10, 0), (10, 0, 0), (0, 10, 0) is, whose edges cross.
public GeoPolygon3 ToGeoPolygon3()
Returns
- GeoPolygon3
The polygon, in world coordinates.
Exceptions
- InvalidOperationException
Thrown when the reader cuts the face into two triangles, its four corners not in one plane within the default planar tolerance or, in one, its edges crossing; when the face has fewer than three distinct corners or encloses no area, a number of its record is not finite, or it is erased.