Table of Contents

Method TryToGeoRectangle2

Namespace
GeometryHelper.CadConvert
Assembly
GeometryHelper.CadConvert.dll

TryToGeoRectangle2(Polyline, out GeoRectangle2)

Tries to convert a 4-vertex closed AutoCAD Polyline to a GeometryHelper 2D rectangle.

public static bool TryToGeoRectangle2(this Polyline polyline, out GeoRectangle2 rect)

Parameters

polyline Polyline

The AutoCAD Polyline to convert.

rect GeoRectangle2

The converted GeoRectangle2.

Returns

bool

true if the conversion succeeded; false otherwise.