Table of Contents

Method ToGeoPolygonArc2

Namespace
GeometryHelper.CadConvert
Assembly
GeometryHelper.CadConvert.dll

ToGeoPolygonArc2(Polyline)

Converts an AutoCAD Polyline to a GeometryHelper 2D loop, keeping its arcs.

public static GeoPolygonArc2 ToGeoPolygonArc2(this Polyline polyline)

Parameters

polyline Polyline

The AutoCAD Polyline to convert.

Returns

GeoPolygonArc2

The converted GeoPolygonArc2, bulge for bulge.

Remarks

A loop closes itself, so the last vertex is joined back to the first whether or not the polyline said it was closed, and the bulge stored against that last vertex is the bulge of the closing edge.

Exceptions

ArgumentNullException

Thrown when polyline is null.

ToGeoPolygonArc2(IEnumerable<Polyline>)

Converts a sequence of AutoCAD Polylines to a list of GeometryHelper 2D loops, keeping their arcs.

public static List<GeoPolygonArc2> ToGeoPolygonArc2(this IEnumerable<Polyline> polylines)

Parameters

polylines IEnumerable<Polyline>

The sequence of AutoCAD Polylines to convert.

Returns

List<GeoPolygonArc2>

A list of converted GeoPolygonArc2.