Method ToGeoPolyline2
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
ToGeoPolyline2()
Gets the polyline as a chain of straight segments of the plane, as ToGeoPolyline3() reads it, where it lies on the floor as DxfReader reads one with PlanAs2D: its normal (0, 0, 1) and its elevation nought, its vertices as they are; or its normal (0, 0, -1), as AutoCAD writes a mirrored polyline, its x turned over and its bulges negated, the vertices in their order. One at an elevation, or on a tilted normal, is refused rather than flattened; GetPoint2dAt(int) gives its vertices in the system of its normal whatever that is, as the AutoCAD bridge reads them.
public GeoPolyline2 ToGeoPolyline2()
Returns
- GeoPolyline2
The chain in the plane.
Exceptions
- InvalidOperationException
Thrown when the polyline does not lie on the floor, has an arc, has fewer than two vertices apart, a number of its record is not finite, or it is erased.
ToGeoPolyline2(Tolerance)
Gets the polyline as a chain of straight segments of the plane, as ToGeoPolyline2() does, within a tolerance, which says which vertices are one.
public GeoPolyline2 ToGeoPolyline2(Tolerance tolerance)
Parameters
Returns
- GeoPolyline2
The chain in the plane.
Exceptions
- InvalidOperationException
Thrown when the polyline does not lie on the floor, has an arc, has fewer than two vertices apart within the point tolerance, a number of its record is not finite, or it is erased.