Method ToGeoPolyline2
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
ToGeoPolyline2()
Gets the polyline as a chain of the plane, as ToGeoPolyline3() reads it, where it lies on the floor as DxfReader reads one with PlanAs2D: every vertex at a height of nought. The polyline (0, 0, 0), (3, 4, 0) is the GeoPolyline2 (0, 0), (3, 4); with (3, 4, 12) after them it is refused rather than flattened.
public GeoPolyline2 ToGeoPolyline2()
Returns
- GeoPolyline2
The chain in the plane.
Exceptions
- InvalidOperationException
Thrown when the polyline does not lie on the floor, 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 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 fewer than two vertices apart within the point tolerance, a number of its record is not finite, or it is erased.