Table of Contents

Method TryIntersectWith

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TryIntersectWith(GeoLine3, out GeoPoint3)

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

public bool TryIntersectWith(GeoLine3 line, out GeoPoint3 intersection)

Parameters

line GeoLine3
intersection GeoPoint3

Returns

bool

TryIntersectWith(GeoLine3, out GeoPoint3, Tolerance)

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

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

Parameters

line GeoLine3
intersection GeoPoint3
tolerance Tolerance

Returns

bool

TryIntersectWith(GeoRay3, out GeoPoint3)

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

public bool TryIntersectWith(GeoRay3 ray, out GeoPoint3 intersection)

Parameters

ray GeoRay3
intersection GeoPoint3

Returns

bool

TryIntersectWith(GeoRay3, out GeoPoint3, Tolerance)

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

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

Parameters

ray GeoRay3
intersection GeoPoint3
tolerance Tolerance

Returns

bool

TryIntersectWith(GeoArc3, out GeoPoint3[])

Tries to find where an arc crosses this face, using the default tolerance.

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

Parameters

arc GeoArc3

The arc.

intersections GeoPoint3[]

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

Returns

bool

TryIntersectWith(GeoArc3, out GeoPoint3[], Tolerance)

Tries to find where an arc crosses this face, within a tolerance.

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

Parameters

arc GeoArc3

The arc.

intersections GeoPoint3[]

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

tolerance Tolerance

The tolerance.

Returns

bool

TryIntersectWith(GeoCircle3, out GeoPoint3[])

Tries to find where a circle crosses this face, using the default tolerance.

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

Parameters

circle GeoCircle3

The circle.

intersections GeoPoint3[]

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

Returns

bool

TryIntersectWith(GeoCircle3, out GeoPoint3[], Tolerance)

Tries to find where a circle crosses this face, within a tolerance.

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

Parameters

circle GeoCircle3

The circle.

intersections GeoPoint3[]

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

tolerance Tolerance

The tolerance.

Returns

bool

TryIntersectWith(GeoPolyline3, out GeoPoint3[])

Tries to find where this face crosses a straight chain: the same answer, and the same points in the same order, as TryIntersectWith(GeoFace3, out GeoPoint3[]).

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

Parameters

polyline GeoPolyline3
intersections GeoPoint3[]

Returns

bool

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoPolyline3, out GeoPoint3[], Tolerance)

Tries to find where this face crosses a straight chain, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoFace3, out GeoPoint3[], Tolerance).

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

Parameters

polyline GeoPolyline3
intersections GeoPoint3[]
tolerance Tolerance

Returns

bool

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoTriangle3, out GeoPoint3[])

Tries to find where the material of this face and a triangle cross: the same answer, and the same points in the same order, as TryIntersectWith(GeoTriangle3, GeoFace3, out GeoPoint3[]).

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

Parameters

triangle GeoTriangle3

The triangle.

intersections GeoPoint3[]

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

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; moved 30 along X, onto the material, they do.

TryIntersectWith(GeoTriangle3, out GeoPoint3[], Tolerance)

Tries to find where the material of this face and a triangle cross, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoTriangle3, GeoFace3, out GeoPoint3[], Tolerance).

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

Parameters

triangle GeoTriangle3

The triangle.

intersections GeoPoint3[]

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

tolerance Tolerance

The tolerance.

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; moved 30 along X, onto the material, they do.

TryIntersectWith(GeoPolygon3, out GeoPoint3[])

Tries to find where the material of this face and a polygon cross: the same answer, and the same points in the same order, as TryIntersectWith(GeoFace3, GeoPolygon3, out GeoPoint3[]).

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

Parameters

polygon GeoPolygon3

The polygon.

intersections GeoPoint3[]

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

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 where the material ends: (100, 50, 0), (0, 50, 0), (70, 50, 0) and (30, 50, 0).

Exceptions

ArgumentNullException

Thrown when the polygon is null.

TryIntersectWith(GeoPolygon3, out GeoPoint3[], Tolerance)

Tries to find where the material of this face and a polygon cross, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoFace3, GeoPolygon3, out GeoPoint3[], Tolerance).

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

Parameters

polygon GeoPolygon3

The polygon.

intersections GeoPoint3[]

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

tolerance Tolerance

The tolerance.

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 where the material ends: (100, 50, 0), (0, 50, 0), (70, 50, 0) and (30, 50, 0).

Exceptions

ArgumentNullException

Thrown when the polygon is null.

TryIntersectWith(GeoFace3, out GeoPoint3[])

Tries to find where the materials of this face and another cross: the same answer, and the same points in the same order, as TryIntersectWith(GeoFace3, GeoFace3, out GeoPoint3[]).

public bool TryIntersectWith(GeoFace3 other, out GeoPoint3[] intersections)

Parameters

other GeoFace3

The face, read by its material.

intersections GeoPoint3[]

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

Returns

bool

Remarks

The square 100 by 100 in the floor with a hole 40 by 40 in its middle is not touched by a square 20 by 20 about (50, 50) lying in its hole, and is by one about (15, 50); a face standing wholly in the hole crosses nothing.

Exceptions

ArgumentNullException

Thrown when the other face is null.

TryIntersectWith(GeoFace3, out GeoPoint3[], Tolerance)

Tries to find where the materials of this face and another cross, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoFace3, GeoFace3, out GeoPoint3[], Tolerance).

public bool TryIntersectWith(GeoFace3 other, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

other GeoFace3

The face, read by its material.

intersections GeoPoint3[]

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

tolerance Tolerance

The tolerance.

Returns

bool

Remarks

The square 100 by 100 in the floor with a hole 40 by 40 in its middle is not touched by a square 20 by 20 about (50, 50) lying in its hole, and is by one about (15, 50); a face standing wholly in the hole crosses nothing.

Exceptions

ArgumentNullException

Thrown when the other face is null.

TryIntersectWith(GeoPlane3, out GeoPoint3[])

Tries to find where the edges of this face cross a plane: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, GeoFace3, out GeoPoint3[]).

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

Parameters

plane GeoPlane3

The plane.

intersections GeoPoint3[]

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

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 (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.

TryIntersectWith(GeoPlane3, out GeoPoint3[], Tolerance)

Tries to find where the edges of this face cross a plane, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, GeoFace3, out GeoPoint3[], Tolerance).

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

Parameters

plane GeoPlane3

The plane.

intersections GeoPoint3[]

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

tolerance Tolerance

The tolerance.

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 (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.

TryIntersectWith(GeoSolid3, out GeoPoint3[])

Tries to find where the material of this face and the surface of a solid cross: the same answer, and the same points in the same order, as TryIntersectWith(GeoFace3, GeoSolid3, out GeoPoint3[]).

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

Parameters

solid GeoSolid3

The solid, read by its material.

intersections GeoPoint3[]

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

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: the box passes through the hole.

Exceptions

ArgumentNullException

Thrown when the solid is null.

TryIntersectWith(GeoSolid3, out GeoPoint3[], Tolerance)

Tries to find where the material of this face and the surface of a solid cross, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoFace3, GeoSolid3, out GeoPoint3[], Tolerance).

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

Parameters

solid GeoSolid3

The solid, read by its material.

intersections GeoPoint3[]

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

tolerance Tolerance

The tolerance.

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: the box passes through the hole.

Exceptions

ArgumentNullException

Thrown when the solid is null.

TryIntersectWith(GeoObb3, out GeoPoint3[])

Tries to find where the material of this face and the surface of an oriented box cross: the same answer, and the same points in the same order, as TryIntersectWith(GeoFace3, GeoObb3, out GeoPoint3[]).

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

Parameters

box GeoObb3

The oriented box.

intersections GeoPoint3[]

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

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 touches nothing; without the hole it crosses the box at four points at height 50.

Exceptions

ArgumentNullException

Thrown when the box is null.

TryIntersectWith(GeoObb3, out GeoPoint3[], Tolerance)

Tries to find where the material of this face and the surface of an oriented box cross, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoFace3, GeoObb3, out GeoPoint3[], Tolerance).

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

Parameters

box GeoObb3

The oriented box.

intersections GeoPoint3[]

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

tolerance Tolerance

The tolerance.

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 touches nothing; without the hole it crosses the box at four points at height 50.

Exceptions

ArgumentNullException

Thrown when the box is null.

TryIntersectWith(GeoAabb3, out GeoPoint3[])

Tries to find where the material of this face and the surface of an axis-aligned box cross: the same answer, and the same points in the same order, as TryIntersectWith(GeoFace3, GeoAabb3, out GeoPoint3[]).

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

Parameters

box GeoAabb3

The axis-aligned box.

intersections GeoPoint3[]

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

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 touches nothing; without the hole it crosses the box at four points at height 50.

TryIntersectWith(GeoAabb3, out GeoPoint3[], Tolerance)

Tries to find where the material of this face and the surface of an axis-aligned box cross, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoFace3, GeoAabb3, out GeoPoint3[], Tolerance).

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

Parameters

box GeoAabb3

The axis-aligned box.

intersections GeoPoint3[]

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

tolerance Tolerance

The tolerance.

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 touches nothing; without the hole it crosses the box at four points at height 50.

TryIntersectWith(GeoSphere3, out GeoPoint3[])

Tries to find where this face crosses the surface of a ball, using the default tolerance.

public bool TryIntersectWith(GeoSphere3 sphere, out GeoPoint3[] intersections)

Parameters

sphere GeoSphere3

The ball.

intersections GeoPoint3[]

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

Returns

bool

TryIntersectWith(GeoSphere3, out GeoPoint3[], Tolerance)

Tries to find where this face crosses the surface of a ball, within a tolerance.

public bool TryIntersectWith(GeoSphere3 sphere, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

sphere GeoSphere3

The ball.

intersections GeoPoint3[]

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

tolerance Tolerance

The tolerance.

Returns

bool

TryIntersectWith(GeoSpline3, out GeoPoint3[])

Tries to find where this face meets a spline, using the default tolerance.

public bool TryIntersectWith(GeoSpline3 spline, out GeoPoint3[] intersections)

Parameters

spline GeoSpline3

The spline.

intersections GeoPoint3[]

The points when the method returns true; empty otherwise.

Returns

bool

Exceptions

ArgumentNullException

Thrown when the spline is null.

TryIntersectWith(GeoSpline3, out GeoPoint3[], Tolerance)

Tries to find where this face meets a spline, within a tolerance.

public bool TryIntersectWith(GeoSpline3 spline, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

spline GeoSpline3

The spline.

intersections GeoPoint3[]

The points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

Exceptions

ArgumentNullException

Thrown when the spline is null.

TryIntersectWith(GeoXLine3, out GeoPoint3)

Tries to find the point where this face crosses an infinite line, using the default tolerance.

public bool TryIntersectWith(GeoXLine3 xline, out GeoPoint3 intersection)

Parameters

xline GeoXLine3

The infinite line.

intersection GeoPoint3

The crossing point if successful.

Returns

bool

TryIntersectWith(GeoXLine3, out GeoPoint3, Tolerance)

Tries to find the point where this face crosses an infinite line, within a tolerance.

public bool TryIntersectWith(GeoXLine3 xline, out GeoPoint3 intersection, Tolerance tolerance)

Parameters

xline GeoXLine3

The infinite line.

intersection GeoPoint3

The crossing point if successful.

tolerance Tolerance

The tolerance.

Returns

bool