Table of Contents

Method ToGeoLine2

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

ToGeoLine2()

Gets the segment of the line in the plane, as DxfReader reads it with PlanAs2D within the default tolerance: the line from (0, 0, 0) to (100, 50, 0) is the GeoLine2 from (0, 0) to (100, 50). With a z of 5 at one end it does not lie on the floor, and is refused rather than flattened, where the AutoCAD bridge's ToGeoLine2 drops z.

public GeoLine2 ToGeoLine2()

Returns

GeoLine2

The segment in the plane.

Exceptions

InvalidOperationException

Thrown when the line does not lie on the floor (a z of an end is not nought), has no length within the default point tolerance, a number of its record is not finite, or it is erased.

ToGeoLine2(Tolerance)

Gets the segment of the line in the plane, as DxfReader reads it with PlanAs2D within a tolerance, which says whether it has a length: a line 0.0004 long is refused within the default tolerance and given within 1E-5.

public GeoLine2 ToGeoLine2(Tolerance tolerance)

Parameters

tolerance Tolerance

The tolerance, as Tolerance reads it.

Returns

GeoLine2

The segment in the plane.

Exceptions

InvalidOperationException

Thrown when the line does not lie on the floor, has no length within the point tolerance, a number of its record is not finite, or it is erased.