Table of Contents

Method BoundingBoxIntersectWith

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

BoundingBoxIntersectWith(DxfEntity, DxfIntersect)

Gets the points where the boxes of the entity and another meet, as AutoCAD's BoundingBoxIntersectWith: where an edge of the one box of GeometricExtents enters or leaves the other box, each way, to Default. Two flat boxes in one plane meet where their outlines cross: the box of the line from (0, 0, 0) to (10, 10, 0) and that of the line from (5, 5, 0) to (15, 15, 0) meet at (10, 5, 0) and (5, 10, 0). A box is never extended, whatever the type of intersection.

public IReadOnlyList<GeoPoint3> BoundingBoxIntersectWith(DxfEntity entityPointer, DxfIntersect intersectType)

Parameters

entityPointer DxfEntity

The other entity.

intersectType DxfIntersect

The type of intersection, as AutoCAD takes it; a box does not run on.

Returns

IReadOnlyList<GeoPoint3>

The points, each once, in the order they are found.

Exceptions

ArgumentNullException

Thrown when the entity is null.

ArgumentOutOfRangeException

Thrown when the type is not one of DxfIntersect.

InvalidOperationException

Thrown when either entity has no extents, as GeometricExtents says.