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
polylinePolylineThe AutoCAD Polyline to convert.
resultGeoPolygon2The 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.