Table of Contents

Method TryIntersectWith

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

TryIntersectWith(GeoTriangle3, GeoSolid3, out GeoPoint3[])

Tries to find where a triangle and the surface of a solid cross, using the default tolerance.

public static bool TryIntersectWith(GeoTriangle3 triangle, GeoSolid3 solid, out GeoPoint3[] intersections)

Parameters

triangle GeoTriangle3
solid GeoSolid3
intersections GeoPoint3[]

Returns

bool

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 four points.

Exceptions

ArgumentNullException

Thrown when the solid is null.

TryIntersectWith(GeoTriangle3, GeoSolid3, out GeoPoint3[], Tolerance)

Tries to find where a triangle and the surface of a solid cross, within a tolerance.

public static bool TryIntersectWith(GeoTriangle3 triangle, GeoSolid3 solid, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

triangle GeoTriangle3

The triangle.

solid GeoSolid3

The solid.

intersections GeoPoint3[]

The points of GetIntersections(GeoTriangle3, GeoSolid3, Tolerance), in the same order; empty when there are none.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross anywhere; otherwise, false.

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 four points; a triangle wholly inside the box crosses nothing, and the answer is false.

Exceptions

ArgumentNullException

Thrown when the solid is null.

TryIntersectWith(GeoPolygon3, GeoSolid3, out GeoPoint3[])

Tries to find where a polygon and the surface of a solid cross, using the default tolerance.

public static bool TryIntersectWith(GeoPolygon3 polygon, GeoSolid3 solid, out GeoPoint3[] intersections)

Parameters

polygon GeoPolygon3
solid GeoSolid3
intersections GeoPoint3[]

Returns

bool

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 four points.

Exceptions

ArgumentNullException

Thrown when the polygon or the solid is null.

TryIntersectWith(GeoPolygon3, GeoSolid3, out GeoPoint3[], Tolerance)

Tries to find where a polygon and the surface of a solid cross, within a tolerance.

public static bool TryIntersectWith(GeoPolygon3 polygon, GeoSolid3 solid, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

polygon GeoPolygon3

The polygon.

solid GeoSolid3

The solid.

intersections GeoPoint3[]

The points of GetIntersections(GeoPolygon3, GeoSolid3, Tolerance), in the same order; empty when there are none.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross anywhere; otherwise, false.

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 four points; a square wholly inside the box crosses nothing, and the answer is false.

Exceptions

ArgumentNullException

Thrown when the polygon or the solid is null.

TryIntersectWith(GeoFace3, GeoSolid3, out GeoPoint3[])

Tries to find where the material of a face and the surface of a solid cross, using the default tolerance.

public static bool TryIntersectWith(GeoFace3 face, GeoSolid3 solid, out GeoPoint3[] intersections)

Parameters

face GeoFace3
solid GeoSolid3
intersections GeoPoint3[]

Returns

bool

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, and the answer is false.

Exceptions

ArgumentNullException

Thrown when the face or the solid is null.

TryIntersectWith(GeoFace3, GeoSolid3, out GeoPoint3[], Tolerance)

Tries to find where the material of a face and the surface of a solid cross, within a tolerance.

public static bool TryIntersectWith(GeoFace3 face, GeoSolid3 solid, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

face GeoFace3

The face.

solid GeoSolid3

The solid.

intersections GeoPoint3[]

The points of GetIntersections(GeoFace3, GeoSolid3, Tolerance), in the same order; empty when there are none.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross anywhere; otherwise, false.

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, and the answer is false.

Exceptions

ArgumentNullException

Thrown when the face or the solid is null.

TryIntersectWith(GeoTriangle3, GeoObb3, out GeoPoint3[])

Tries to find where a triangle and the surface of an oriented box cross, using the default tolerance.

public static bool TryIntersectWith(GeoTriangle3 triangle, GeoObb3 box, out GeoPoint3[] intersections)

Parameters

triangle GeoTriangle3
box GeoObb3
intersections GeoPoint3[]

Returns

bool

Remarks

The answer of TryIntersectWith(GeoTriangle3, GeoSolid3, out GeoPoint3[], Tolerance) for ToSolid(): a triangle wholly inside the box crosses nothing, and the answer is false. 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: 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 two points, and the answer is true.

Exceptions

ArgumentNullException

Thrown when the box is null.

TryIntersectWith(GeoTriangle3, GeoObb3, out GeoPoint3[], Tolerance)

Tries to find where a triangle and the surface of an oriented box cross, within a tolerance.

public static bool TryIntersectWith(GeoTriangle3 triangle, GeoObb3 box, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

triangle GeoTriangle3
box GeoObb3
intersections GeoPoint3[]
tolerance Tolerance

Returns

bool

Remarks

The answer of TryIntersectWith(GeoTriangle3, GeoSolid3, out GeoPoint3[], Tolerance) for ToSolid(): a triangle wholly inside the box crosses nothing, and the answer is false. 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: 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 two points, and the answer is true.

Exceptions

ArgumentNullException

Thrown when the box is null.

TryIntersectWith(GeoTriangle3, GeoAabb3, out GeoPoint3[])

Tries to find where a triangle and the surface of an axis-aligned box cross, using the default tolerance.

public static bool TryIntersectWith(GeoTriangle3 triangle, GeoAabb3 box, out GeoPoint3[] intersections)

Parameters

triangle GeoTriangle3
box GeoAabb3
intersections GeoPoint3[]

Returns

bool

Remarks

The answer of TryIntersectWith(GeoTriangle3, GeoSolid3, out GeoPoint3[], Tolerance) for ToObb().ToSolid(): a triangle wholly inside the box crosses nothing, and the answer is false. 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: 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 two points, and the answer is true. An empty box is crossed nowhere, and the answer is false.

TryIntersectWith(GeoTriangle3, GeoAabb3, out GeoPoint3[], Tolerance)

Tries to find where a triangle and the surface of an axis-aligned box cross, within a tolerance.

public static bool TryIntersectWith(GeoTriangle3 triangle, GeoAabb3 box, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

triangle GeoTriangle3
box GeoAabb3
intersections GeoPoint3[]
tolerance Tolerance

Returns

bool

Remarks

The answer of TryIntersectWith(GeoTriangle3, GeoSolid3, out GeoPoint3[], Tolerance) for ToObb().ToSolid(): a triangle wholly inside the box crosses nothing, and the answer is false. 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: 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 two points, and the answer is true. An empty box is crossed nowhere, and the answer is false.

TryIntersectWith(GeoPolygon3, GeoObb3, out GeoPoint3[])

Tries to find where a polygon and the surface of an oriented box cross, using the default tolerance.

public static bool TryIntersectWith(GeoPolygon3 polygon, GeoObb3 box, out GeoPoint3[] intersections)

Parameters

polygon GeoPolygon3
box GeoObb3
intersections GeoPoint3[]

Returns

bool

Remarks

The answer of TryIntersectWith(GeoPolygon3, GeoSolid3, out GeoPoint3[], Tolerance) for ToSolid(): a square wholly inside the box crosses nothing, and the answer is false. 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: 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 two points, and the answer is true.

Exceptions

ArgumentNullException

Thrown when the polygon or the box is null.

TryIntersectWith(GeoPolygon3, GeoObb3, out GeoPoint3[], Tolerance)

Tries to find where a polygon and the surface of an oriented box cross, within a tolerance.

public static bool TryIntersectWith(GeoPolygon3 polygon, GeoObb3 box, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

polygon GeoPolygon3
box GeoObb3
intersections GeoPoint3[]
tolerance Tolerance

Returns

bool

Remarks

The answer of TryIntersectWith(GeoPolygon3, GeoSolid3, out GeoPoint3[], Tolerance) for ToSolid(): a square wholly inside the box crosses nothing, and the answer is false. 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: 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 two points, and the answer is true.

Exceptions

ArgumentNullException

Thrown when the polygon or the box is null.

TryIntersectWith(GeoPolygon3, GeoAabb3, out GeoPoint3[])

Tries to find where a polygon and the surface of an axis-aligned box cross, using the default tolerance.

public static bool TryIntersectWith(GeoPolygon3 polygon, GeoAabb3 box, out GeoPoint3[] intersections)

Parameters

polygon GeoPolygon3
box GeoAabb3
intersections GeoPoint3[]

Returns

bool

Remarks

The answer of TryIntersectWith(GeoPolygon3, GeoSolid3, out GeoPoint3[], Tolerance) for ToObb().ToSolid(): a square wholly inside the box crosses nothing, and the answer is false. 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: 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 two points, and the answer is true. An empty box is crossed nowhere, and the answer is false.

Exceptions

ArgumentNullException

Thrown when the polygon is null.

TryIntersectWith(GeoPolygon3, GeoAabb3, out GeoPoint3[], Tolerance)

Tries to find where a polygon and the surface of an axis-aligned box cross, within a tolerance.

public static bool TryIntersectWith(GeoPolygon3 polygon, GeoAabb3 box, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

polygon GeoPolygon3
box GeoAabb3
intersections GeoPoint3[]
tolerance Tolerance

Returns

bool

Remarks

The answer of TryIntersectWith(GeoPolygon3, GeoSolid3, out GeoPoint3[], Tolerance) for ToObb().ToSolid(): a square wholly inside the box crosses nothing, and the answer is false. 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: 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 two points, and the answer is true. An empty box is crossed nowhere, and the answer is false.

Exceptions

ArgumentNullException

Thrown when the polygon is null.

TryIntersectWith(GeoFace3, GeoObb3, out GeoPoint3[])

Tries to find where the material of a face and the surface of an oriented box cross, using the default tolerance.

public static bool TryIntersectWith(GeoFace3 face, GeoObb3 box, out GeoPoint3[] intersections)

Parameters

face GeoFace3
box GeoObb3
intersections GeoPoint3[]

Returns

bool

Remarks

The answer of TryIntersectWith(GeoFace3, GeoSolid3, out GeoPoint3[], Tolerance) for ToSolid(): a face around the box with a hole it passes through crosses nothing, and the answer is false. 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: 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 four points, and the answer is true.

Exceptions

ArgumentNullException

Thrown when the face or the box is null.

TryIntersectWith(GeoFace3, GeoObb3, out GeoPoint3[], Tolerance)

Tries to find where the material of a face and the surface of an oriented box cross, within a tolerance.

public static bool TryIntersectWith(GeoFace3 face, GeoObb3 box, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

face GeoFace3
box GeoObb3
intersections GeoPoint3[]
tolerance Tolerance

Returns

bool

Remarks

The answer of TryIntersectWith(GeoFace3, GeoSolid3, out GeoPoint3[], Tolerance) for ToSolid(): a face around the box with a hole it passes through crosses nothing, and the answer is false. 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: 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 four points, and the answer is true.

Exceptions

ArgumentNullException

Thrown when the face or the box is null.

TryIntersectWith(GeoFace3, GeoAabb3, out GeoPoint3[])

Tries to find where the material of a face and the surface of an axis-aligned box cross, using the default tolerance.

public static bool TryIntersectWith(GeoFace3 face, GeoAabb3 box, out GeoPoint3[] intersections)

Parameters

face GeoFace3
box GeoAabb3
intersections GeoPoint3[]

Returns

bool

Remarks

The answer of TryIntersectWith(GeoFace3, GeoSolid3, out GeoPoint3[], Tolerance) for ToObb().ToSolid(): a face around the box with a hole it passes through crosses nothing, and the answer is false. 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: 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 four points, and the answer is true. An empty box is crossed nowhere, and the answer is false.

Exceptions

ArgumentNullException

Thrown when the face is null.

TryIntersectWith(GeoFace3, GeoAabb3, out GeoPoint3[], Tolerance)

Tries to find where the material of a face and the surface of an axis-aligned box cross, within a tolerance.

public static bool TryIntersectWith(GeoFace3 face, GeoAabb3 box, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

face GeoFace3
box GeoAabb3
intersections GeoPoint3[]
tolerance Tolerance

Returns

bool

Remarks

The answer of TryIntersectWith(GeoFace3, GeoSolid3, out GeoPoint3[], Tolerance) for ToObb().ToSolid(): a face around the box with a hole it passes through crosses nothing, and the answer is false. 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: 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 four points, and the answer is true. An empty box is crossed nowhere, and the answer is false.

Exceptions

ArgumentNullException

Thrown when the face is null.

TryIntersectWith(GeoPlane3, GeoObb3, out GeoPoint3[])

Tries to find where a plane cuts the edges of an oriented box, using the default tolerance.

public static bool TryIntersectWith(GeoPlane3 plane, GeoObb3 box, out GeoPoint3[] intersections)

Parameters

plane GeoPlane3
box GeoObb3
intersections GeoPoint3[]

Returns

bool

Remarks

The plane z = 50 cuts a box 100 by 100 by 100 standing on the floor at four points; the plane z = 150 misses it, and the answer is false. 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: the box 100 by 100 by 0 about (50, 50, 0) and the plane x = 30 cross at two points, and the answer is true.

Exceptions

ArgumentNullException

Thrown when the box is null.

TryIntersectWith(GeoPlane3, GeoObb3, out GeoPoint3[], Tolerance)

Tries to find where a plane cuts the edges of an oriented box, within a tolerance.

public static bool TryIntersectWith(GeoPlane3 plane, GeoObb3 box, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

plane GeoPlane3

The plane.

box GeoObb3

The box.

intersections GeoPoint3[]

The points of GetIntersections(GeoPlane3, GeoObb3, Tolerance), in the same order; empty when there are none.

tolerance Tolerance

The tolerance.

Returns

bool

true when the plane cuts an edge anywhere; otherwise, false.

Remarks

The plane z = 50 cuts a box 100 by 100 by 100 standing on the floor at four points; the plane z = 150 misses it, and the answer is false. 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: the box 100 by 100 by 0 about (50, 50, 0) and the plane x = 30 cross at two points, and the answer is true.

Exceptions

ArgumentNullException

Thrown when the box is null.

TryIntersectWith(GeoPlane3, GeoAabb3, out GeoPoint3[])

Tries to find where a plane cuts the edges of an axis-aligned box, using the default tolerance.

public static bool TryIntersectWith(GeoPlane3 plane, GeoAabb3 box, out GeoPoint3[] intersections)

Parameters

plane GeoPlane3
box GeoAabb3
intersections GeoPoint3[]

Returns

bool

Remarks

The plane z = 50 cuts the box from the origin to (100, 100, 100) at four points; the plane z = 150 misses it, and the answer is false. 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: the box from the origin to (100, 100, 0) and the plane x = 30 cross at two points, and the answer is true. An empty box is crossed nowhere, and the answer is false.

TryIntersectWith(GeoPlane3, GeoAabb3, out GeoPoint3[], Tolerance)

Tries to find where a plane cuts the edges of an axis-aligned box, within a tolerance.

public static bool TryIntersectWith(GeoPlane3 plane, GeoAabb3 box, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

plane GeoPlane3

The plane.

box GeoAabb3

The box.

intersections GeoPoint3[]

The points of GetIntersections(GeoPlane3, GeoAabb3, Tolerance), in the same order; empty when there are none.

tolerance Tolerance

The tolerance.

Returns

bool

true when the plane cuts an edge anywhere; otherwise, false.

Remarks

The plane z = 50 cuts the box from the origin to (100, 100, 100) at four points; the plane z = 150 misses it, and the answer is false. 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: the box from the origin to (100, 100, 0) and the plane x = 30 cross at two points, and the answer is true. An empty box is crossed nowhere, and the answer is false.

TryIntersectWith(GeoLine3, GeoLine3, out GeoPoint3)

Tries to find the point where two line segments meet, using the default tolerance.

public static bool TryIntersectWith(GeoLine3 line1, GeoLine3 line2, out GeoPoint3 intersection)

Parameters

line1 GeoLine3
line2 GeoLine3
intersection GeoPoint3

Returns

bool

TryIntersectWith(GeoLine3, GeoLine3, out GeoPoint3, Tolerance)

Tries to find the point where two line segments meet, within a tolerance.

public static bool TryIntersectWith(GeoLine3 line1, GeoLine3 line2, out GeoPoint3 intersection, Tolerance tolerance)

Parameters

line1 GeoLine3

The first segment.

line2 GeoLine3

The second segment.

intersection GeoPoint3

The crossing point when the method returns true.

tolerance Tolerance

The tolerance.

Returns

bool

true if the segments meet at a single point; otherwise, false.

Remarks

Two segments in space usually pass each other without meeting, so this asks for the closest approach and accepts it only when the gap is within tolerance. Parallel segments are refused even when they overlap, matching the 2D behaviour: a shared stretch is not a point.

A segment no longer than the point tolerance is read as its start where it does not truly cross the other: at a thousandth, the segment from (5, 0, 0.0004) to (5, 0, -0.0005) meets the one from the origin to (10, 0, 0) at (5, 0, 0), where it crosses it; the one from (5, 0, 0.0008) to (5, 0, 0.0002) meets it at its start, which lies within the tolerance of it; and the one from (5, 0, 0.0015) to (5, 0, 0.0006) meets it nowhere, its start 0.0015 off, where its end was read within the tolerance of it. One shorter than the vector tolerance crosses where it truly does too: the segment from (5, 0, 0.000004) to (5, 0, -0.000004) meets it at (5, 0, 0), where it was given its start, too short for the vector tolerance to read a direction in.

TryIntersectWith(GeoLine3, GeoLine3, LineExtension, out GeoPoint3)

Tries to find the point where two line segments meet, reading either or both as the infinite line carrying it, using the default tolerance.

public static bool TryIntersectWith(GeoLine3 line1, GeoLine3 line2, LineExtension extension, out GeoPoint3 intersection)

Parameters

line1 GeoLine3
line2 GeoLine3
extension LineExtension
intersection GeoPoint3

Returns

bool

TryIntersectWith(GeoLine3, GeoLine3, LineExtension, out GeoPoint3, Tolerance)

Tries to find the point where two line segments meet, reading either or both as the infinite line carrying it, within a tolerance.

public static bool TryIntersectWith(GeoLine3 line1, GeoLine3 line2, LineExtension extension, out GeoPoint3 intersection, Tolerance tolerance)

Parameters

line1 GeoLine3

The first segment.

line2 GeoLine3

The second segment.

extension LineExtension

Which of the two may be reached past its endpoints.

intersection GeoPoint3

The crossing point when the method returns true.

tolerance Tolerance

The tolerance.

Returns

bool

true if the lines meet at a single point within the reach allowed; otherwise, false.

Remarks

As without an extension, the lines must actually meet: the gap at their closest approach must be within tolerance. Two axes that pass each other in space do not meet however far they are extended; GetShortestLineTo(GeoLine3, GeoLine3, LineExtension, Tolerance) gives the segment bridging them. Parallel lines are refused.

Exceptions

ArgumentOutOfRangeException

Thrown when the extension is not a defined value.

TryIntersectWith(GeoLine3, GeoPlane3, out GeoPoint3)

Tries to find the point where a line segment crosses a plane, using the default tolerance.

public static bool TryIntersectWith(GeoLine3 line, GeoPlane3 plane, out GeoPoint3 intersection)

Parameters

line GeoLine3
plane GeoPlane3
intersection GeoPoint3

Returns

bool

TryIntersectWith(GeoLine3, GeoPlane3, out GeoPoint3, Tolerance)

Tries to find the point where a line segment crosses a plane, within a tolerance.

public static bool TryIntersectWith(GeoLine3 line, GeoPlane3 plane, out GeoPoint3 intersection, Tolerance tolerance)

Parameters

line GeoLine3
plane GeoPlane3
intersection GeoPoint3
tolerance Tolerance

Returns

bool

Remarks

A segment running parallel to the plane is refused whether it lies in the plane or beside it: in the first case every one of its points is a crossing, in the second none is, and neither gives the single point this method promises. A segment no longer than the point tolerance is read as its start where it does not truly cross the plane: at a thousandth, the segment from (5, 5, 0.0004) to (5, 5, -0.0005) crosses the floor at (5, 5, 0), the one from (5, 5, 0.0008) to (5, 5, 0.0002) meets it at its start, within the planar tolerance of it, and the one from (5, 5, 0.0015) to (5, 5, 0.0006) meets it nowhere.

TryIntersectWith(GeoRay3, GeoPlane3, out GeoPoint3)

Tries to find the point where a ray crosses a plane, using the default tolerance.

public static bool TryIntersectWith(GeoRay3 ray, GeoPlane3 plane, out GeoPoint3 intersection)

Parameters

ray GeoRay3
plane GeoPlane3
intersection GeoPoint3

Returns

bool

TryIntersectWith(GeoRay3, GeoPlane3, out GeoPoint3, Tolerance)

Tries to find the point where a ray crosses a plane, within a tolerance.

public static bool TryIntersectWith(GeoRay3 ray, GeoPlane3 plane, out GeoPoint3 intersection, Tolerance tolerance)

Parameters

ray GeoRay3
plane GeoPlane3
intersection GeoPoint3
tolerance Tolerance

Returns

bool

Remarks

A ray starting within the planar tolerance of the plane lies in it only where it runs level with it to rounding, and then meets it along its whole length and names no place. One dipping towards the plane, however shallowly, crosses it where it reaches height nought, and one rising away from it touches it at its origin, the one point of it within the tolerance it never comes back to: the ray from (5, 5, 0.0004) along (1, 0, -0.01) crosses the floor at (5.04, 5, 0), and along (1, 0, 0.01) touches it at (5, 5, 0.0004). A ray starting off the plane reaches it at one point at any angle but none at all.

TryIntersectWith(GeoLine3, GeoTriangle3, out GeoPoint3)

Tries to find the point where a line segment crosses a triangle, using the default tolerance.

public static bool TryIntersectWith(GeoLine3 line, GeoTriangle3 triangle, out GeoPoint3 intersection)

Parameters

line GeoLine3
triangle GeoTriangle3
intersection GeoPoint3

Returns

bool

TryIntersectWith(GeoLine3, GeoTriangle3, out GeoPoint3, Tolerance)

Tries to find the point where a line segment crosses a triangle, within a tolerance.

public static bool TryIntersectWith(GeoLine3 line, GeoTriangle3 triangle, out GeoPoint3 intersection, Tolerance tolerance)

Parameters

line GeoLine3
triangle GeoTriangle3
intersection GeoPoint3
tolerance Tolerance

Returns

bool

Remarks

The crossing is found against the triangle's carrier plane and then tested for containment, so the edges of the triangle are decided by the same tolerance-aware test that Containment3.Contains uses. A segment lying in the plane of the triangle is refused for the same reason it is refused against a bare plane. Whether the triangle has an area is read by IsDegenerate(Tolerance): the triangle 0.003 by 0.003 at the origin has, and the segment from (0.001, 0.001, -1) to (0.001, 0.001, 1) crosses it at (0.001, 0.001, 0). One with none is the segment it has collapsed to within the point tolerance, and is crossed where its sides are, the longest first: the segment from (50, 0, -1) to (50, 0, 1) crosses the sliver 100 long and 1E-8 high at (50, 0, 0). Both crossed nothing while twice the area was read against the vector tolerance. However small the tolerance, the triangle holds the crossing to the rounding of the coordinates, 1E-15 of the largest of its own and the segment's, on its plane and past its rim, as it holds a ray's, and a segment reaching from further off than the triangle is large is read from a diagonal short of it, along its line; whether the crossing lies between the ends is read by the tolerance given. Below that rounding, and only there, a segment with an end within it of the triangle, the other end off its plane, crosses it at that end where it touches it as CollidesWith(GeoLine3, GeoTriangle3, Tolerance) reads it, and nowhere else. At a tolerance of nought the segment from 30 under the middle of a triangle turned about in space to 30 over it crosses it there, where the rounding refused 920 of 1 000 such triangles, and the one from 10 off the side of a box turned about in space to a point on it crosses its triangle where it touches it, and only there, where the two read alike 488 times in 1 000.

A segment no longer than the point tolerance is read as its start where it does not truly cross the triangle: it meets it at its start where that lies within the point tolerance of the triangle, and nowhere where it does not, as TryIntersectWith(GeoLine3, GeoPlane3, out GeoPoint3, Tolerance) reads one against a plane.

TryIntersectWith(GeoRay3, GeoTriangle3, out GeoPoint3)

Tries to find the point where a ray crosses a triangle, using the default tolerance.

public static bool TryIntersectWith(GeoRay3 ray, GeoTriangle3 triangle, out GeoPoint3 intersection)

Parameters

ray GeoRay3
triangle GeoTriangle3
intersection GeoPoint3

Returns

bool

TryIntersectWith(GeoRay3, GeoTriangle3, out GeoPoint3, Tolerance)

Tries to find the point where a ray crosses a triangle, within a tolerance: the first point GetIntersections(GeoRay3, GeoTriangle3, Tolerance) gives, and false where it gives none.

public static bool TryIntersectWith(GeoRay3 ray, GeoTriangle3 triangle, out GeoPoint3 intersection, Tolerance tolerance)

Parameters

ray GeoRay3
triangle GeoTriangle3
intersection GeoPoint3
tolerance Tolerance

Returns

bool

Remarks

The answer is the list's, so the two never disagree: the ray is read as the line without ends along it, and is given what that line meets at its origin or ahead of it, the crossing or the point of a touch. The ray from (10, 20, 0.0002) falling 4E-6 for each unit along X climbs 0.00032 across the triangle with corners (0, 0, 0), (100, 0, 0) and (0, 100, 0) and lies level over it within the planar tolerance of a thousandth, so it is refused, where it was given its crossing of the floor at (60, 20, 0) while the list gave none; the ray from (20, 20, 10) pointing straight down crosses it at (20, 20, 0).

TryIntersectWith(GeoPlane3, GeoPlane3, out GeoRay3)

Tries to find the line where two planes meet, using the default tolerance.

public static bool TryIntersectWith(GeoPlane3 plane1, GeoPlane3 plane2, out GeoRay3 intersection)

Parameters

plane1 GeoPlane3
plane2 GeoPlane3
intersection GeoRay3

Returns

bool

TryIntersectWith(GeoPlane3, GeoPlane3, out GeoRay3, Tolerance)

Tries to find the line where two planes meet, within a tolerance.

public static bool TryIntersectWith(GeoPlane3 plane1, GeoPlane3 plane2, out GeoRay3 intersection, Tolerance tolerance)

Parameters

plane1 GeoPlane3

The first plane.

plane2 GeoPlane3

The second plane.

intersection GeoRay3

A ray along the line of intersection when the method returns true. The line is infinite in both directions and the ray only names it: GetPointAtDistance takes negative distances, so the half behind the origin is reachable too.

tolerance Tolerance

The tolerance.

Returns

bool

true if the planes meet in a line; otherwise, false.

Remarks

Parallel planes are refused whether they are apart, in which case they never meet, or coincident, in which case they meet everywhere. The origin of the returned ray is the point of the intersection line closest to the world origin, which makes the result depend only on the two planes and not on where their own origins happen to sit.

TryIntersectWith(GeoLine3, GeoPolygon3, out GeoPoint3)

Tries to find the point where a line segment crosses a polygon, using the default tolerance.

public static bool TryIntersectWith(GeoLine3 line, GeoPolygon3 polygon, out GeoPoint3 intersection)

Parameters

line GeoLine3
polygon GeoPolygon3
intersection GeoPoint3

Returns

bool

TryIntersectWith(GeoLine3, GeoPolygon3, out GeoPoint3, Tolerance)

Tries to find the point where a line segment crosses a polygon, within a tolerance.

public static bool TryIntersectWith(GeoLine3 line, GeoPolygon3 polygon, out GeoPoint3 intersection, Tolerance tolerance)

Parameters

line GeoLine3
polygon GeoPolygon3
intersection GeoPoint3
tolerance Tolerance

Returns

bool

Remarks

The crossing is found against the polygon's carrier plane and then tested for containment, so the boundary is decided by the same tolerance-aware test Containment3.Contains uses. A segment lying in the plane of the polygon is refused, as it is against a bare plane: every one of its points inside the outline would be a crossing. A segment no longer than the point tolerance is read as its start where it does not truly cross the polygon, as against a triangle.

TryIntersectWith(GeoRay3, GeoPolygon3, out GeoPoint3)

Tries to find the point where a ray crosses a polygon, using the default tolerance.

public static bool TryIntersectWith(GeoRay3 ray, GeoPolygon3 polygon, out GeoPoint3 intersection)

Parameters

ray GeoRay3
polygon GeoPolygon3
intersection GeoPoint3

Returns

bool

TryIntersectWith(GeoRay3, GeoPolygon3, out GeoPoint3, Tolerance)

Tries to find the point where a ray crosses a polygon, within a tolerance: the first point GetIntersections(GeoRay3, GeoPolygon3, Tolerance) gives, and false where it gives none.

public static bool TryIntersectWith(GeoRay3 ray, GeoPolygon3 polygon, out GeoPoint3 intersection, Tolerance tolerance)

Parameters

ray GeoRay3
polygon GeoPolygon3
intersection GeoPoint3
tolerance Tolerance

Returns

bool

Remarks

The answer is the list's, so the two never disagree: the ray is read as the line without ends along it, and is given what that line meets at its origin or ahead of it, the crossing or the point of a touch. The ray from (10, 50, 0.0002) falling 4E-6 for each unit along X climbs 0.0004 across the square 100 by 100 in the floor with a corner at the origin and lies level over it within the planar tolerance of a thousandth, so it is refused, where it was given its crossing of the floor at (60, 50, 0) while the list gave none; the ray from (20, 20, 10) pointing straight down crosses it at (20, 20, 0).

Exceptions

ArgumentNullException

Thrown when the polygon is null.

TryIntersectWith(GeoLine3, GeoFace3, out GeoPoint3)

Tries to find the point where a line segment crosses a face, using the default tolerance.

public static bool TryIntersectWith(GeoLine3 line, GeoFace3 face, out GeoPoint3 intersection)

Parameters

line GeoLine3
face GeoFace3
intersection GeoPoint3

Returns

bool

TryIntersectWith(GeoLine3, GeoFace3, out GeoPoint3, Tolerance)

Tries to find the point where a line segment crosses a face, within a tolerance.

public static bool TryIntersectWith(GeoLine3 line, GeoFace3 face, out GeoPoint3 intersection, Tolerance tolerance)

Parameters

line GeoLine3
face GeoFace3
intersection GeoPoint3
tolerance Tolerance

Returns

bool

Remarks

The holes in the face are respected: a segment threading through a hole passes through nothing and is reported as missing the face. However small the tolerance, the face holds the crossing to the rounding of the coordinates, 1E-15 of the largest of its own and the segment's, on its plane and past its rim, and an end within that rounding of it is read as TryIntersectWith(GeoLine3, GeoTriangle3, out GeoPoint3, Tolerance) reads one of a triangle, by CollidesWith(GeoLine3, GeoFace3, Tolerance). At a tolerance of nought the segment from 30 under the middle of a face turned about in space to 30 over it crosses it there, where the rounding refused 928 of 1 000 such faces. A segment no longer than the point tolerance is read as its start where it does not truly cross the material, as against a triangle.

TryIntersectWith(GeoRay3, GeoFace3, out GeoPoint3)

Tries to find the point where a ray crosses a face, using the default tolerance.

public static bool TryIntersectWith(GeoRay3 ray, GeoFace3 face, out GeoPoint3 intersection)

Parameters

ray GeoRay3
face GeoFace3
intersection GeoPoint3

Returns

bool

TryIntersectWith(GeoRay3, GeoFace3, out GeoPoint3, Tolerance)

Tries to find the point where a ray crosses the material of a face, within a tolerance: the first point GetIntersections(GeoRay3, GeoFace3, Tolerance) gives, and false where it gives none.

public static bool TryIntersectWith(GeoRay3 ray, GeoFace3 face, out GeoPoint3 intersection, Tolerance tolerance)

Parameters

ray GeoRay3
face GeoFace3
intersection GeoPoint3
tolerance Tolerance

Returns

bool

Remarks

The answer is the list's, so the two never disagree: the ray is read as the line without ends along it, and is given what that line meets at its origin or ahead of it, the crossing or the point of a touch. The ray from (10, 50, 0.0002) falling 4E-6 for each unit along X climbs 0.0004 across the square 100 by 100 in the floor with a corner at the origin and lies level over it within the planar tolerance of a thousandth, so it is refused, where it was given its crossing of the floor at (60, 50, 0) while the list gave none. The ray from (50, 50, 10) pointing straight down through a hole 40 by 40 in the middle of the square crosses nothing.

Exceptions

ArgumentNullException

Thrown when the face is null.

TryIntersectWith(GeoPolyline3, GeoPlane3, out GeoPoint3[])

Tries to find where a straight chain crosses a plane.

public static bool TryIntersectWith(GeoPolyline3 polyline, GeoPlane3 plane, out GeoPoint3[] intersections)

Parameters

polyline GeoPolyline3
plane GeoPlane3
intersections GeoPoint3[]

Returns

bool

TryIntersectWith(GeoPolyline3, GeoPlane3, out GeoPoint3[], Tolerance)

Tries to find where a straight chain crosses a plane, within a tolerance.

public static bool TryIntersectWith(GeoPolyline3 polyline, GeoPlane3 plane, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

polyline GeoPolyline3

The chain.

plane GeoPlane3

The shape to cross with.

intersections GeoPoint3[]

The crossing points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoPolyline3, GeoLine3, out GeoPoint3[])

Tries to find where a straight chain crosses a segment.

public static bool TryIntersectWith(GeoPolyline3 polyline, GeoLine3 line, out GeoPoint3[] intersections)

Parameters

polyline GeoPolyline3
line GeoLine3
intersections GeoPoint3[]

Returns

bool

TryIntersectWith(GeoPolyline3, GeoLine3, out GeoPoint3[], Tolerance)

Tries to find where a straight chain crosses a segment, within a tolerance.

public static bool TryIntersectWith(GeoPolyline3 polyline, GeoLine3 line, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

polyline GeoPolyline3

The chain.

line GeoLine3

The shape to cross with.

intersections GeoPoint3[]

The crossing points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoPolyline3, GeoRay3, out GeoPoint3[])

Tries to find where a straight chain crosses a ray.

public static bool TryIntersectWith(GeoPolyline3 polyline, GeoRay3 ray, out GeoPoint3[] intersections)

Parameters

polyline GeoPolyline3
ray GeoRay3
intersections GeoPoint3[]

Returns

bool

TryIntersectWith(GeoPolyline3, GeoRay3, out GeoPoint3[], Tolerance)

Tries to find where a straight chain crosses a ray, within a tolerance.

public static bool TryIntersectWith(GeoPolyline3 polyline, GeoRay3 ray, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

polyline GeoPolyline3

The chain.

ray GeoRay3

The shape to cross with.

intersections GeoPoint3[]

The crossing points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoPolyline3, GeoArc3, out GeoPoint3[])

Tries to find where a straight chain crosses an arc.

public static bool TryIntersectWith(GeoPolyline3 polyline, GeoArc3 arc, out GeoPoint3[] intersections)

Parameters

polyline GeoPolyline3
arc GeoArc3
intersections GeoPoint3[]

Returns

bool

TryIntersectWith(GeoPolyline3, GeoArc3, out GeoPoint3[], Tolerance)

Tries to find where a straight chain crosses an arc, within a tolerance.

public static bool TryIntersectWith(GeoPolyline3 polyline, GeoArc3 arc, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

polyline GeoPolyline3

The chain.

arc GeoArc3

The shape to cross with.

intersections GeoPoint3[]

The crossing points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoPolyline3, GeoCircle3, out GeoPoint3[])

Tries to find where a straight chain crosses a circle.

public static bool TryIntersectWith(GeoPolyline3 polyline, GeoCircle3 circle, out GeoPoint3[] intersections)

Parameters

polyline GeoPolyline3
circle GeoCircle3
intersections GeoPoint3[]

Returns

bool

TryIntersectWith(GeoPolyline3, GeoCircle3, out GeoPoint3[], Tolerance)

Tries to find where a straight chain crosses a circle, within a tolerance.

public static bool TryIntersectWith(GeoPolyline3 polyline, GeoCircle3 circle, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

polyline GeoPolyline3

The chain.

circle GeoCircle3

The shape to cross with.

intersections GeoPoint3[]

The crossing points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoPolyline3, GeoTriangle3, out GeoPoint3[])

Tries to find where a straight chain crosses a triangle.

public static bool TryIntersectWith(GeoPolyline3 polyline, GeoTriangle3 triangle, out GeoPoint3[] intersections)

Parameters

polyline GeoPolyline3
triangle GeoTriangle3
intersections GeoPoint3[]

Returns

bool

TryIntersectWith(GeoPolyline3, GeoTriangle3, out GeoPoint3[], Tolerance)

Tries to find where a straight chain crosses a triangle, within a tolerance.

public static bool TryIntersectWith(GeoPolyline3 polyline, GeoTriangle3 triangle, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

polyline GeoPolyline3

The chain.

triangle GeoTriangle3

The shape to cross with.

intersections GeoPoint3[]

The crossing points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoPolyline3, GeoPolygon3, out GeoPoint3[])

Tries to find where a straight chain crosses a polygon.

public static bool TryIntersectWith(GeoPolyline3 polyline, GeoPolygon3 polygon, out GeoPoint3[] intersections)

Parameters

polyline GeoPolyline3
polygon GeoPolygon3
intersections GeoPoint3[]

Returns

bool

TryIntersectWith(GeoPolyline3, GeoPolygon3, out GeoPoint3[], Tolerance)

Tries to find where a straight chain crosses a polygon, within a tolerance.

public static bool TryIntersectWith(GeoPolyline3 polyline, GeoPolygon3 polygon, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

polyline GeoPolyline3

The chain.

polygon GeoPolygon3

The shape to cross with.

intersections GeoPoint3[]

The crossing points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoPolyline3, GeoFace3, out GeoPoint3[])

Tries to find where a straight chain crosses a face.

public static bool TryIntersectWith(GeoPolyline3 polyline, GeoFace3 face, out GeoPoint3[] intersections)

Parameters

polyline GeoPolyline3
face GeoFace3
intersections GeoPoint3[]

Returns

bool

TryIntersectWith(GeoPolyline3, GeoFace3, out GeoPoint3[], Tolerance)

Tries to find where a straight chain crosses a face, within a tolerance.

public static bool TryIntersectWith(GeoPolyline3 polyline, GeoFace3 face, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

polyline GeoPolyline3

The chain.

face GeoFace3

The shape to cross with.

intersections GeoPoint3[]

The crossing points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoPolyline3, GeoObb3, out GeoPoint3[])

Tries to find where a straight chain crosses a box.

public static bool TryIntersectWith(GeoPolyline3 polyline, GeoObb3 box, out GeoPoint3[] intersections)

Parameters

polyline GeoPolyline3
box GeoObb3
intersections GeoPoint3[]

Returns

bool

TryIntersectWith(GeoPolyline3, GeoObb3, out GeoPoint3[], Tolerance)

Tries to find where a straight chain crosses a box, within a tolerance.

public static bool TryIntersectWith(GeoPolyline3 polyline, GeoObb3 box, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

polyline GeoPolyline3

The chain.

box GeoObb3

The shape to cross with.

intersections GeoPoint3[]

The crossing points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoPolyline3, GeoAabb3, out GeoPoint3[])

Tries to find where a straight chain crosses a square box.

public static bool TryIntersectWith(GeoPolyline3 polyline, GeoAabb3 box, out GeoPoint3[] intersections)

Parameters

polyline GeoPolyline3
box GeoAabb3
intersections GeoPoint3[]

Returns

bool

TryIntersectWith(GeoPolyline3, GeoAabb3, out GeoPoint3[], Tolerance)

Tries to find where a straight chain crosses a square box, within a tolerance.

public static bool TryIntersectWith(GeoPolyline3 polyline, GeoAabb3 box, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

polyline GeoPolyline3

The chain.

box GeoAabb3

The shape to cross with.

intersections GeoPoint3[]

The crossing points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoPolyline3, GeoSolid3, out GeoPoint3[])

Tries to find where a straight chain crosses a body.

public static bool TryIntersectWith(GeoPolyline3 polyline, GeoSolid3 solid, out GeoPoint3[] intersections)

Parameters

polyline GeoPolyline3
solid GeoSolid3
intersections GeoPoint3[]

Returns

bool

TryIntersectWith(GeoPolyline3, GeoSolid3, out GeoPoint3[], Tolerance)

Tries to find where a straight chain crosses a body, within a tolerance.

public static bool TryIntersectWith(GeoPolyline3 polyline, GeoSolid3 solid, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

polyline GeoPolyline3

The chain.

solid GeoSolid3

The shape to cross with.

intersections GeoPoint3[]

The crossing points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoPolyline3, GeoPolyline3, out GeoPoint3[])

Tries to find where two straight chains cross.

public static bool TryIntersectWith(GeoPolyline3 polyline, GeoPolyline3 other, out GeoPoint3[] intersections)

Parameters

polyline GeoPolyline3
other GeoPolyline3
intersections GeoPoint3[]

Returns

bool

TryIntersectWith(GeoPolyline3, GeoPolyline3, out GeoPoint3[], Tolerance)

Tries to find where two straight chains cross, within a tolerance.

public static bool TryIntersectWith(GeoPolyline3 polyline, GeoPolyline3 other, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

polyline GeoPolyline3

The first chain.

other GeoPolyline3

The second chain.

intersections GeoPoint3[]

The crossing points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when either chain is null.

TryIntersectWith(GeoTriangle3, GeoTriangle3, out GeoPoint3[])

Tries to find where two triangles cross, using the default tolerance.

public static bool TryIntersectWith(GeoTriangle3 triangle1, GeoTriangle3 triangle2, out GeoPoint3[] intersections)

Parameters

triangle1 GeoTriangle3
triangle2 GeoTriangle3
intersections GeoPoint3[]

Returns

bool

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 two points.

TryIntersectWith(GeoTriangle3, GeoTriangle3, out GeoPoint3[], Tolerance)

Tries to find where two triangles cross, within a tolerance.

public static bool TryIntersectWith(GeoTriangle3 triangle1, GeoTriangle3 triangle2, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

triangle1 GeoTriangle3

The first triangle.

triangle2 GeoTriangle3

The second triangle.

intersections GeoPoint3[]

The points of GetIntersections(GeoTriangle3, GeoTriangle3, Tolerance), in the same order; empty when there are none.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross anywhere; otherwise, false.

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 two points.

TryIntersectWith(GeoTriangle3, GeoPolygon3, out GeoPoint3[])

Tries to find where a triangle and a polygon cross, using the default tolerance.

public static bool TryIntersectWith(GeoTriangle3 triangle, GeoPolygon3 polygon, out GeoPoint3[] intersections)

Parameters

triangle GeoTriangle3
polygon GeoPolygon3
intersections GeoPoint3[]

Returns

bool

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 two points.

Exceptions

ArgumentNullException

Thrown when the polygon is null.

TryIntersectWith(GeoTriangle3, GeoPolygon3, out GeoPoint3[], Tolerance)

Tries to find where a triangle and a polygon cross, within a tolerance.

public static bool TryIntersectWith(GeoTriangle3 triangle, GeoPolygon3 polygon, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

triangle GeoTriangle3

The triangle.

polygon GeoPolygon3

The polygon.

intersections GeoPoint3[]

The points of GetIntersections(GeoTriangle3, GeoPolygon3, Tolerance), in the same order; empty when there are none.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross anywhere; otherwise, false.

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 two points.

Exceptions

ArgumentNullException

Thrown when the polygon is null.

TryIntersectWith(GeoTriangle3, GeoFace3, out GeoPoint3[])

Tries to find where a triangle and the material of a face cross, using the default tolerance.

public static bool TryIntersectWith(GeoTriangle3 triangle, GeoFace3 face, out GeoPoint3[] intersections)

Parameters

triangle GeoTriangle3
face GeoFace3
intersections GeoPoint3[]

Returns

bool

Remarks

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) standing in the hole, do not meet, and the answer is false.

Exceptions

ArgumentNullException

Thrown when the face is null.

TryIntersectWith(GeoTriangle3, GeoFace3, out GeoPoint3[], Tolerance)

Tries to find where a triangle and the material of a face cross, within a tolerance.

public static bool TryIntersectWith(GeoTriangle3 triangle, GeoFace3 face, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

triangle GeoTriangle3

The triangle.

face GeoFace3

The face, read by its material.

intersections GeoPoint3[]

The points of GetIntersections(GeoTriangle3, GeoFace3, Tolerance), in the same order; empty when there are none.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross anywhere; otherwise, false.

Remarks

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) standing in the hole, do not meet, and the answer is false.

Exceptions

ArgumentNullException

Thrown when the face is null.

TryIntersectWith(GeoPolygon3, GeoPolygon3, out GeoPoint3[])

Tries to find where two polygons cross, using the default tolerance.

public static bool TryIntersectWith(GeoPolygon3 polygon1, GeoPolygon3 polygon2, out GeoPoint3[] intersections)

Parameters

polygon1 GeoPolygon3
polygon2 GeoPolygon3
intersections GeoPoint3[]

Returns

bool

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 two points.

Exceptions

ArgumentNullException

Thrown when either polygon is null.

TryIntersectWith(GeoPolygon3, GeoPolygon3, out GeoPoint3[], Tolerance)

Tries to find where two polygons cross, within a tolerance.

public static bool TryIntersectWith(GeoPolygon3 polygon1, GeoPolygon3 polygon2, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

polygon1 GeoPolygon3

The first polygon.

polygon2 GeoPolygon3

The second polygon.

intersections GeoPoint3[]

The points of GetIntersections(GeoPolygon3, GeoPolygon3, Tolerance), in the same order; empty when there are none.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross anywhere; otherwise, false.

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 two points.

Exceptions

ArgumentNullException

Thrown when either polygon is null.

TryIntersectWith(GeoFace3, GeoPolygon3, out GeoPoint3[])

Tries to find where the material of a face and a polygon cross, using the default tolerance.

public static bool TryIntersectWith(GeoFace3 face, GeoPolygon3 polygon, out GeoPoint3[] intersections)

Parameters

face GeoFace3
polygon GeoPolygon3
intersections GeoPoint3[]

Returns

bool

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 at four points.

Exceptions

ArgumentNullException

Thrown when the face or the polygon is null.

TryIntersectWith(GeoFace3, GeoPolygon3, out GeoPoint3[], Tolerance)

Tries to find where the material of a face and a polygon cross, within a tolerance.

public static bool TryIntersectWith(GeoFace3 face, GeoPolygon3 polygon, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

face GeoFace3

The face, read by its material.

polygon GeoPolygon3

The polygon.

intersections GeoPoint3[]

The points of GetIntersections(GeoFace3, GeoPolygon3, Tolerance), in the same order; empty when there are none.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross anywhere; otherwise, false.

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 at four points.

Exceptions

ArgumentNullException

Thrown when the face or the polygon is null.

TryIntersectWith(GeoFace3, GeoFace3, out GeoPoint3[])

Tries to find where the materials of two faces cross, using the default tolerance.

public static bool TryIntersectWith(GeoFace3 face1, GeoFace3 face2, out GeoPoint3[] intersections)

Parameters

face1 GeoFace3
face2 GeoFace3
intersections GeoPoint3[]

Returns

bool

Remarks

A face standing wholly in a hole of another, touching neither its material nor the rim, crosses nothing, and the answer is false.

Exceptions

ArgumentNullException

Thrown when either face is null.

TryIntersectWith(GeoFace3, GeoFace3, out GeoPoint3[], Tolerance)

Tries to find where the materials of two faces cross, within a tolerance.

public static bool TryIntersectWith(GeoFace3 face1, GeoFace3 face2, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

face1 GeoFace3

The first face.

face2 GeoFace3

The second face.

intersections GeoPoint3[]

The points of GetIntersections(GeoFace3, GeoFace3, Tolerance), in the same order; empty when there are none.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross anywhere; otherwise, false.

Remarks

A face standing wholly in a hole of another, touching neither its material nor the rim, crosses nothing, and the answer is false.

Exceptions

ArgumentNullException

Thrown when either face is null.

TryIntersectWith(GeoPlane3, GeoTriangle3, out GeoPoint3[])

Tries to find where the edges of a triangle cross a plane, using the default tolerance.

public static bool TryIntersectWith(GeoPlane3 plane, GeoTriangle3 triangle, out GeoPoint3[] intersections)

Parameters

plane GeoPlane3
triangle GeoTriangle3
intersections GeoPoint3[]

Returns

bool

Remarks

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

TryIntersectWith(GeoPlane3, GeoTriangle3, out GeoPoint3[], Tolerance)

Tries to find where the edges of a triangle cross a plane, within a tolerance.

public static bool TryIntersectWith(GeoPlane3 plane, GeoTriangle3 triangle, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

plane GeoPlane3

The plane.

triangle GeoTriangle3

The triangle.

intersections GeoPoint3[]

The points of GetIntersections(GeoPlane3, GeoTriangle3, Tolerance), in the same order; empty when there are none.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross anywhere; otherwise, false.

Remarks

The floor plane and the triangle with corners (0, 50, -50), (100, 50, -50) and (0, 50, 50) cross at two points; a triangle lying in the floor crosses it nowhere, and the answer is false.

TryIntersectWith(GeoPlane3, GeoPolygon3, out GeoPoint3[])

Tries to find where the edges of a polygon cross a plane, using the default tolerance.

public static bool TryIntersectWith(GeoPlane3 plane, GeoPolygon3 polygon, out GeoPoint3[] intersections)

Parameters

plane GeoPlane3
polygon GeoPolygon3
intersections GeoPoint3[]

Returns

bool

Remarks

The floor plane and a square 100 by 100 standing upright along y = 50 from z = -50 to 50 cross at two points.

Exceptions

ArgumentNullException

Thrown when the polygon is null.

TryIntersectWith(GeoPlane3, GeoPolygon3, out GeoPoint3[], Tolerance)

Tries to find where the edges of a polygon cross a plane, within a tolerance.

public static bool TryIntersectWith(GeoPlane3 plane, GeoPolygon3 polygon, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

plane GeoPlane3

The plane.

polygon GeoPolygon3

The polygon.

intersections GeoPoint3[]

The points of GetIntersections(GeoPlane3, GeoPolygon3, Tolerance), in the same order; empty when there are none.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross anywhere; otherwise, false.

Remarks

The floor plane and a square 100 by 100 standing upright along y = 50 from z = -50 to 50 cross at two points; a square lying in the floor crosses it nowhere, and the answer is false.

Exceptions

ArgumentNullException

Thrown when the polygon is null.

TryIntersectWith(GeoPlane3, GeoFace3, out GeoPoint3[])

Tries to find where the edges of a face cross a plane, using the default tolerance.

public static bool TryIntersectWith(GeoPlane3 plane, GeoFace3 face, out GeoPoint3[] intersections)

Parameters

plane GeoPlane3
face GeoFace3
intersections GeoPoint3[]

Returns

bool

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 four points.

Exceptions

ArgumentNullException

Thrown when the face is null.

TryIntersectWith(GeoPlane3, GeoFace3, out GeoPoint3[], Tolerance)

Tries to find where the edges of a face cross a plane, within a tolerance.

public static bool TryIntersectWith(GeoPlane3 plane, GeoFace3 face, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

plane GeoPlane3

The plane.

face GeoFace3

The face.

intersections GeoPoint3[]

The points of GetIntersections(GeoPlane3, GeoFace3, Tolerance), in the same order; empty when there are none.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross anywhere; otherwise, false.

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 four points.

Exceptions

ArgumentNullException

Thrown when the face is null.

TryIntersectWith(GeoRay3, GeoRay3, out GeoPoint3[])

Tries to find where two rays cross, using the default tolerance.

public static bool TryIntersectWith(GeoRay3 ray1, GeoRay3 ray2, out GeoPoint3[] intersections)

Parameters

ray1 GeoRay3
ray2 GeoRay3
intersections GeoPoint3[]

Returns

bool

Remarks

A ray from the origin along X and one from (50, -50, 0) along Y cross at (50, 0, 0).

TryIntersectWith(GeoRay3, GeoRay3, out GeoPoint3[], Tolerance)

Tries to find where two rays cross, within a tolerance.

public static bool TryIntersectWith(GeoRay3 ray1, GeoRay3 ray2, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

ray1 GeoRay3

The first ray.

ray2 GeoRay3

The second ray.

intersections GeoPoint3[]

The point of GetIntersections(GeoRay3, GeoRay3, Tolerance); empty when there is none.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross at a place; otherwise, false.

Remarks

A ray from the origin along X and one from (50, -50, 0) along Y cross at (50, 0, 0); two rays along the X axis from 0 and from 100, facing each other, meet along a length and the answer is false.

TryIntersectWith(GeoLine3, GeoRay3, out GeoPoint3[])

Tries to find where a segment crosses a ray.

public static bool TryIntersectWith(GeoLine3 line, GeoRay3 ray, out GeoPoint3[] intersections)

Parameters

line GeoLine3
ray GeoRay3
intersections GeoPoint3[]

Returns

bool

TryIntersectWith(GeoLine3, GeoRay3, out GeoPoint3[], Tolerance)

Tries to find where a segment crosses a ray, within a tolerance.

public static bool TryIntersectWith(GeoLine3 line, GeoRay3 ray, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

line GeoLine3

The segment.

ray GeoRay3

The ray.

intersections GeoPoint3[]

The one place they cross when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross at a place; otherwise, false.

TryIntersectWith(GeoRay3, GeoLine3, out GeoPoint3[])

Tries to find where a ray crosses a segment.

public static bool TryIntersectWith(GeoRay3 ray, GeoLine3 line, out GeoPoint3[] intersections)

Parameters

ray GeoRay3
line GeoLine3
intersections GeoPoint3[]

Returns

bool

TryIntersectWith(GeoRay3, GeoLine3, out GeoPoint3[], Tolerance)

Tries to find where a ray crosses a segment, within a tolerance.

public static bool TryIntersectWith(GeoRay3 ray, GeoLine3 line, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

ray GeoRay3

The ray.

line GeoLine3

The segment.

intersections GeoPoint3[]

The one place they cross when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

true when they cross at a place; otherwise, false.