Table of Contents

Method ToGeoLine2

Namespace
GeometryHelper.CadConvert
Assembly
GeometryHelper.CadConvert.dll

ToGeoLine2(LineSegment2d)

Converts a AutoCAD 2D line segment to a GeometryHelper 2D line.

public static GeoLine2 ToGeoLine2(this LineSegment2d lineSegment)

Parameters

lineSegment LineSegment2d

The AutoCAD 2D line segment to convert.

Returns

GeoLine2

The converted GeoLine2.

ToGeoLine2(IEnumerable<LineSegment2d>)

Converts a sequence of AutoCAD 2D line segments to a list of GeometryHelper 2D lines.

public static List<GeoLine2> ToGeoLine2(this IEnumerable<LineSegment2d> segments)

Parameters

segments IEnumerable<LineSegment2d>

The sequence of AutoCAD 2D line segments to convert.

Returns

List<GeoLine2>

A list of converted GeoLine2.

ToGeoLine2(LineSegment3d)

Converts a AutoCAD 3D line segment to a GeometryHelper 2D line (discarding the Z coordinate).

public static GeoLine2 ToGeoLine2(this LineSegment3d lineSegment)

Parameters

lineSegment LineSegment3d

The AutoCAD 3D line segment to convert.

Returns

GeoLine2

The converted GeoLine2.

ToGeoLine2(IEnumerable<LineSegment3d>)

Converts a sequence of AutoCAD 3D line segments to a list of GeometryHelper 2D lines (discarding their Z coordinates).

public static List<GeoLine2> ToGeoLine2(this IEnumerable<LineSegment3d> segments)

Parameters

segments IEnumerable<LineSegment3d>

The sequence of AutoCAD 3D line segments to convert.

Returns

List<GeoLine2>

A list of converted GeoLine2.

ToGeoLine2(Line)

Converts a AutoCAD Database Line entity to a GeometryHelper 2D line (discarding the Z coordinate).

public static GeoLine2 ToGeoLine2(this Line line)

Parameters

line Line

The AutoCAD Line entity to convert.

Returns

GeoLine2

The converted GeoLine2.

ToGeoLine2(IEnumerable<Line>)

Converts a sequence of AutoCAD Line entities to a list of GeometryHelper 2D lines.

public static List<GeoLine2> ToGeoLine2(this IEnumerable<Line> lines)

Parameters

lines IEnumerable<Line>

The sequence of AutoCAD Line entities to convert.

Returns

List<GeoLine2>

A list of converted GeoLine2.