Table of Contents

Method TryIntersectWith

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TryIntersectWith(GeoArc3, out GeoPoint3[])

Tries to find where an arc crosses the surface of this axis-aligned box, 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 the surface of this axis-aligned box, 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 the surface of this axis-aligned box, 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 the surface of this axis-aligned box, 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 axis-aligned box crosses a straight chain: the same answer, and the same points in the same order, as TryIntersectWith(GeoAabb3, 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 axis-aligned box crosses a straight chain, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoAabb3, 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 surface of this axis-aligned box and a triangle cross: the same answer, and the same points in the same order, as TryIntersectWith(GeoTriangle3, GeoAabb3, 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

A box 100 by 100 by 100 with a corner at the origin and the triangle with corners (-50, -50, 50), (300, -50, 50) and (-50, 300, 50) cross at four points at height 50; a triangle wholly inside the box touches it and crosses nothing.

TryIntersectWith(GeoTriangle3, out GeoPoint3[], Tolerance)

Tries to find where the surface of this axis-aligned box and a triangle cross, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoTriangle3, GeoAabb3, 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

A box 100 by 100 by 100 with a corner at the origin and the triangle with corners (-50, -50, 50), (300, -50, 50) and (-50, 300, 50) cross at four points at height 50; a triangle wholly inside the box touches it and crosses nothing.

TryIntersectWith(GeoPolygon3, out GeoPoint3[])

Tries to find where the surface of this axis-aligned box and a polygon cross: the same answer, and the same points in the same order, as TryIntersectWith(GeoPolygon3, GeoAabb3, 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

A box 100 by 100 by 100 with a corner at the origin and the square 200 by 200 from (-50, -50, 50) to (150, 150, 50) cross at four points at height 50.

Exceptions

ArgumentNullException

Thrown when the polygon is null.

TryIntersectWith(GeoPolygon3, out GeoPoint3[], Tolerance)

Tries to find where the surface of this axis-aligned box and a polygon cross, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoPolygon3, GeoAabb3, 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

A box 100 by 100 by 100 with a corner at the origin and the square 200 by 200 from (-50, -50, 50) to (150, 150, 50) cross at four points at height 50.

Exceptions

ArgumentNullException

Thrown when the polygon is null.

TryIntersectWith(GeoFace3, out GeoPoint3[])

Tries to find where the surface of this axis-aligned box and the material of a face cross: the same answer, and the same points in the same order, as TryIntersectWith(GeoFace3, GeoAabb3, 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 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 face is null.

TryIntersectWith(GeoFace3, out GeoPoint3[], Tolerance)

Tries to find where the surface of this axis-aligned box and the material of a face 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(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 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 face is null.

TryIntersectWith(GeoPlane3, out GeoPoint3[])

Tries to find where a plane cuts the edges of this axis-aligned box: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, GeoAabb3, 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 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(GeoPlane3, out GeoPoint3[], Tolerance)

Tries to find where a plane cuts the edges of this 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(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 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 box 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 box 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.