Table of Contents

Method TryIntersectWith

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TryIntersectWith(GeoPlane3, out GeoRay3)

Tries to find the line where this plane meets another plane, using the default tolerance.

public bool TryIntersectWith(GeoPlane3 other, out GeoRay3 intersection)

Parameters

other GeoPlane3
intersection GeoRay3

Returns

bool

TryIntersectWith(GeoPlane3, out GeoRay3, Tolerance)

Tries to find the line where this plane meets another plane, within a tolerance.

public bool TryIntersectWith(GeoPlane3 other, out GeoRay3 intersection, Tolerance tolerance)

Parameters

other GeoPlane3
intersection GeoRay3
tolerance Tolerance

Returns

bool

TryIntersectWith(GeoLine3, out GeoPoint3)

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

public bool TryIntersectWith(GeoLine3 line, out GeoPoint3 intersection)

Parameters

line GeoLine3

The segment.

intersection GeoPoint3

The crossing point when the method returns true.

Returns

bool

TryIntersectWith(GeoLine3, out GeoPoint3, Tolerance)

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

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

Parameters

line GeoLine3

The segment.

intersection GeoPoint3

The crossing point when the method returns true.

tolerance Tolerance

The tolerance.

Returns

bool

TryIntersectWith(GeoRay3, out GeoPoint3)

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

public bool TryIntersectWith(GeoRay3 ray, out GeoPoint3 intersection)

Parameters

ray GeoRay3

The ray.

intersection GeoPoint3

The crossing point when the method returns true.

Returns

bool

TryIntersectWith(GeoRay3, out GeoPoint3, Tolerance)

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

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

Parameters

ray GeoRay3

The ray.

intersection GeoPoint3

The crossing point when the method returns true.

tolerance Tolerance

The tolerance.

Returns

bool

TryIntersectWith(GeoArc3, out GeoPoint3[])

Tries to find where an arc crosses this plane, 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 plane, 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 plane, 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 plane, 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 plane crosses a straight chain: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, 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 plane crosses a straight chain, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, 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 edges of a triangle cross this plane: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, GeoTriangle3, 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 floor plane and the triangle with corners (0, 50, -50), (100, 50, -50) and (0, 50, 50) standing across it cross at (50, 50, 0) and (0, 50, 0); a triangle lying in the floor touches it and crosses it nowhere.

TryIntersectWith(GeoTriangle3, out GeoPoint3[], Tolerance)

Tries to find where the edges of a triangle cross this plane, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, GeoTriangle3, 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 floor plane and the triangle with corners (0, 50, -50), (100, 50, -50) and (0, 50, 50) standing across it cross at (50, 50, 0) and (0, 50, 0); a triangle lying in the floor touches it and crosses it nowhere.

TryIntersectWith(GeoPolygon3, out GeoPoint3[])

Tries to find where the edges of a polygon cross this plane: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, 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 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 square lying in the floor touches it and crosses it nowhere.

Exceptions

ArgumentNullException

Thrown when the polygon is null.

TryIntersectWith(GeoPolygon3, out GeoPoint3[], Tolerance)

Tries to find where the edges of a polygon cross this plane, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, 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 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 square lying in the floor touches it and crosses it nowhere.

Exceptions

ArgumentNullException

Thrown when the polygon is null.

TryIntersectWith(GeoFace3, out GeoPoint3[])

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

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

Parameters

face GeoFace3

The face, read by its material.

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.

Exceptions

ArgumentNullException

Thrown when the face is null.

TryIntersectWith(GeoFace3, out GeoPoint3[], Tolerance)

Tries to find where the edges of a face cross this 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(GeoFace3 face, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

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

TryIntersectWith(GeoObb3, out GeoPoint3[])

Tries to find where this plane cuts the edges of an oriented box: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, 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 plane z = 50 cuts the four upright edges of a box 100 by 100 by 100 standing on the floor, at height 50; the plane z = 101 misses it.

Exceptions

ArgumentNullException

Thrown when the box is null.

TryIntersectWith(GeoObb3, out GeoPoint3[], Tolerance)

Tries to find where this plane cuts the edges of an oriented box, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, 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 plane z = 50 cuts the four upright edges of a box 100 by 100 by 100 standing on the floor, at height 50; the plane z = 101 misses it.

Exceptions

ArgumentNullException

Thrown when the box is null.

TryIntersectWith(GeoAabb3, out GeoPoint3[])

Tries to find where this plane cuts the edges of an axis-aligned box: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, 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 plane z = 50 cuts the four upright edges of a box 100 by 100 by 100 standing on the floor, at height 50; the plane z = 101 misses it.

TryIntersectWith(GeoAabb3, out GeoPoint3[], Tolerance)

Tries to find where this plane cuts the edges of an axis-aligned box, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, 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 plane z = 50 cuts the four upright edges of a box 100 by 100 by 100 standing on the floor, at height 50; the plane z = 101 misses it.

TryIntersectWith(GeoSpline3, out GeoPoint3[])

Tries to find where this plane 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 plane 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 an infinite line crosses this plane, 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 an infinite line crosses this plane, 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