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
lineSegmentLineSegment2dThe AutoCAD 2D line segment to convert.
Returns
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
segmentsIEnumerable<LineSegment2d>The sequence of AutoCAD 2D line segments to convert.
Returns
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
lineSegmentLineSegment3dThe AutoCAD 3D line segment to convert.
Returns
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
segmentsIEnumerable<LineSegment3d>The sequence of AutoCAD 3D line segments to convert.
Returns
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
lineLineThe AutoCAD Line entity to convert.
Returns
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
linesIEnumerable<Line>The sequence of AutoCAD Line entities to convert.