Table of Contents

Method TryToGeoPolygon2

Namespace
GeometryHelper.CadConvert
Assembly
GeometryHelper.CadConvert.dll

TryToGeoPolygon2(Polyline, out GeoPolygon2)

Tries to convert a AutoCAD Polyline to a GeometryHelper 2D polygon without approximating anything.

public static bool TryToGeoPolygon2(this Polyline polyline, out GeoPolygon2 result)

Parameters

polyline Polyline

The AutoCAD Polyline to convert.

result GeoPolygon2

The converted GeoPolygon2, or null when the polyline carries an arc.

Returns

bool

true when the polyline was straight throughout; false when it has an arc, which a straight polygon cannot hold.