Table of Contents

Method GetIntersections

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

GetIntersections(GeoTriangle3, GeoSolid3)

Gets the points where a triangle and the surface of a solid cross, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoTriangle3 triangle, GeoSolid3 solid)

Parameters

triangle GeoTriangle3
solid GeoSolid3

Returns

GeoPoint3[]

Remarks

A box 100 by 100 by 100 with a corner at the origin and the triangle with corners (-50, -50, 50), (300, -50, 50) and (-50, 300, 50) lying across it at half its height cross at (0, 0, 50), (100, 0, 50), (100, 100, 50) and (0, 100, 50), where the upright edges of the box pass through it.

Exceptions

ArgumentNullException

Thrown when the solid is null.

GetIntersections(GeoTriangle3, GeoSolid3, Tolerance)

Gets the points where a triangle and the surface of a solid cross, within a tolerance.

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

Parameters

triangle GeoTriangle3

The triangle.

solid GeoSolid3

The solid, read by its material.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Where an edge of the triangle crosses the surface, in order along each edge, then where an edge of the body crosses the triangle, face by face, each place named once. A triangle lying wholly inside the material crosses nothing and gives none, which CollidesWith(GeoTriangle3, GeoSolid3, Tolerance) reports instead.

Remarks

A box 100 by 100 by 100 with a corner at the origin and the triangle with corners (-50, -50, 50), (300, -50, 50) and (-50, 300, 50) lying across it at half its height cross at (0, 0, 50), (100, 0, 50), (100, 100, 50) and (0, 100, 50), where the upright edges of the box pass through it. A side shorter than the global tolerance is measured along as it is at a finer one: at a billionth, the triangle (5, 5, 0.0004), (5, 5, -0.0005), (45, 5, 10) crosses the top of the box 10 by 10 by 10 standing under the floor first at (5, 5, 0), where its side 0.0009 long passes through; it was given that side's start, (5, 5, 0.0004).

Exceptions

ArgumentNullException

Thrown when the solid is null.

GetIntersections(GeoPolygon3, GeoSolid3)

Gets the points where a polygon and the surface of a solid cross, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoPolygon3 polygon, GeoSolid3 solid)

Parameters

polygon GeoPolygon3
solid GeoSolid3

Returns

GeoPoint3[]

Remarks

A box 100 by 100 by 100 with a corner at the origin and the square 200 by 200 from (-50, -50, 50) to (150, 150, 50) lying across it at half its height cross at (0, 0, 50), (100, 0, 50), (100, 100, 50) and (0, 100, 50), where the upright edges of the box pass through it.

Exceptions

ArgumentNullException

Thrown when the polygon or the solid is null.

GetIntersections(GeoPolygon3, GeoSolid3, Tolerance)

Gets the points where a polygon and the surface of a solid cross, within a tolerance.

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

Parameters

polygon GeoPolygon3

The polygon.

solid GeoSolid3

The solid, read by its material.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Where an edge of the polygon crosses the surface, in order along each edge, then where an edge of the body crosses the polygon, face by face, each place named once. A polygon lying wholly inside the material crosses nothing and gives none, which CollidesWith(GeoPolygon3, GeoSolid3, Tolerance) reports instead.

Remarks

A box 100 by 100 by 100 with a corner at the origin and the square 200 by 200 from (-50, -50, 50) to (150, 150, 50) lying across it at half its height cross at (0, 0, 50), (100, 0, 50), (100, 100, 50) and (0, 100, 50), where the upright edges of the box pass through it. A side shorter than the global tolerance is measured along as it is at a finer one, as GetIntersections(GeoTriangle3, GeoSolid3, Tolerance) says.

Exceptions

ArgumentNullException

Thrown when the polygon or the solid is null.

GetIntersections(GeoFace3, GeoSolid3)

Gets the points where the material of a face and the surface of a solid cross, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoFace3 face, GeoSolid3 solid)

Parameters

face GeoFace3
solid GeoSolid3

Returns

GeoPoint3[]

Remarks

The square 200 by 200 from (-50, -50, 50) to (150, 150, 50) with a hole 150 by 150 in its middle, around a box 100 by 100 by 100 with a corner at the origin, crosses nothing: the box passes through the hole.

Exceptions

ArgumentNullException

Thrown when the face or the solid is null.

GetIntersections(GeoFace3, GeoSolid3, Tolerance)

Gets the points where the material of a face and the surface of a solid cross, within a tolerance.

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

Parameters

face GeoFace3

The face, read by its material.

solid GeoSolid3

The solid, read by its material.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Where an edge of the face, outline and then holes, crosses the surface, in order along each edge, then where an edge of the body crosses the material of the face, face by face, each place named once. A face lying wholly inside the material crosses nothing and gives none, which CollidesWith(GeoFace3, GeoSolid3, Tolerance) reports instead.

Remarks

The square 200 by 200 from (-50, -50, 50) to (150, 150, 50) with a hole 150 by 150 in its middle, around a box 100 by 100 by 100 with a corner at the origin, crosses nothing: the box passes through the hole. Without the hole the two cross at (0, 0, 50), (100, 0, 50), (100, 100, 50) and (0, 100, 50). A side shorter than the global tolerance is measured along as it is at a finer one, as GetIntersections(GeoTriangle3, GeoSolid3, Tolerance) says.

Exceptions

ArgumentNullException

Thrown when the face or the solid is null.

GetIntersections(GeoTriangle3, GeoObb3)

Gets the points where a triangle and the surface of an oriented box cross, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoTriangle3 triangle, GeoObb3 box)

Parameters

triangle GeoTriangle3
box GeoObb3

Returns

GeoPoint3[]

Remarks

The crossings with ToSolid(): a box 100 by 100 by 100 with a corner at the origin and the triangle with corners (-50, -50, 50), (300, -50, 50) and (-50, 300, 50) cross at four points at height 50. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point, and crossed where they are: the box 100 by 100 by 0 about (50, 50, 0) and the triangle with corners (30, -50, -50), (30, 300, -50) and (30, -50, 300) standing across it cross at (30, 100, 0) and (30, 0, 0), and the box 100 by 0.000002 by 0.000002 about (50, 0, 0), its segment along X, at (30, 0, 0).

Exceptions

ArgumentNullException

Thrown when the box is null.

GetIntersections(GeoTriangle3, GeoObb3, Tolerance)

Gets the points where a triangle and the surface of an oriented box cross, within a tolerance.

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

Parameters

triangle GeoTriangle3
box GeoObb3
tolerance Tolerance

Returns

GeoPoint3[]

Remarks

The crossings with ToSolid(): a box 100 by 100 by 100 with a corner at the origin and the triangle with corners (-50, -50, 50), (300, -50, 50) and (-50, 300, 50) cross at four points at height 50. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point, and crossed where they are: the box 100 by 100 by 0 about (50, 50, 0) and the triangle with corners (30, -50, -50), (30, 300, -50) and (30, -50, 300) standing across it cross at (30, 100, 0) and (30, 0, 0), and the box 100 by 0.000002 by 0.000002 about (50, 0, 0), its segment along X, at (30, 0, 0).

Exceptions

ArgumentNullException

Thrown when the box is null.

GetIntersections(GeoTriangle3, GeoAabb3)

Gets the points where a triangle and the surface of an axis-aligned box cross, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoTriangle3 triangle, GeoAabb3 box)

Parameters

triangle GeoTriangle3
box GeoAabb3

Returns

GeoPoint3[]

Remarks

The crossings with ToObb().ToSolid(): the box from the origin to (100, 100, 100) and the triangle with corners (-50, -50, 50), (300, -50, 50) and (-50, 300, 50) cross at four points at height 50. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point, and crossed where they are: the box from the origin to (100, 100, 0) and the triangle with corners (30, -50, -50), (30, 300, -50) and (30, -50, 300) standing across it cross at (30, 100, 0) and (30, 0, 0), and the box from (0, -0.000001, -0.000001) to (100, 0.000001, 0.000001), its segment along X, at (30, 0, 0). An empty box is crossed nowhere, and the answer is empty.

GetIntersections(GeoTriangle3, GeoAabb3, Tolerance)

Gets the points where a triangle and the surface of an axis-aligned box cross, within a tolerance.

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

Parameters

triangle GeoTriangle3
box GeoAabb3
tolerance Tolerance

Returns

GeoPoint3[]

Remarks

The crossings with ToObb().ToSolid(): the box from the origin to (100, 100, 100) and the triangle with corners (-50, -50, 50), (300, -50, 50) and (-50, 300, 50) cross at four points at height 50. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point, and crossed where they are: the box from the origin to (100, 100, 0) and the triangle with corners (30, -50, -50), (30, 300, -50) and (30, -50, 300) standing across it cross at (30, 100, 0) and (30, 0, 0), and the box from (0, -0.000001, -0.000001) to (100, 0.000001, 0.000001), its segment along X, at (30, 0, 0). An empty box is crossed nowhere, and the answer is empty.

GetIntersections(GeoPolygon3, GeoObb3)

Gets the points where a polygon and the surface of an oriented box cross, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoPolygon3 polygon, GeoObb3 box)

Parameters

polygon GeoPolygon3
box GeoObb3

Returns

GeoPoint3[]

Remarks

The crossings with ToSolid(): a box 100 by 100 by 100 with a corner at the origin and the square 200 by 200 from (-50, -50, 50) to (150, 150, 50) cross at four points at height 50. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point, and crossed where they are: the box 100 by 100 by 0 about (50, 50, 0) and the square 120 by 20 standing upright in x = 30 from (30, -10, -10) to (30, 110, 10) cross at (30, 100, 0) and (30, 0, 0), and the box 100 by 0.000002 by 0.000002 about (50, 0, 0), its segment along X, at (30, 0, 0).

Exceptions

ArgumentNullException

Thrown when the polygon or the box is null.

GetIntersections(GeoPolygon3, GeoObb3, Tolerance)

Gets the points where a polygon and the surface of an oriented box cross, within a tolerance.

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

Parameters

polygon GeoPolygon3
box GeoObb3
tolerance Tolerance

Returns

GeoPoint3[]

Remarks

The crossings with ToSolid(): a box 100 by 100 by 100 with a corner at the origin and the square 200 by 200 from (-50, -50, 50) to (150, 150, 50) cross at four points at height 50. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point, and crossed where they are: the box 100 by 100 by 0 about (50, 50, 0) and the square 120 by 20 standing upright in x = 30 from (30, -10, -10) to (30, 110, 10) cross at (30, 100, 0) and (30, 0, 0), and the box 100 by 0.000002 by 0.000002 about (50, 0, 0), its segment along X, at (30, 0, 0).

Exceptions

ArgumentNullException

Thrown when the polygon or the box is null.

GetIntersections(GeoPolygon3, GeoAabb3)

Gets the points where a polygon and the surface of an axis-aligned box cross, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoPolygon3 polygon, GeoAabb3 box)

Parameters

polygon GeoPolygon3
box GeoAabb3

Returns

GeoPoint3[]

Remarks

The crossings with ToObb().ToSolid(): the box from the origin to (100, 100, 100) and the square 200 by 200 from (-50, -50, 50) to (150, 150, 50) cross at four points at height 50. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point, and crossed where they are: the box from the origin to (100, 100, 0) and the square 120 by 20 standing upright in x = 30 from (30, -10, -10) to (30, 110, 10) cross at (30, 100, 0) and (30, 0, 0), and the box from (0, -0.000001, -0.000001) to (100, 0.000001, 0.000001), its segment along X, at (30, 0, 0). An empty box is crossed nowhere, and the answer is empty.

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetIntersections(GeoPolygon3, GeoAabb3, Tolerance)

Gets the points where a polygon and the surface of an axis-aligned box cross, within a tolerance.

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

Parameters

polygon GeoPolygon3
box GeoAabb3
tolerance Tolerance

Returns

GeoPoint3[]

Remarks

The crossings with ToObb().ToSolid(): the box from the origin to (100, 100, 100) and the square 200 by 200 from (-50, -50, 50) to (150, 150, 50) cross at four points at height 50. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point, and crossed where they are: the box from the origin to (100, 100, 0) and the square 120 by 20 standing upright in x = 30 from (30, -10, -10) to (30, 110, 10) cross at (30, 100, 0) and (30, 0, 0), and the box from (0, -0.000001, -0.000001) to (100, 0.000001, 0.000001), its segment along X, at (30, 0, 0). An empty box is crossed nowhere, and the answer is empty.

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetIntersections(GeoFace3, GeoObb3)

Gets the points where the material of a face and the surface of an oriented box cross, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoFace3 face, GeoObb3 box)

Parameters

face GeoFace3
box GeoObb3

Returns

GeoPoint3[]

Remarks

The crossings with ToSolid(): the square 200 by 200 from (-50, -50, 50) to (150, 150, 50) with a hole 150 by 150 in its middle, around a box 100 by 100 by 100 with a corner at the origin, crosses nothing. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point, and crossed where they are: the box 100 by 100 by 0 about (50, 50, 0) and the square 120 by 20 standing upright in x = 30 from (30, -10, -10) to (30, 110, 10), with a hole 20 by 10 about (30, 50, 0), cross at (30, 60, 0) and (30, 40, 0) on the rim of the hole, then (30, 100, 0) and (30, 0, 0), and the box 100 by 0.000002 by 0.000002 about (50, 0, 0), its segment along X, at (30, 0, 0).

Exceptions

ArgumentNullException

Thrown when the face or the box is null.

GetIntersections(GeoFace3, GeoObb3, Tolerance)

Gets the points where the material of a face and the surface of an oriented box cross, within a tolerance.

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

Parameters

face GeoFace3
box GeoObb3
tolerance Tolerance

Returns

GeoPoint3[]

Remarks

The crossings with ToSolid(): the square 200 by 200 from (-50, -50, 50) to (150, 150, 50) with a hole 150 by 150 in its middle, around a box 100 by 100 by 100 with a corner at the origin, crosses nothing. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point, and crossed where they are: the box 100 by 100 by 0 about (50, 50, 0) and the square 120 by 20 standing upright in x = 30 from (30, -10, -10) to (30, 110, 10), with a hole 20 by 10 about (30, 50, 0), cross at (30, 60, 0) and (30, 40, 0) on the rim of the hole, then (30, 100, 0) and (30, 0, 0), and the box 100 by 0.000002 by 0.000002 about (50, 0, 0), its segment along X, at (30, 0, 0).

Exceptions

ArgumentNullException

Thrown when the face or the box is null.

GetIntersections(GeoFace3, GeoAabb3)

Gets the points where the material of a face and the surface of an axis-aligned box cross, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoFace3 face, GeoAabb3 box)

Parameters

face GeoFace3
box GeoAabb3

Returns

GeoPoint3[]

Remarks

The crossings with ToObb().ToSolid(): the square 200 by 200 from (-50, -50, 50) to (150, 150, 50) with a hole 150 by 150 in its middle, around the box from the origin to (100, 100, 100), crosses nothing. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point, and crossed where they are: the box from the origin to (100, 100, 0) and the square 120 by 20 standing upright in x = 30 from (30, -10, -10) to (30, 110, 10), with a hole 20 by 10 about (30, 50, 0), cross at (30, 60, 0) and (30, 40, 0) on the rim of the hole, then (30, 100, 0) and (30, 0, 0), and the box from (0, -0.000001, -0.000001) to (100, 0.000001, 0.000001), its segment along X, at (30, 0, 0). An empty box is crossed nowhere, and the answer is empty.

Exceptions

ArgumentNullException

Thrown when the face is null.

GetIntersections(GeoFace3, GeoAabb3, Tolerance)

Gets the points where the material of a face and the surface of an axis-aligned box cross, within a tolerance.

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

Parameters

face GeoFace3
box GeoAabb3
tolerance Tolerance

Returns

GeoPoint3[]

Remarks

The crossings with ToObb().ToSolid(): the square 200 by 200 from (-50, -50, 50) to (150, 150, 50) with a hole 150 by 150 in its middle, around the box from the origin to (100, 100, 100), crosses nothing. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point, and crossed where they are: the box from the origin to (100, 100, 0) and the square 120 by 20 standing upright in x = 30 from (30, -10, -10) to (30, 110, 10), with a hole 20 by 10 about (30, 50, 0), cross at (30, 60, 0) and (30, 40, 0) on the rim of the hole, then (30, 100, 0) and (30, 0, 0), and the box from (0, -0.000001, -0.000001) to (100, 0.000001, 0.000001), its segment along X, at (30, 0, 0). An empty box is crossed nowhere, and the answer is empty.

Exceptions

ArgumentNullException

Thrown when the face is null.

GetIntersections(GeoPlane3, GeoObb3)

Gets the points where a plane cuts the edges of an oriented box, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoPlane3 plane, GeoObb3 box)

Parameters

plane GeoPlane3
box GeoObb3

Returns

GeoPoint3[]

Remarks

The points of GetIntersections(GeoPlane3, GeoSolid3, Tolerance) for ToSolid(): the plane z = 50 cuts the four upright edges of a box 100 by 100 by 100 standing on the floor, at height 50. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point, and crossed where they are: the box 100 by 100 by 0 about (50, 50, 0) and the plane x = 30 cross at (30, 100, 0) and (30, 0, 0), and the box 100 by 0.000002 by 0.000002 about (50, 0, 0), its segment along X, at (30, 0, 0).

Exceptions

ArgumentNullException

Thrown when the box is null.

GetIntersections(GeoPlane3, GeoObb3, Tolerance)

Gets the points where a plane cuts the edges of an oriented box, within a tolerance.

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

Parameters

plane GeoPlane3
box GeoObb3
tolerance Tolerance

Returns

GeoPoint3[]

Remarks

The points of GetIntersections(GeoPlane3, GeoSolid3, Tolerance) for ToSolid(): the plane z = 50 cuts the four upright edges of a box 100 by 100 by 100 standing on the floor, at height 50. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point, and crossed where they are: the box 100 by 100 by 0 about (50, 50, 0) and the plane x = 30 cross at (30, 100, 0) and (30, 0, 0), and the box 100 by 0.000002 by 0.000002 about (50, 0, 0), its segment along X, at (30, 0, 0).

Exceptions

ArgumentNullException

Thrown when the box is null.

GetIntersections(GeoPlane3, GeoAabb3)

Gets the points where a plane cuts the edges of an axis-aligned box, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoPlane3 plane, GeoAabb3 box)

Parameters

plane GeoPlane3
box GeoAabb3

Returns

GeoPoint3[]

Remarks

The points of GetIntersections(GeoPlane3, GeoSolid3, Tolerance) for ToObb().ToSolid(): the plane z = 50 cuts the four upright edges of the box from the origin to (100, 100, 100), at height 50. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point, and crossed where they are: the box from the origin to (100, 100, 0) and the plane x = 30 cross at (30, 100, 0) and (30, 0, 0), and the box from (0, -0.000001, -0.000001) to (100, 0.000001, 0.000001), its segment along X, at (30, 0, 0). An empty box is crossed nowhere, and the answer is empty.

GetIntersections(GeoPlane3, GeoAabb3, Tolerance)

Gets the points where a plane cuts the edges of an axis-aligned box, within a tolerance.

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

Parameters

plane GeoPlane3
box GeoAabb3
tolerance Tolerance

Returns

GeoPoint3[]

Remarks

The points of GetIntersections(GeoPlane3, GeoSolid3, Tolerance) for ToObb().ToSolid(): the plane z = 50 cuts the four upright edges of the box from the origin to (100, 100, 100), at height 50. A box flat on some axis, or no thicker than the point tolerance on two, is read as its rectangle, its segment or its point, and crossed where they are: the box from the origin to (100, 100, 0) and the plane x = 30 cross at (30, 100, 0) and (30, 0, 0), and the box from (0, -0.000001, -0.000001) to (100, 0.000001, 0.000001), its segment along X, at (30, 0, 0). An empty box is crossed nowhere, and the answer is empty.

GetIntersections(GeoLine3, GeoObb3)

Finds where a line segment enters and leaves an oriented box, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoLine3 line, GeoObb3 box)

Parameters

line GeoLine3
box GeoObb3

Returns

GeoPoint3[]

GetIntersections(GeoLine3, GeoObb3, Tolerance)

Finds where a line segment enters and leaves an oriented box, within a tolerance.

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

Parameters

line GeoLine3

The line segment.

box GeoObb3

The box.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

The crossing points in order along the segment: none when it misses the box, one when it starts or ends inside, two when it passes through, and one, the point of it nearest the box, when it touches the box within the point tolerance on its own without crossing a face. None for a segment lying wholly inside the box, or lying along it within the tolerance, which collide with it and cross nothing.

Remarks

This is the slab method. Taking the segment into the local frame of the box turns it into three pairs of parallel planes, and the part of the segment inside the box is the overlap of the three intervals those pairs cut out of it. The overlap is empty exactly when some axis separates them, which is the same reasoning the separating axis test in Collision3 rests on. A segment that barely moves across a pair of faces is held within them when it runs no further outside than the point tolerance, and is then given its crossings only where it comes within the point tolerance of the box, as CollidesWith(GeoLine3, GeoObb3, Tolerance) reads it: past an edge of the box 10 by 10 by 10 a segment along X standing 0.000714 off both faces is 0.00101 from the box, and crosses nothing, where it was given two points. The other way round, the slabs of the axes it moves along are read exactly, so a segment that comes within the tolerance of an edge or a face without reaching the box touches it and crosses no face: it is given the point of it nearest the box, as the other shapes give a touch. The segment from (5, 10.1, 9.9007) to (5, 9.9007, 10.1) passes 0.0005 off the edge of that box and is given (5, 10.00035, 10.00035), where it was given nothing and collided. The touch is given only where the segment touches the box at one place: one lying along the box within the tolerance, within the planar tolerance of the plane of the face it stands over or the line of the edge it runs with all along, such as one 0.0005 over the top face and level with it, is given none, as the body of the box gives none and an arc in the same place none, a curve lying on a surface crossing it nowhere. The point is the same whichever way round the segment is given. A segment no longer than the point tolerance is read as its start where it does not truly cross a face: it is given its start where that lies within the point tolerance of a face, inside the box or out, and nothing where it does not.

GetIntersections(GeoPlane3, GeoSolid3)

Finds where a plane cuts the edges of a solid, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoPlane3 plane, GeoSolid3 solid)

Parameters

plane GeoPlane3
solid GeoSolid3

Returns

GeoPoint3[]

GetIntersections(GeoPlane3, GeoSolid3, Tolerance)

Finds where a plane cuts the edges of a solid, within a tolerance.

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

Parameters

plane GeoPlane3

The cutting plane.

solid GeoSolid3

The solid.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

The crossing points, with duplicates from shared edges removed.

Remarks

These are the corners of the section the plane cuts, but not the section itself: they come back as a bag of points with no ordering, because ordering them into a loop needs the face adjacency that this method does not look at. Splition3 is where that belongs.

GetIntersections(GeoLine3, GeoSolid3)

Finds every point where a line segment crosses the surface of a solid, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoLine3 line, GeoSolid3 solid)

Parameters

line GeoLine3
solid GeoSolid3

Returns

GeoPoint3[]

GetIntersections(GeoLine3, GeoSolid3, Tolerance)

Finds every point where a line segment crosses the surface of a solid, within a tolerance.

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

Parameters

line GeoLine3

The segment.

solid GeoSolid3

The body.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

The crossing points, in order along the segment.

Remarks

The walls of the openings count as surface, since they too separate material from void. Two crossings closer together than the tolerance are reported once, so a segment grazing an edge does not come back as having entered and left. However small the tolerance, a face holds a crossing to the rounding of the coordinates, 1E-15 of the largest of the body's and the segment's, on its plane and past its rim, as it holds a ray's; below that rounding, and only there, the two crossings of a seam within eight times it of each other are one, a segment reaching from further off than the body is large is read from a diagonal short of it, along its line, and an end within the rounding of a face meets the surface there where the segment touches the face, or the body, as CollidesWith(GeoLine3, GeoSolid3, Tolerance) reads it, and only there. At a tolerance of nought the segment 400 long through a cylinder of radius 20 turned about in space is given its two crossings, where the rounding refused the crossing of nearly every face and it was given one or none; the one along the seam of two of its sides, through its axis, from a hundred million out to a hundred million out beyond, is given the two, where it was given none; and the one from 10 off the side of a box turned about in space to a point on it is given that point, where 831 of 1 000 were given nothing though they touched the box. A segment no longer than the point tolerance is read as its start where it does not truly cross the surface: it is given its start where that lies within the point tolerance of the surface, in the material or out, and nothing where it does not. A longer one is measured along itself as it is whatever the global tolerance: at a billionth, the segment from (5, 5, 0.0004) to (5, 5, -0.0005), shorter than the global thousandth, crosses the top of the box 10 by 10 by 10 standing under the floor at (5, 5, 0), where it was given its start.

GetIntersections(GeoLine3, GeoAabb3)

Finds where a line segment enters and leaves an axis-aligned box, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoLine3 line, GeoAabb3 box)

Parameters

line GeoLine3
box GeoAabb3

Returns

GeoPoint3[]

GetIntersections(GeoLine3, GeoAabb3, Tolerance)

Finds where a line segment enters and leaves an axis-aligned box, within a tolerance.

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

Parameters

line GeoLine3
box GeoAabb3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoRay3, GeoObb3)

Finds where a ray enters and leaves an oriented box, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoRay3 ray, GeoObb3 box)

Parameters

ray GeoRay3
box GeoObb3

Returns

GeoPoint3[]

GetIntersections(GeoRay3, GeoObb3, Tolerance)

Finds where a ray enters and leaves an oriented box, within a tolerance.

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

Parameters

ray GeoRay3
box GeoObb3
tolerance Tolerance

Returns

GeoPoint3[]

Remarks

A ray runs to infinity, so it is sampled as a segment long enough to reach past the far side of the box. Nothing beyond that point can be a crossing: past it the ray is only moving away. A ray starting within the point tolerance of the box and running away from it touches it at its origin: the ray from (5, 5, 10.0005) up along Z meets the box 10 by 10 by 10 there, where it was given nothing and collided. The list is held to CollidesWith(GeoRay3, GeoObb3, Tolerance): a ray touching the box that holds no part longer than the point tolerance lying level over a face or along an edge is given its point nearest the box, though the short cut of it stands within the planar tolerance of the face it starts beside: with a point tolerance of a hundredth and a planar one of five hundredths, the ray from 0.0075 beside a side of the box 100 by 80 by 50, 0.005 from its edge and running away from both, touches it at its origin, where it collided and was given nothing. At a tolerance below the rounding of the numbers a crossing is given only where the ray collides with the box.

GetIntersections(GeoRay3, GeoAabb3)

Finds where a ray enters and leaves an axis-aligned box, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoRay3 ray, GeoAabb3 box)

Parameters

ray GeoRay3
box GeoAabb3

Returns

GeoPoint3[]

GetIntersections(GeoRay3, GeoAabb3, Tolerance)

Finds where a ray enters and leaves an axis-aligned box, within a tolerance.

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

Parameters

ray GeoRay3
box GeoAabb3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoPolyline3, GeoPlane3)

Gets every point where a straight chain crosses a plane.

public static GeoPoint3[] GetIntersections(GeoPolyline3 polyline, GeoPlane3 plane)

Parameters

polyline GeoPolyline3
plane GeoPlane3

Returns

GeoPoint3[]

GetIntersections(GeoPolyline3, GeoPlane3, Tolerance)

Gets every point where a straight chain crosses a plane, within a tolerance.

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

Parameters

polyline GeoPolyline3

The chain.

plane GeoPlane3

The shape to cross with.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Every place they meet, each named once.

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetIntersections(GeoPolyline3, GeoLine3)

Gets every point where a straight chain crosses a segment.

public static GeoPoint3[] GetIntersections(GeoPolyline3 polyline, GeoLine3 line)

Parameters

polyline GeoPolyline3
line GeoLine3

Returns

GeoPoint3[]

GetIntersections(GeoPolyline3, GeoLine3, Tolerance)

Gets every point where a straight chain crosses a segment, within a tolerance.

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

Parameters

polyline GeoPolyline3

The chain.

line GeoLine3

The shape to cross with.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Every place they meet, each named once.

Remarks

A segment no longer than the point tolerance is read as its start where it does not truly cross the chain: it is given its start where that lies within the point tolerance of the chain, and nothing where it does not. The sides of the chain are the sides they are however short.

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetIntersections(GeoPolyline3, GeoRay3)

Gets every point where a straight chain crosses a ray.

public static GeoPoint3[] GetIntersections(GeoPolyline3 polyline, GeoRay3 ray)

Parameters

polyline GeoPolyline3
ray GeoRay3

Returns

GeoPoint3[]

GetIntersections(GeoPolyline3, GeoRay3, Tolerance)

Gets every point where a straight chain crosses a ray, within a tolerance.

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

Parameters

polyline GeoPolyline3

The chain.

ray GeoRay3

The shape to cross with.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Every place they meet, each named once.

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetIntersections(GeoPolyline3, GeoArc3)

Gets every point where a straight chain crosses an arc.

public static GeoPoint3[] GetIntersections(GeoPolyline3 polyline, GeoArc3 arc)

Parameters

polyline GeoPolyline3
arc GeoArc3

Returns

GeoPoint3[]

GetIntersections(GeoPolyline3, GeoArc3, Tolerance)

Gets every point where a straight chain crosses an arc, within a tolerance.

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

Parameters

polyline GeoPolyline3

The chain.

arc GeoArc3

The shape to cross with.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Every place they meet, each named once.

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetIntersections(GeoPolyline3, GeoCircle3)

Gets every point where a straight chain crosses a circle.

public static GeoPoint3[] GetIntersections(GeoPolyline3 polyline, GeoCircle3 circle)

Parameters

polyline GeoPolyline3
circle GeoCircle3

Returns

GeoPoint3[]

GetIntersections(GeoPolyline3, GeoCircle3, Tolerance)

Gets every point where a straight chain crosses a circle, within a tolerance.

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

Parameters

polyline GeoPolyline3

The chain.

circle GeoCircle3

The shape to cross with.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Every place they meet, each named once.

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetIntersections(GeoPolyline3, GeoTriangle3)

Gets every point where a straight chain crosses a triangle.

public static GeoPoint3[] GetIntersections(GeoPolyline3 polyline, GeoTriangle3 triangle)

Parameters

polyline GeoPolyline3
triangle GeoTriangle3

Returns

GeoPoint3[]

GetIntersections(GeoPolyline3, GeoTriangle3, Tolerance)

Gets every point where a straight chain crosses a triangle, within a tolerance.

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

Parameters

polyline GeoPolyline3

The chain.

triangle GeoTriangle3

The shape to cross with.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Every place they meet, each named once.

Remarks

Each segment is read as GetIntersections(GeoTriangle3, Tolerance) reads one, each the side it is: the crossing, or where it only touches, the point of it nearest, so a chain whose corner comes within the point tolerance of the triangle is given the corner.

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetIntersections(GeoPolyline3, GeoPolygon3)

Gets every point where a straight chain crosses a polygon.

public static GeoPoint3[] GetIntersections(GeoPolyline3 polyline, GeoPolygon3 polygon)

Parameters

polyline GeoPolyline3
polygon GeoPolygon3

Returns

GeoPoint3[]

GetIntersections(GeoPolyline3, GeoPolygon3, Tolerance)

Gets every point where a straight chain crosses a polygon, within a tolerance.

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

Parameters

polyline GeoPolyline3

The chain.

polygon GeoPolygon3

The shape to cross with.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Every place they meet, each named once.

Remarks

Each segment is read as GetIntersections(GeoPolygon3, Tolerance) reads one, each the side it is: the crossing, or where it only touches, the point of it nearest, so a chain whose corner comes within the point tolerance of the polygon is given the corner.

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetIntersections(GeoPolyline3, GeoFace3)

Gets every point where a straight chain crosses a face.

public static GeoPoint3[] GetIntersections(GeoPolyline3 polyline, GeoFace3 face)

Parameters

polyline GeoPolyline3
face GeoFace3

Returns

GeoPoint3[]

GetIntersections(GeoPolyline3, GeoFace3, Tolerance)

Gets every point where a straight chain crosses a face, within a tolerance.

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

Parameters

polyline GeoPolyline3

The chain.

face GeoFace3

The shape to cross with.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Every place they meet, each named once.

Remarks

Each segment is read as GetIntersections(GeoFace3, Tolerance) reads one, each the side it is: the crossing, or where it only touches, the point of it nearest, so a chain whose corner comes within the point tolerance of the face is given the corner.

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetIntersections(GeoPolyline3, GeoObb3)

Gets every point where a straight chain crosses a box.

public static GeoPoint3[] GetIntersections(GeoPolyline3 polyline, GeoObb3 box)

Parameters

polyline GeoPolyline3
box GeoObb3

Returns

GeoPoint3[]

GetIntersections(GeoPolyline3, GeoObb3, Tolerance)

Gets every point where a straight chain crosses a box, within a tolerance.

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

Parameters

polyline GeoPolyline3

The chain.

box GeoObb3

The shape to cross with.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Every place they meet, each named once.

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetIntersections(GeoPolyline3, GeoAabb3)

Gets every point where a straight chain crosses a square box.

public static GeoPoint3[] GetIntersections(GeoPolyline3 polyline, GeoAabb3 box)

Parameters

polyline GeoPolyline3
box GeoAabb3

Returns

GeoPoint3[]

GetIntersections(GeoPolyline3, GeoAabb3, Tolerance)

Gets every point where a straight chain crosses a square box, within a tolerance.

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

Parameters

polyline GeoPolyline3

The chain.

box GeoAabb3

The shape to cross with.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Every place they meet, each named once.

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetIntersections(GeoPolyline3, GeoSolid3)

Gets every point where a straight chain crosses a body.

public static GeoPoint3[] GetIntersections(GeoPolyline3 polyline, GeoSolid3 solid)

Parameters

polyline GeoPolyline3
solid GeoSolid3

Returns

GeoPoint3[]

GetIntersections(GeoPolyline3, GeoSolid3, Tolerance)

Gets every point where a straight chain crosses a body, within a tolerance.

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

Parameters

polyline GeoPolyline3

The chain.

solid GeoSolid3

The shape to cross with.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Every place they meet, each named once.

Remarks

A straight segment is crossed as it is however short: at a hundredth, the chain from (2, 5, 0.054) down to (5, 5, 0.004), through the top of the box 10 by 10 by 10 standing under the floor to (5, 5, -0.005) and on to (8, 5, -0.055) crosses it at (5, 5, 0), where its segment 0.009 long, no longer than the tolerance, crossed nothing and it was given no point.

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetIntersections(GeoPolyline3, GeoPolyline3)

Gets every point where two straight chains cross.

public static GeoPoint3[] GetIntersections(GeoPolyline3 polyline, GeoPolyline3 other)

Parameters

polyline GeoPolyline3
other GeoPolyline3

Returns

GeoPoint3[]

GetIntersections(GeoPolyline3, GeoPolyline3, Tolerance)

Gets every point where two straight chains cross, within a tolerance.

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

Parameters

polyline GeoPolyline3

The first chain.

other GeoPolyline3

The second chain.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Every place they meet, each named once; two segments lying along each other name none.

Remarks

Every pair of segments is asked, so the work grows with the two counts multiplied. Each segment carries a box round itself and a pair whose boxes cannot reach each other is dropped before any arithmetic, and the second chain's boxes are worked out once rather than once per segment.

Exceptions

ArgumentNullException

Thrown when either chain is null.

GetIntersections(GeoRay3, GeoSolid3)

Gets the points where a ray passes through the surface of a solid.

public static GeoPoint3[] GetIntersections(GeoRay3 ray, GeoSolid3 solid)

Parameters

ray GeoRay3
solid GeoSolid3

Returns

GeoPoint3[]

GetIntersections(GeoRay3, GeoSolid3, Tolerance)

Gets the points where a ray passes through the surface of a solid, within a tolerance.

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

Parameters

ray GeoRay3

The ray.

solid GeoSolid3

The solid.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

The crossings in the order the ray meets them, with repeats left out.

Remarks

The surface is walked as triangles, so a crossing that falls on the seam between two of them arrives twice and is reported once, the two within the point tolerance of each other. However small the tolerance, a triangle holds a crossing to the rounding of the coordinates, 1E-15 of the largest of the body's and the ray's origin, on its plane and past its rim; below that rounding, and only there, the two crossings of a seam within eight times it of each other are one, and a ray from further off than the body is large is read from a diagonal short of it, along its line, so that the rounding stays the body's. At a tolerance of nought the ray along the seam of two sides of a cylinder of radius 20, through its axis, is given its two crossings from 60 out and from a hundred million out, where it was given one or none. A ray starting inside the body has an odd number of crossings, and one starting outside an even number, give or take a face it merely grazes. The list is held to CollidesWith(GeoRay3, GeoSolid3, Tolerance), which reads the ray by the point tolerance and the body to a billionth (further out than a million, to 1E-15 of the largest coordinate): a ray starting within the planar tolerance of a face meets it at its origin only where the origin stands within the point tolerance of the surface, whatever it meets further on, and one that collides and crosses no face is given its point nearest the surface, where that stands within the point tolerance of it, to the rounding of numbers the size of the body's, or the body holds the origin. With a point tolerance of a hundredth and a planar one of five hundredths, the ray from 0.04 over the top of the box 100 by 100 by 50, rising a hundredth for each unit along it, is given nothing, where it was given its origin and collided with nothing; the one from 0.04 off the inner wall of a U, across its gap, is given the walls of the far prong only, and the one from 0.04 under the top of the box only where it leaves, where each was given its origin besides; at a tolerance of nought the ray from the middle of a box 100 by 80 by 50 turned about in space is given where it leaves, where the rounding refused the crossing of every face and it collided and was given nothing.

A body far out is asked near the origin, as Locate(GeoSolid3, GeoPoint3, Tolerance) says, and the crossings moved back out, coordinate by coordinate. Where it stood, of 2 080 rays half a hundredth in and out from an L 100 by 80 by 50 a hundred million out, with a pocket up from its floor and a hole down through its other leg, at a hundredth, 9 were given other crossings than at the origin, and of 2 016 a thousand million out, 19; 1 and none are, a ray along the world's Y axis.

GetIntersections(GeoTriangle3, GeoTriangle3)

Gets the points where two triangles cross, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoTriangle3 triangle1, GeoTriangle3 triangle2)

Parameters

triangle1 GeoTriangle3
triangle2 GeoTriangle3

Returns

GeoPoint3[]

Remarks

The triangle with corners (0, 0, 0), (100, 0, 0) and (0, 100, 0) and the upright one with corners (0, 50, -50), (100, 50, -50) and (0, 50, 50) cross at (50, 50, 0) and (0, 50, 0).

GetIntersections(GeoTriangle3, GeoTriangle3, Tolerance)

Gets the points where two triangles cross, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoTriangle3 triangle1, GeoTriangle3 triangle2, Tolerance tolerance)

Parameters

triangle1 GeoTriangle3

The first triangle; its edges are asked first.

triangle2 GeoTriangle3

The second triangle.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Where an edge of either crosses the other, the first triangle's edges first, each place named once; where the two lie in one plane, where their outlines cross, in the order of GetIntersections(GeoTriangle2, GeoTriangle2, Tolerance).

Remarks

The triangle with corners (0, 0, 0), (100, 0, 0) and (0, 100, 0) and the upright one with corners (0, 50, -50), (100, 50, -50) and (0, 50, 50) cross at (50, 50, 0) and (0, 50, 0). A triangle with no area is crossed where its sides are: the sliver with corners (0, 0, 0), (100, 0, 0) and (50, 1E-8, 0) crosses the upright triangle with corners (50, -10, -10), (50, 10, -10) and (50, 0, 10) at (50, 0, 0).

GetIntersections(GeoTriangle3, GeoPolygon3)

Gets the points where a triangle and a polygon cross, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoTriangle3 triangle, GeoPolygon3 polygon)

Parameters

triangle GeoTriangle3
polygon GeoPolygon3

Returns

GeoPoint3[]

Remarks

The triangle with corners (0, 0, 0), (100, 0, 0) and (0, 100, 0) and the square 100 by 100 standing upright across it along y = 50 from z = -50 to 50 cross at (50, 50, 0) and (0, 50, 0).

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetIntersections(GeoTriangle3, GeoPolygon3, Tolerance)

Gets the points where a triangle and a polygon cross, within a tolerance.

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

Parameters

triangle GeoTriangle3

The triangle; its edges are asked first.

polygon GeoPolygon3

The polygon.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Where an edge of either crosses the other, the triangle's edges first, each place named once; where the two lie in one plane, where their outlines cross, in the order of GetIntersections(GeoTriangle2, GeoPolygon2, Tolerance).

Remarks

The triangle with corners (0, 0, 0), (100, 0, 0) and (0, 100, 0) and the square 100 by 100 standing upright across it along y = 50 from z = -50 to 50 cross at (50, 50, 0) and (0, 50, 0).

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetIntersections(GeoTriangle3, GeoFace3)

Gets the points where a triangle and the material of a face cross, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoTriangle3 triangle, GeoFace3 face)

Parameters

triangle GeoTriangle3
face GeoFace3

Returns

GeoPoint3[]

Remarks

A triangle standing upright in the middle of a hole of the face crosses nothing: the square 100 by 100 in the floor with a hole 40 by 40 in its middle, and the triangle with corners (40, 50, -10), (60, 50, -10) and (50, 50, 10), do not meet.

Exceptions

ArgumentNullException

Thrown when the face is null.

GetIntersections(GeoTriangle3, GeoFace3, Tolerance)

Gets the points where a triangle and the material of a face cross, within a tolerance.

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

Parameters

triangle GeoTriangle3

The triangle; its edges are asked first.

face GeoFace3

The face, read by its material.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Where an edge of the triangle crosses the material, then where an edge of the face, outline first and then the rim of each hole, crosses the triangle, each place named once; where the two lie in one plane, where the triangle's outline crosses the face's rims, in the order of GetIntersections(GeoTriangle2, GeoFace2, Tolerance).

Remarks

A triangle standing upright in the middle of a hole of the face crosses nothing: the square 100 by 100 in the floor with a hole 40 by 40 in its middle, and the triangle with corners (40, 50, -10), (60, 50, -10) and (50, 50, 10), do not meet.

Exceptions

ArgumentNullException

Thrown when the face is null.

GetIntersections(GeoPolygon3, GeoPolygon3)

Gets the points where two polygons cross, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoPolygon3 polygon1, GeoPolygon3 polygon2)

Parameters

polygon1 GeoPolygon3
polygon2 GeoPolygon3

Returns

GeoPoint3[]

Remarks

A square 100 by 100 lying in the floor with a corner at the origin, and one standing upright across it along y = 50 from z = -50 to 50, cross at (100, 50, 0) and (0, 50, 0).

Exceptions

ArgumentNullException

Thrown when either polygon is null.

GetIntersections(GeoPolygon3, GeoPolygon3, Tolerance)

Gets the points where two polygons cross, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoPolygon3 polygon1, GeoPolygon3 polygon2, Tolerance tolerance)

Parameters

polygon1 GeoPolygon3

The first polygon; its edges are asked first.

polygon2 GeoPolygon3

The second polygon.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Where an edge of either crosses the other, the first polygon's edges first, each place named once; where the two lie in one plane, where their outlines cross, in the order of GetIntersections(GeoPolygon2, GeoPolygon2, Tolerance).

Remarks

A square 100 by 100 lying in the floor with a corner at the origin, and one standing upright across it along y = 50 from z = -50 to 50, cross at (100, 50, 0) and (0, 50, 0). Two squares 100 by 100 in the floor, the second moved 50 along X and 50 along Y, cross at (100, 50, 0) and (50, 100, 0).

Exceptions

ArgumentNullException

Thrown when either polygon is null.

GetIntersections(GeoFace3, GeoPolygon3)

Gets the points where the material of a face and a polygon cross, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoFace3 face, GeoPolygon3 polygon)

Parameters

face GeoFace3
polygon GeoPolygon3

Returns

GeoPoint3[]

Remarks

The square 100 by 100 in the floor with a hole 40 by 40 in its middle, and a square 100 by 100 standing upright across it along y = 50 from z = -50 to 50, cross where the material ends: (100, 50, 0), (0, 50, 0), (70, 50, 0) and (30, 50, 0).

Exceptions

ArgumentNullException

Thrown when the face or the polygon is null.

GetIntersections(GeoFace3, GeoPolygon3, Tolerance)

Gets the points where the material of a face and a polygon cross, within a tolerance.

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

Parameters

face GeoFace3

The face, read by its material; its edges are asked first, outline and then holes.

polygon GeoPolygon3

The polygon.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Where an edge of the face crosses the polygon, then where an edge of the polygon crosses the material, each place named once; where the two lie in one plane, where the polygon's outline crosses the face's rims, in the order of GetIntersections(GeoFace2, GeoPolygon2, Tolerance).

Remarks

The square 100 by 100 in the floor with a hole 40 by 40 in its middle, and a square 100 by 100 standing upright across it along y = 50 from z = -50 to 50, cross where the material ends: (100, 50, 0), (0, 50, 0), (70, 50, 0) and (30, 50, 0).

Exceptions

ArgumentNullException

Thrown when the face or the polygon is null.

GetIntersections(GeoFace3, GeoFace3)

Gets the points where the materials of two faces cross, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoFace3 face1, GeoFace3 face2)

Parameters

face1 GeoFace3
face2 GeoFace3

Returns

GeoPoint3[]

Remarks

The square 100 by 100 in the floor with a hole 40 by 40 in its middle, and a square 100 by 100 standing upright across it along y = 50 from z = -50 to 50 with a hole 40 by 40 in its middle, cross where both materials end: (100, 50, 0), (0, 50, 0), (70, 50, 0) and (30, 50, 0). A face standing wholly in the hole crosses nothing.

Exceptions

ArgumentNullException

Thrown when either face is null.

GetIntersections(GeoFace3, GeoFace3, Tolerance)

Gets the points where the materials of two faces cross, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoFace3 face1, GeoFace3 face2, Tolerance tolerance)

Parameters

face1 GeoFace3

The first face, read by its material; its edges are asked first, outline and then holes.

face2 GeoFace3

The second face, read by its material.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Where an edge of either crosses the other's material, the first face's edges first, each place named once; where the two lie in one plane, where their rims cross, in the order of GetIntersections(GeoFace2, GeoFace2, Tolerance).

Remarks

The square 100 by 100 in the floor with a hole 40 by 40 in its middle, and a square 100 by 100 standing upright across it along y = 50 from z = -50 to 50 with a hole 40 by 40 in its middle, cross where both materials end: (100, 50, 0), (0, 50, 0), (70, 50, 0) and (30, 50, 0). A face standing wholly in the hole crosses nothing.

Exceptions

ArgumentNullException

Thrown when either face is null.

GetIntersections(GeoPlane3, GeoTriangle3)

Gets the points where the edges of a triangle cross a plane, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoPlane3 plane, GeoTriangle3 triangle)

Parameters

plane GeoPlane3
triangle GeoTriangle3

Returns

GeoPoint3[]

Remarks

The floor plane and the triangle with corners (0, 50, -50), (100, 50, -50) and (0, 50, 50) cross at (50, 50, 0) and (0, 50, 0). A triangle lying in the plane crosses it nowhere.

GetIntersections(GeoPlane3, GeoTriangle3, Tolerance)

Gets the points where the edges of a triangle cross a plane, within a tolerance.

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

Parameters

plane GeoPlane3

The plane.

triangle GeoTriangle3

The triangle.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Where each edge crosses the plane, edge by edge from A to B, each place named once. A triangle lying in the plane within the planar tolerance crosses it nowhere and gives none, which CollidesWith(GeoPlane3, GeoTriangle3, Tolerance) reports instead.

Remarks

The floor plane and the triangle with corners (0, 50, -50), (100, 50, -50) and (0, 50, 50) cross at (50, 50, 0) and (0, 50, 0).

GetIntersections(GeoPlane3, GeoPolygon3)

Gets the points where the edges of a polygon cross a plane, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoPlane3 plane, GeoPolygon3 polygon)

Parameters

plane GeoPlane3
polygon GeoPolygon3

Returns

GeoPoint3[]

Remarks

The floor plane and a square 100 by 100 standing upright along y = 50 from z = -50 to 50 cross at (100, 50, 0) and (0, 50, 0). A polygon lying in the plane crosses it nowhere.

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetIntersections(GeoPlane3, GeoPolygon3, Tolerance)

Gets the points where the edges of a polygon cross a plane, within a tolerance.

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

Parameters

plane GeoPlane3

The plane.

polygon GeoPolygon3

The polygon.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Where each edge crosses the plane, edge by edge in order round the polygon, each place named once, as a straight chain is read. A polygon lying in the plane within the planar tolerance crosses it nowhere and gives none, which CollidesWith(GeoPlane3, GeoPolygon3, Tolerance) reports instead.

Remarks

The floor plane and a square 100 by 100 standing upright along y = 50 from z = -50 to 50 cross at (100, 50, 0) and (0, 50, 0).

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetIntersections(GeoPlane3, GeoFace3)

Gets the points where the edges of a face, outline and holes, cross a plane, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoPlane3 plane, GeoFace3 face)

Parameters

plane GeoPlane3
face GeoFace3

Returns

GeoPoint3[]

Remarks

The floor plane and the square 100 by 100 with a hole 40 by 40 in its middle, stood upright along y = 50 from z = -50 to 50, cross at (100, 50, 0) and (0, 50, 0) on the outline and at (70, 50, 0) and (30, 50, 0) on the rim of the hole.

Exceptions

ArgumentNullException

Thrown when the face is null.

GetIntersections(GeoPlane3, GeoFace3, Tolerance)

Gets the points where the edges of a face, outline and holes, cross a plane, within a tolerance.

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

Parameters

plane GeoPlane3

The plane.

face GeoFace3

The face.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Where each edge crosses the plane, the outline first and then the rim of each hole, edge by edge in order round each, each place named once. A face lying in the plane within the planar tolerance crosses it nowhere and gives none, which CollidesWith(GeoPlane3, GeoFace3, Tolerance) reports instead.

Remarks

The floor plane and the square 100 by 100 with a hole 40 by 40 in its middle, stood upright along y = 50 from z = -50 to 50, cross at (100, 50, 0) and (0, 50, 0) on the outline and at (70, 50, 0) and (30, 50, 0) on the rim of the hole.

Exceptions

ArgumentNullException

Thrown when the face is null.

GetIntersections(GeoRay3, GeoPlane3)

Gets where a ray crosses a plane, as a list, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoRay3 ray, GeoPlane3 plane)

Parameters

ray GeoRay3
plane GeoPlane3

Returns

GeoPoint3[]

Remarks

A ray from (0, 0, 10) pointing straight down crosses the floor plane at the origin; one lying in the floor crosses it nowhere.

GetIntersections(GeoRay3, GeoPlane3, Tolerance)

Gets where a ray crosses a plane, as a list, within a tolerance.

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

Parameters

ray GeoRay3

The ray.

plane GeoPlane3

The plane.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

The one point of TryIntersectWith(GeoRay3, GeoPlane3, out GeoPoint3, Tolerance), or nothing. A ray lying in the plane crosses it nowhere and gives none, which CollidesWith(GeoRay3, GeoPlane3, Tolerance) reports instead.

Remarks

A ray from (0, 0, 10) pointing straight down crosses the floor plane at the origin.

GetIntersections(GeoRay3, GeoTriangle3)

Gets where a ray crosses a triangle, as a list, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoRay3 ray, GeoTriangle3 triangle)

Parameters

ray GeoRay3
triangle GeoTriangle3

Returns

GeoPoint3[]

Remarks

A ray from (20, 20, 10) pointing straight down crosses the triangle with corners (0, 0, 0), (100, 0, 0) and (0, 100, 0) at (20, 20, 0).

GetIntersections(GeoRay3, GeoTriangle3, Tolerance)

Gets where a ray crosses a triangle, as a list, within a tolerance.

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

Parameters

ray GeoRay3

The ray.

triangle GeoTriangle3

The triangle.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

One point or nothing, and TryIntersectWith(GeoRay3, GeoTriangle3, out GeoPoint3, Tolerance) gives the same point, true exactly where this gives one. The ray is read as the line without ends along it, by how far that line climbs across the triangle, and is given what the line meets at its origin or ahead of it: the crossing, the point of a touch nearest the triangle, or none where the line lies level over the material within the planar tolerance of the triangle's plane. Where the line meets the triangle only behind the origin, or lies level over it only behind a ray running away from it, a ray whose origin touches it is given its origin. A point is given exactly where CollidesWith(GeoRay3, GeoTriangle3, Tolerance) says the two touch, but where the ray holds more than the point tolerance of a part of its line lying level over the triangle.

Remarks

A ray from (20, 20, 10) pointing straight down crosses the triangle with corners (0, 0, 0), (100, 0, 0) and (0, 100, 0) at (20, 20, 0). The ray from (50, -0.0006, 0.0003) along (1, -0.01, 0), 0.00067 from the triangle and running away from it, touches it at its origin, where it collided and was given nothing.

GetIntersections(GeoRay3, GeoPolygon3)

Gets where a ray crosses a polygon, as a list, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoRay3 ray, GeoPolygon3 polygon)

Parameters

ray GeoRay3
polygon GeoPolygon3

Returns

GeoPoint3[]

Remarks

A ray from (20, 20, 10) pointing straight down crosses the square 100 by 100 in the floor with a corner at the origin at (20, 20, 0).

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetIntersections(GeoRay3, GeoPolygon3, Tolerance)

Gets where a ray crosses a polygon, as a list, within a tolerance.

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

Parameters

ray GeoRay3

The ray.

polygon GeoPolygon3

The polygon.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

One point or nothing, and TryIntersectWith(GeoRay3, GeoPolygon3, out GeoPoint3, Tolerance) gives the same point, true exactly where this gives one. The ray is read as the line without ends along it, by how far that line climbs across the polygon, and is given what the line meets at its origin or ahead of it: the crossing, the point of a touch nearest the polygon, or none where the line lies level over the material within the planar tolerance of the polygon's plane. Where the line meets the polygon only behind the origin, or lies level over it only behind a ray running away from it, a ray whose origin touches it is given its origin. A point is given exactly where CollidesWith(GeoRay3, GeoPolygon3, Tolerance) says the two touch, but where the ray holds more than the point tolerance of a part of its line lying level over the polygon.

Remarks

A ray from (20, 20, 10) pointing straight down crosses the square 100 by 100 in the floor with a corner at the origin at (20, 20, 0). The ray from (50, -0.0006, 0.0003) along (1, -0.01, 0), 0.00067 from the square and running away from it, touches it at its origin, where it collided and was given nothing.

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetIntersections(GeoRay3, GeoFace3)

Gets where a ray crosses the material of a face, as a list, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoRay3 ray, GeoFace3 face)

Parameters

ray GeoRay3
face GeoFace3

Returns

GeoPoint3[]

Remarks

A ray from (50, 50, 10) pointing straight down passes through the hole 40 by 40 in the middle of the square 100 by 100 in the floor and crosses nothing; from (20, 20, 10) it crosses the material at (20, 20, 0).

Exceptions

ArgumentNullException

Thrown when the face is null.

GetIntersections(GeoRay3, GeoFace3, Tolerance)

Gets where a ray crosses the material of a face, as a list, within a tolerance.

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

Parameters

ray GeoRay3

The ray.

face GeoFace3

The face, read by its material.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

One point or nothing, and TryIntersectWith(GeoRay3, GeoFace3, out GeoPoint3, Tolerance) gives the same point, true exactly where this gives one. The ray is read as the line without ends along it, by how far that line climbs across the face, and is given what the line meets at its origin or ahead of it: the crossing, the point of a touch nearest the face, or none where the line lies level over the material within the planar tolerance of the face's plane. Where the line meets the face only behind the origin, or lies level over it only behind a ray running away from it, a ray whose origin touches it is given its origin. A point is given exactly where CollidesWith(GeoRay3, GeoFace3, Tolerance) says the two touch, but where the ray holds more than the point tolerance of a part of its line lying level over the material.

Remarks

A ray from (50, 50, 10) pointing straight down passes through the hole 40 by 40 in the middle of the square 100 by 100 in the floor and crosses nothing; from (20, 20, 10) it crosses the material at (20, 20, 0). The ray from (50, -0.0006, 0.0003) along (1, -0.01, 0), 0.00067 from the square and running away from it, touches it at its origin, where it collided and was given nothing.

Exceptions

ArgumentNullException

Thrown when the face is null.

GetIntersections(GeoRay3, GeoRay3)

Gets where two rays cross, as a list, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoRay3 ray1, GeoRay3 ray2)

Parameters

ray1 GeoRay3
ray2 GeoRay3

Returns

GeoPoint3[]

Remarks

A ray from the origin along X and one from (50, -50, 0) along Y cross at (50, 0, 0). Two rays along one line meet along a length and name no place.

GetIntersections(GeoRay3, GeoRay3, Tolerance)

Gets where two rays cross, as a list, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoRay3 ray1, GeoRay3 ray2, Tolerance tolerance)

Parameters

ray1 GeoRay3

The first ray.

ray2 GeoRay3

The second ray.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

The one place they cross, or nothing: two rays that miss each other name no place, and nor do two lying along one line, which meet along a length, as two segments lying along each other name none.

Remarks

This is the reading two segments get (TryIntersectWith(GeoLine3, GeoLine3, out GeoPoint3, Tolerance)): the rays cross where the shortest line between them is no longer than the point tolerance, and the place named is the middle of that line. A ray runs on without end, so it draws away from another at any angle but none, and only rays parallel within rounding are read as lying along each other. A ray from the origin along X and one from (50, -50, 0) along Y cross at (50, 0, 0); one from (0, -1, 0) half a degree off X crosses the first at (114.59, 0, 0); one from (50, 10, 0) along Y misses it and names nothing.

GetIntersections(GeoLine3, GeoLine3)

Gets where two segments cross, as a list.

public static GeoPoint3[] GetIntersections(GeoLine3 line1, GeoLine3 line2)

Parameters

line1 GeoLine3
line2 GeoLine3

Returns

GeoPoint3[]

GetIntersections(GeoLine3, GeoLine3, Tolerance)

Gets where two segments cross, as a list, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoLine3 line1, GeoLine3 line2, Tolerance tolerance)

Parameters

line1 GeoLine3

The first segment.

line2 GeoLine3

The second segment.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

The one place they cross, or nothing: two segments that miss each other, that are skew, or that lie along each other all name no place.

GetIntersections(GeoLine3, GeoRay3)

Gets where a segment crosses a ray.

public static GeoPoint3[] GetIntersections(GeoLine3 line, GeoRay3 ray)

Parameters

line GeoLine3
ray GeoRay3

Returns

GeoPoint3[]

GetIntersections(GeoLine3, GeoRay3, Tolerance)

Gets where a segment crosses a ray, within a tolerance.

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

Parameters

line GeoLine3

The segment.

ray GeoRay3

The ray.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

The one place they cross, or nothing.

Remarks

Two lines in space usually miss each other altogether, so the question is answered by the shortest line between the two: they cross where that line has no length, and the reach of each piece is already built into it. A segment lying along the ray meets it along a length and names no place.

A ray is a value type and cannot be refused for being absent, so a ray with no direction is read as its own origin and nothing more: the question becomes whether the segment holds that point.

A segment no longer than the point tolerance is read as its start where it does not truly cross the ray: at a thousandth, the segment from (5, 0, 0.0004) to (5, 0, -0.0005) crosses the ray from the origin along X at (5, 0, 0), the one from (5, 0, 0.0008) to (5, 0, 0.0002) meets it at its start, and the one from (5, 0, 0.0015) to (5, 0, 0.0006) meets it nowhere, where it was given (5, 0, 0). A longer one is measured along itself as it is whatever the global tolerance: at a billionth, the segment from (5, 0, 0.0004) to (5, 0, -0.0005), shorter than the global thousandth, crosses the ray at (5, 0, 0), where it was given nothing.

GetIntersections(GeoRay3, GeoLine3)

Gets where a ray crosses a segment.

public static GeoPoint3[] GetIntersections(GeoRay3 ray, GeoLine3 line)

Parameters

ray GeoRay3
line GeoLine3

Returns

GeoPoint3[]

GetIntersections(GeoRay3, GeoLine3, Tolerance)

Gets where a ray crosses a segment, within a tolerance.

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

Parameters

ray GeoRay3

The ray.

line GeoLine3

The segment.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

The one place they cross, or nothing.