Table of Contents

Method ToGeoRectangle2

Namespace
GeometryHelper.CadConvert
Assembly
GeometryHelper.CadConvert.dll

ToGeoRectangle2(Extents2d)

Converts a AutoCAD Extents2d to a GeometryHelper 2D rectangle.

public static GeoRectangle2 ToGeoRectangle2(this Extents2d extents)

Parameters

extents Extents2d

The AutoCAD 2D bounding box to convert.

Returns

GeoRectangle2

The converted GeoRectangle2.

ToGeoRectangle2(IEnumerable<Extents2d>)

Converts a sequence of AutoCAD Extents2d to a list of GeometryHelper 2D rectangles.

public static List<GeoRectangle2> ToGeoRectangle2(this IEnumerable<Extents2d> extentsList)

Parameters

extentsList IEnumerable<Extents2d>

The sequence of AutoCAD 2D bounding boxes to convert.

Returns

List<GeoRectangle2>

A list of converted GeoRectangle2.

ToGeoRectangle2(Extents3d)

Converts a AutoCAD Extents3d to a GeometryHelper 2D rectangle (discarding the Z coordinate).

public static GeoRectangle2 ToGeoRectangle2(this Extents3d extents)

Parameters

extents Extents3d

The AutoCAD 3D bounding box to convert.

Returns

GeoRectangle2

The converted GeoRectangle2.

ToGeoRectangle2(IEnumerable<Extents3d>)

Converts a sequence of AutoCAD Extents3d to a list of GeometryHelper 2D rectangles.

public static List<GeoRectangle2> ToGeoRectangle2(this IEnumerable<Extents3d> extentsList)

Parameters

extentsList IEnumerable<Extents3d>

The sequence of AutoCAD 3D bounding boxes to convert.

Returns

List<GeoRectangle2>

A list of converted GeoRectangle2.