Table of Contents

Method ToGeoPolyline2

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

ToGeoPolyline2()

Gets the curve of a straight leader as a chain of the plane, as DxfReader reads it with PlanAs2D within the default tolerance: the leader above is the GeoPolyline2 (0, 0), (10, 10), (20, 10). One with a vertex at a height does not lie on the floor, and is refused; so is a splined one, which ToGeoSpline2() gives.

public GeoPolyline2 ToGeoPolyline2()

Returns

GeoPolyline2

The chain in the plane.

Exceptions

InvalidOperationException

Thrown when the leader does not lie on the floor, is splined, has fewer than two vertices apart, a number of its record is not finite, or it is erased.

ToGeoPolyline2(Tolerance)

Gets the curve of a straight leader as a chain of the plane, as ToGeoPolyline2() does, within a tolerance, which says which vertices are one.

public GeoPolyline2 ToGeoPolyline2(Tolerance tolerance)

Parameters

tolerance Tolerance

The tolerance, as Tolerance reads it.

Returns

GeoPolyline2

The chain in the plane.

Exceptions

InvalidOperationException

Thrown when the leader does not lie on the floor, is splined, has fewer than two vertices apart within the point tolerance, a number of its record is not finite, or it is erased.