Method ToGeoLine2
- Namespace
- GeometryHelper.TeklaConvert
- Assembly
- GeometryHelper.TeklaConvert.dll
ToGeoLine2(LineSegment)
Converts a Tekla line segment to a GeometryHelper 2D line segment.
public static GeoLine2 ToGeoLine2(this LineSegment segment)
Parameters
segmentLineSegmentThe Tekla line segment to convert.
Returns
Exceptions
- ArgumentNullException
Thrown when
segmentis null.
ToGeoLine2(IEnumerable<LineSegment>)
Converts a sequence of Tekla line segments to a list of GeometryHelper 2D line segments.
public static List<GeoLine2> ToGeoLine2(this IEnumerable<LineSegment> segments)
Parameters
segmentsIEnumerable<LineSegment>The sequence of Tekla line segments to convert.