Method IntersectWith
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
IntersectWith(DxfEntity, DxfIntersect)
Gets the points where the entity and another meet, as AutoCAD's IntersectWith: worked out by the library's
shapes for both (GetGeometry()), each pair of a shape of this entity and one of the other, to
Default. As AutoCAD's, it meets curves and edges, not areas: a closed polyline, a SOLID, a
3DFACE and a mesh by the segments and arcs of their edges, so that the square of side 4 about the origin meets the line
from (-10, 0, 0) to (10, 0, 0) at (-2, 0, 0) and (2, 0, 0), and the line through its middle up the z axis nowhere. A
chain the library has no intersection of with a shape is taken segment by segment and arc by arc, and a POINT meets
a shape where it lies on it. An entity that is to run on past its ends, as the type of intersection says, is taken as
its line or circle where it is a LINE or an ARC; any other is taken as it is.
public IReadOnlyList<GeoPoint3> IntersectWith(DxfEntity entityPointer, DxfIntersect intersectType)
Parameters
entityPointerDxfEntityThe other entity.
intersectTypeDxfIntersectWhich entity runs on past its ends.
Returns
- IReadOnlyList<GeoPoint3>
The points, each once, in the order they are found: the line from (0, 0, 0) to (10, 0, 0) meets the circle of radius 3 about (10, 0, 0) at (7, 0, 0), and extended (ExtendThis) at (13, 0, 0) too.
Exceptions
- ArgumentNullException
Thrown when the entity is null.
- ArgumentOutOfRangeException
Thrown when the type is not one of DxfIntersect.
- NotSupportedException
Thrown for a pair of shapes the library has no intersection of, as a text and a line, rather than giving none.