Table of Contents

Method GetIntersections

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

GetIntersections(GeoAabb3)

Gets every point where this segment crosses the surface of an axis-aligned box, using the default tolerance.

public GeoPoint3[] GetIntersections(GeoAabb3 box)

Parameters

box GeoAabb3

Returns

GeoPoint3[]

GetIntersections(GeoAabb3, Tolerance)

Gets every point where this segment crosses the surface of an axis-aligned box, within a tolerance.

public GeoPoint3[] GetIntersections(GeoAabb3 box, Tolerance tolerance)

Parameters

box GeoAabb3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoObb3)

Gets every point where this segment crosses the surface of an oriented box, using the default tolerance.

public GeoPoint3[] GetIntersections(GeoObb3 box)

Parameters

box GeoObb3

Returns

GeoPoint3[]

GetIntersections(GeoObb3, Tolerance)

Gets every point where this segment crosses the surface of an oriented box, within a tolerance.

public GeoPoint3[] GetIntersections(GeoObb3 box, Tolerance tolerance)

Parameters

box GeoObb3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoSolid3)

Gets every point where this segment crosses the surface of a solid, using the default tolerance.

public GeoPoint3[] GetIntersections(GeoSolid3 solid)

Parameters

solid GeoSolid3

Returns

GeoPoint3[]

GetIntersections(GeoSolid3, Tolerance)

Gets every point where this segment crosses the surface of a solid, within a tolerance.

public GeoPoint3[] GetIntersections(GeoSolid3 solid, Tolerance tolerance)

Parameters

solid GeoSolid3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoArc3)

Gets every point where an arc crosses this segment, using the default tolerance.

public GeoPoint3[] GetIntersections(GeoArc3 arc)

Parameters

arc GeoArc3

Returns

GeoPoint3[]

GetIntersections(GeoArc3, Tolerance)

Gets every point where an arc crosses this segment, within a tolerance.

public GeoPoint3[] GetIntersections(GeoArc3 arc, Tolerance tolerance)

Parameters

arc GeoArc3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoCircle3)

Gets every point where a circle crosses this segment, using the default tolerance.

public GeoPoint3[] GetIntersections(GeoCircle3 circle)

Parameters

circle GeoCircle3

Returns

GeoPoint3[]

GetIntersections(GeoCircle3, Tolerance)

Gets every point where a circle crosses this segment, within a tolerance.

public GeoPoint3[] GetIntersections(GeoCircle3 circle, Tolerance tolerance)

Parameters

circle GeoCircle3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoPlane3)

Gets every point where this segment crosses a plane.

public GeoPoint3[] GetIntersections(GeoPlane3 plane)

Parameters

plane GeoPlane3

Returns

GeoPoint3[]

GetIntersections(GeoPlane3, Tolerance)

Gets every point where this segment crosses a plane, within a tolerance.

public GeoPoint3[] GetIntersections(GeoPlane3 plane, Tolerance tolerance)

Parameters

plane GeoPlane3

The plane.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Remarks

A segment meets a plane at a single point, and this is that point wrapped so that it reads like every other crossing. It is what lets a GeoEdge3 be handed on as whichever of a segment or an arc it is, since an arc can meet one twice. Where the segment only touches the plane, as CollidesWith(GeoPlane3, Tolerance) reads a touch, the point is the one of it nearest the plane, as a triangle and a polygon give one: the segment from (-50, 0, 0.5) to (50, 0, 0.0005) touches the plane z = 0 at its end. A segment lying in the plane, both ends within the planar tolerance of it, meets it along its length and names no place. A segment no longer than the point tolerance is read as its start unless it truly crosses the plane: at a thousandth, the one from (5, 5, 0.0015) to (5, 5, 0.0006) meets the floor nowhere, where it was given its end, and the one from (5, 5, 0.0008) to (5, 5, 0.0002) meets it at its start.

GetIntersections(GeoTriangle3)

Gets every point where this segment crosses a triangle.

public GeoPoint3[] GetIntersections(GeoTriangle3 triangle)

Parameters

triangle GeoTriangle3

Returns

GeoPoint3[]

GetIntersections(GeoTriangle3, Tolerance)

Gets every point where this segment crosses a triangle, within a tolerance.

public GeoPoint3[] GetIntersections(GeoTriangle3 triangle, Tolerance tolerance)

Parameters

triangle GeoTriangle3

The triangle.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Remarks

A segment meets a triangle at a single point, and this is that point wrapped so that it reads like every other crossing. It is what lets a GeoEdge3 be handed on as whichever of a segment or an arc it is, since an arc can meet one twice. The crossing is given where it stands within the point tolerance of both and the two touch, as CollidesWith(GeoTriangle3, Tolerance) reads it. A segment that touches the triangle within the point tolerance without crossing it is given the point of it nearest the triangle, and none where it lies level over the material, within the planar tolerance of its plane at both ends: the segment from (20, 20, 0.0005) to (20, 20, 5), ending 0.0005 over the triangle with corners (0, 0, 0), (100, 0, 0) and (0, 100, 0), is given (20, 20, 0.0005), where it collided and was given nothing. A segment lying in the plane of the triangle, both ends within the planar tolerance of it, is given none even where it crosses the outline: it meets the triangle along a stretch, which names no one place, as a segment lying in a plane names none. The segment from (-50, 20, 0) to (50, 20, 0) and the triangle with corners (0, 0, 0), (100, 0, 0) and (0, 100, 0) collide and are given no point; an arc lying in that plane is given the points where it cuts the outline. A segment no longer than the point tolerance is read as its start unless it truly crosses: given its start where that lies within the point tolerance, as a point lying that close meets the shape, and nothing where it does not.

GetIntersections(GeoPolygon3)

Gets every point where this segment crosses a polygon.

public GeoPoint3[] GetIntersections(GeoPolygon3 polygon)

Parameters

polygon GeoPolygon3

Returns

GeoPoint3[]

GetIntersections(GeoPolygon3, Tolerance)

Gets every point where this segment crosses a polygon, within a tolerance.

public GeoPoint3[] GetIntersections(GeoPolygon3 polygon, Tolerance tolerance)

Parameters

polygon GeoPolygon3

The polygon.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Remarks

A segment meets a polygon at a single point, and this is that point wrapped so that it reads like every other crossing. It is what lets a GeoEdge3 be handed on as whichever of a segment or an arc it is, since an arc can meet one twice. The crossing is given where it stands within the point tolerance of both and the two touch, as CollidesWith(GeoPolygon3, Tolerance) reads it. A segment that touches the polygon within the point tolerance without crossing it is given the point of it nearest the polygon, and none where it lies level over the material, within the planar tolerance of its plane at both ends: the segment from (20, 20, 0.0005) to (20, 20, 5), ending 0.0005 over the square 100 by 100 in the floor with a corner at the origin, is given (20, 20, 0.0005), where it collided and was given nothing. A segment lying in the plane of the polygon, both ends within the planar tolerance of it, is given none even where it crosses the outline: it meets the polygon along a stretch, which names no one place, as a segment lying in a plane names none. The segment from (-50, 20, 0) to (50, 20, 0) and the square 100 by 100 in the floor with a corner at the origin collide and are given no point; an arc lying in that plane is given the points where it cuts the outline. A segment no longer than the point tolerance is read as its start unless it truly crosses: given its start where that lies within the point tolerance, as a point lying that close meets the shape, and nothing where it does not.

GetIntersections(GeoFace3)

Gets every point where this segment crosses a face.

public GeoPoint3[] GetIntersections(GeoFace3 face)

Parameters

face GeoFace3

Returns

GeoPoint3[]

GetIntersections(GeoFace3, Tolerance)

Gets every point where this segment crosses a face, within a tolerance.

public GeoPoint3[] GetIntersections(GeoFace3 face, Tolerance tolerance)

Parameters

face GeoFace3

The face.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Remarks

A segment meets a face at a single point, and this is that point wrapped so that it reads like every other crossing. It is what lets a GeoEdge3 be handed on as whichever of a segment or an arc it is, since an arc can meet one twice. The crossing is given where it stands within the point tolerance of both and the two touch, as CollidesWith(GeoFace3, Tolerance) reads it. A segment that touches the face within the point tolerance without crossing it is given the point of it nearest the face, and none where it lies level over the material, within the planar tolerance of its plane at both ends: the segment from (20, 20, 0.0005) to (20, 20, 5), ending 0.0005 over the material of the square 100 by 100 in the floor with a hole 40 by 40 in its middle, is given (20, 20, 0.0005), where it collided and was given nothing. A segment lying in the plane of the face, both ends within the planar tolerance of it, is given none even where it crosses the outline: it meets the face along a stretch, which names no one place, as a segment lying in a plane names none. The segment from (-50, 20, 0) to (50, 20, 0) and the square 100 by 100 in the floor with a corner at the origin collide and are given no point; an arc lying in that plane is given the points where it cuts the outline. A segment no longer than the point tolerance is read as its start unless it truly crosses: given its start where that lies within the point tolerance, as a point lying that close meets the shape, and nothing where it does not.

GetIntersections(GeoLine3)

Gets where this segment crosses a segment, as a list.

public GeoPoint3[] GetIntersections(GeoLine3 line)

Parameters

line GeoLine3

Returns

GeoPoint3[]

Remarks

Two straight pieces meet at one place, so the list is one long or empty. It is a list because a GeoEdge3 has to be able to ask the same question of a segment and of a bend.

There is deliberately no TryIntersectWith twin taking an array here: this type already has one handing back a single point, and a second one differing only in the shape of its out would make every existing call to it ambiguous. GetIntersection(GeoLine3) is the single-point reading and this is the list reading of the same answer.

GetIntersections(GeoLine3, Tolerance)

Gets where this segment crosses a segment, as a list, within a tolerance.

public GeoPoint3[] GetIntersections(GeoLine3 line, Tolerance tolerance)

Parameters

line GeoLine3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoRay3)

Gets where this segment crosses a ray, as a list.

public GeoPoint3[] GetIntersections(GeoRay3 ray)

Parameters

ray GeoRay3

Returns

GeoPoint3[]

Remarks

Two straight pieces meet at one place, so the list is one long or empty. It is a list because a GeoEdge3 has to be able to ask the same question of a segment and of a bend.

GetIntersections(GeoRay3, Tolerance)

Gets where this segment crosses a ray, as a list, within a tolerance.

public GeoPoint3[] GetIntersections(GeoRay3 ray, Tolerance tolerance)

Parameters

ray GeoRay3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoEdge3)

Gets every point where this segment crosses an edge: the same points, in the same order, as GetIntersections(GeoLine3).

public GeoPoint3[] GetIntersections(GeoEdge3 edge)

Parameters

edge GeoEdge3

Returns

GeoPoint3[]

GetIntersections(GeoEdge3, Tolerance)

Gets every point where this segment crosses an edge, within a tolerance: the same points, in the same order, as GetIntersections(GeoLine3, Tolerance).

public GeoPoint3[] GetIntersections(GeoEdge3 edge, Tolerance tolerance)

Parameters

edge GeoEdge3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoPolygonArc3)

Gets every point where this segment crosses a curved loop: the same points, in the same order, as GetIntersections(GeoLine3).

public GeoPoint3[] GetIntersections(GeoPolygonArc3 loop)

Parameters

loop GeoPolygonArc3

Returns

GeoPoint3[]

Exceptions

ArgumentNullException

Thrown when the loop is null.

GetIntersections(GeoPolygonArc3, Tolerance)

Gets every point where this segment crosses a curved loop, within a tolerance: the same points, in the same order, as GetIntersections(GeoLine3, Tolerance).

public GeoPoint3[] GetIntersections(GeoPolygonArc3 loop, Tolerance tolerance)

Parameters

loop GeoPolygonArc3
tolerance Tolerance

Returns

GeoPoint3[]

Exceptions

ArgumentNullException

Thrown when the loop is null.

GetIntersections(GeoPolyline3)

Gets every point where this segment crosses a straight chain: the same points, in the same order, as GetIntersections(GeoLine3).

public GeoPoint3[] GetIntersections(GeoPolyline3 polyline)

Parameters

polyline GeoPolyline3

Returns

GeoPoint3[]

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetIntersections(GeoPolyline3, Tolerance)

Gets every point where this segment crosses a straight chain, within a tolerance: the same points, in the same order, as GetIntersections(GeoLine3, Tolerance).

public GeoPoint3[] GetIntersections(GeoPolyline3 polyline, Tolerance tolerance)

Parameters

polyline GeoPolyline3
tolerance Tolerance

Returns

GeoPoint3[]

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetIntersections(GeoPolylineArc3)

Gets every point where this segment crosses a curved chain: the same points, in the same order, as GetIntersections(GeoLine3).

public GeoPoint3[] GetIntersections(GeoPolylineArc3 chain)

Parameters

chain GeoPolylineArc3

Returns

GeoPoint3[]

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetIntersections(GeoPolylineArc3, Tolerance)

Gets every point where this segment crosses a curved chain, within a tolerance: the same points, in the same order, as GetIntersections(GeoLine3, Tolerance).

public GeoPoint3[] GetIntersections(GeoPolylineArc3 chain, Tolerance tolerance)

Parameters

chain GeoPolylineArc3
tolerance Tolerance

Returns

GeoPoint3[]

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetIntersections(GeoSphere3)

Gets the points where this segment crosses the surface of a ball, using the default tolerance.

public GeoPoint3[] GetIntersections(GeoSphere3 sphere)

Parameters

sphere GeoSphere3

Returns

GeoPoint3[]

GetIntersections(GeoSphere3, Tolerance)

Gets the points where this segment crosses the surface of a ball, within a tolerance.

public GeoPoint3[] GetIntersections(GeoSphere3 sphere, Tolerance tolerance)

Parameters

sphere GeoSphere3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoSpline3)

Gets the points where this line segment meets a spline, using the default tolerance.

public GeoPoint3[] GetIntersections(GeoSpline3 spline)

Parameters

spline GeoSpline3

Returns

GeoPoint3[]

Exceptions

ArgumentNullException

Thrown when the spline is null.

GetIntersections(GeoSpline3, Tolerance)

Gets the points where this line segment meets a spline, within a tolerance.

public GeoPoint3[] GetIntersections(GeoSpline3 spline, Tolerance tolerance)

Parameters

spline GeoSpline3
tolerance Tolerance

Returns

GeoPoint3[]

The same points the spline gives, in order along the spline from its start.

Exceptions

ArgumentNullException

Thrown when the spline is null.

GetIntersections(GeoXLine3)

Gets the point where this line segment crosses an infinite line, using the default tolerance.

public GeoPoint3[] GetIntersections(GeoXLine3 xline)

Parameters

xline GeoXLine3

Returns

GeoPoint3[]

GetIntersections(GeoXLine3, Tolerance)

Gets the point where this line segment crosses an infinite line, within a tolerance.

public GeoPoint3[] GetIntersections(GeoXLine3 xline, Tolerance tolerance)

Parameters

xline GeoXLine3
tolerance Tolerance

Returns

GeoPoint3[]