Table of Contents

Method GetIntersections

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

GetIntersections(GeoArc3, GeoSolid3)

Gets every point where an arc crosses the surface of a solid.

public static GeoPoint3[] GetIntersections(GeoArc3 arc, GeoSolid3 solid)

Parameters

arc GeoArc3
solid GeoSolid3

Returns

GeoPoint3[]

GetIntersections(GeoArc3, GeoSolid3, Tolerance)

Gets every point where an arc crosses the surface of a solid, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoArc3 arc, GeoSolid3 solid, Tolerance tolerance)

Parameters

arc GeoArc3

The arc.

solid GeoSolid3

The solid.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Where the arc goes in and where it comes out, the walls of any opening counted as surface. An arc lying wholly inside the material crosses nothing and gives none, which CollidesWith(GeoArc3, GeoSolid3, Tolerance) reports instead.

Exceptions

ArgumentNullException

Thrown when the solid is null.

GetIntersections(GeoArc3, GeoObb3)

Gets every point where an arc crosses the surface of an oriented box.

public static GeoPoint3[] GetIntersections(GeoArc3 arc, GeoObb3 box)

Parameters

arc GeoArc3
box GeoObb3

Returns

GeoPoint3[]

GetIntersections(GeoArc3, GeoObb3, Tolerance)

Gets every point where an arc crosses the surface of an oriented box, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoArc3 arc, GeoObb3 box, Tolerance tolerance)

Parameters

arc GeoArc3

The arc.

box GeoObb3

The box.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

The points where the arc meets one of the six faces, each corner or edge counted once; none where the arc does not come within the point tolerance of the box, as CollidesWith(GeoArc3, GeoObb3, Tolerance) reads it.

Remarks

A face reads an end of the arc standing within the point tolerance of its plane, and within the tolerance of its outline in that plane, as on it, and the two together reach further than the tolerance off an edge or a corner of the box: an arc starting 0.00064 off a corner of the box 30 by 20 by 10 in each of the three directions, and running away from it, is 0.0011 from the box, and is given no point now, where it was given one. A box flat on one axis is the rectangle across it, and an arc through the box 100 by 100 by 0 is given the point where it passes the rectangle; a box flat on two axes or three, a segment or a point, has no face and is given no point.

GetIntersections(GeoArc3, GeoAabb3)

Gets every point where an arc crosses the surface of an axis-aligned box.

public static GeoPoint3[] GetIntersections(GeoArc3 arc, GeoAabb3 box)

Parameters

arc GeoArc3
box GeoAabb3

Returns

GeoPoint3[]

GetIntersections(GeoArc3, GeoAabb3, Tolerance)

Gets every point where an arc crosses the surface of an axis-aligned box, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoArc3 arc, GeoAabb3 box, Tolerance tolerance)

Parameters

arc GeoArc3

The arc.

box GeoAabb3

The box; an empty one holds nothing and is crossed nowhere.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Remarks

An axis-aligned box is an oriented box whose axes happen to be the world's, so this is the oriented answer rather than an approximation of it.

GetIntersections(GeoCircle3, GeoSolid3)

Gets every point where a circle crosses the surface of a solid.

public static GeoPoint3[] GetIntersections(GeoCircle3 circle, GeoSolid3 solid)

Parameters

circle GeoCircle3
solid GeoSolid3

Returns

GeoPoint3[]

GetIntersections(GeoCircle3, GeoSolid3, Tolerance)

Gets every point where a circle crosses the surface of a solid, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoCircle3 circle, GeoSolid3 solid, Tolerance tolerance)

Parameters

circle GeoCircle3

The circle.

solid GeoSolid3

The solid.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

GetIntersections(GeoCircle3, GeoObb3)

Gets every point where a circle crosses the surface of an oriented box.

public static GeoPoint3[] GetIntersections(GeoCircle3 circle, GeoObb3 box)

Parameters

circle GeoCircle3
box GeoObb3

Returns

GeoPoint3[]

GetIntersections(GeoCircle3, GeoObb3, Tolerance)

Gets every point where a circle crosses the surface of an oriented box, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoCircle3 circle, GeoObb3 box, Tolerance tolerance)

Parameters

circle GeoCircle3

The circle.

box GeoObb3

The box.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

GetIntersections(GeoCircle3, GeoAabb3)

Gets every point where a circle crosses the surface of an axis-aligned box.

public static GeoPoint3[] GetIntersections(GeoCircle3 circle, GeoAabb3 box)

Parameters

circle GeoCircle3
box GeoAabb3

Returns

GeoPoint3[]

GetIntersections(GeoCircle3, GeoAabb3, Tolerance)

Gets every point where a circle crosses the surface of an axis-aligned box, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoCircle3 circle, GeoAabb3 box, Tolerance tolerance)

Parameters

circle GeoCircle3

The circle.

box GeoAabb3

The box.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

GetIntersections(GeoCircle3, GeoPlane3)

Gets every point where a circle crosses a plane.

public static GeoPoint3[] GetIntersections(GeoCircle3 circle, GeoPlane3 plane)

Parameters

circle GeoCircle3
plane GeoPlane3

Returns

GeoPoint3[]

GetIntersections(GeoCircle3, GeoPlane3, Tolerance)

Gets every point where a circle crosses a plane, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoCircle3 circle, GeoPlane3 plane, Tolerance tolerance)

Parameters

circle GeoCircle3
plane GeoPlane3
tolerance Tolerance

Returns

GeoPoint3[]

At most two points. A circle lying in the plane crosses it nowhere and gives none, which CollidesWith(GeoCircle3, GeoPlane3, Tolerance) reports instead.

GetIntersections(GeoCircle3, GeoLine3)

Gets every point where a circle crosses a segment.

public static GeoPoint3[] GetIntersections(GeoCircle3 circle, GeoLine3 line)

Parameters

circle GeoCircle3
line GeoLine3

Returns

GeoPoint3[]

GetIntersections(GeoCircle3, GeoLine3, Tolerance)

Gets every point where a circle crosses a segment, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoCircle3 circle, GeoLine3 line, Tolerance tolerance)

Parameters

circle GeoCircle3
line GeoLine3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoCircle3, GeoRay3)

Gets every point where a circle crosses a ray.

public static GeoPoint3[] GetIntersections(GeoCircle3 circle, GeoRay3 ray)

Parameters

circle GeoCircle3
ray GeoRay3

Returns

GeoPoint3[]

GetIntersections(GeoCircle3, GeoRay3, Tolerance)

Gets every point where a circle crosses a ray, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoCircle3 circle, GeoRay3 ray, Tolerance tolerance)

Parameters

circle GeoCircle3
ray GeoRay3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoArc3, GeoPlane3)

Gets every point where an arc crosses a plane.

public static GeoPoint3[] GetIntersections(GeoArc3 arc, GeoPlane3 plane)

Parameters

arc GeoArc3
plane GeoPlane3

Returns

GeoPoint3[]

GetIntersections(GeoArc3, GeoPlane3, Tolerance)

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

public static GeoPoint3[] GetIntersections(GeoArc3 arc, GeoPlane3 plane, Tolerance tolerance)

Parameters

arc GeoArc3
plane GeoPlane3
tolerance Tolerance

Returns

GeoPoint3[]

At most two points. An arc lying in the plane crosses it nowhere and gives none: it is in the plane rather than through it, which CollidesWith(GeoArc3, GeoPlane3, Tolerance) reports instead.

GetIntersections(GeoArc3, GeoLine3)

Gets every point where an arc crosses a segment.

public static GeoPoint3[] GetIntersections(GeoArc3 arc, GeoLine3 line)

Parameters

arc GeoArc3
line GeoLine3

Returns

GeoPoint3[]

GetIntersections(GeoArc3, GeoLine3, Tolerance)

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

public static GeoPoint3[] GetIntersections(GeoArc3 arc, GeoLine3 line, Tolerance tolerance)

Parameters

arc GeoArc3
line GeoLine3
tolerance Tolerance

Returns

GeoPoint3[]

At most two points, and only ones the segment itself reaches: the arithmetic reads the segment as the endless line carrying it and then keeps what lies between its ends. Where the two only touch, as CollidesWith(GeoArc3, GeoLine3, Tolerance) reads a touch, without a crossing, the point of the arc nearest the segment: the segment from (0, 50.0006, 1) to (0, 50.0006, -1), through the plane of the arc of radius 50 about the origin 0.0006 beside its rim, touches it at (0, 50, 0). A point of the circle on the segment's line, held by the arc and by the segment each within the point tolerance, is given only where the segment, at its point nearest it, comes within the point tolerance of the arc, each point on its own: the segment from (0, 0, 0.0008) to (49.9992, 0, 0.0008) ends 0.00113 from that arc and is given nothing, where it was given (50, 0, 0.0008) and collided with nothing, and the one from (-60, 0, 0.0006) to (49.9994, 0, 0.0006), ending 0.000849 from it, touches it at both rims. A segment no longer than the point tolerance is read as its start where it does not truly cross the arc: it is given its start where that lies within the point tolerance of the arc, and nothing where it does not. A longer one crosses where it does however short: at a millionth, the segment from (0, 9.9999995, 0) to (0, 10.0000015, 0) meets the arc of radius 10 about the origin at (0, 10, 0), as it does a hundred times larger, where, shorter than the vector tolerance of 1E-5 read as a length, it was given its start.

GetIntersections(GeoArc3, GeoRay3)

Gets every point where an arc crosses a ray.

public static GeoPoint3[] GetIntersections(GeoArc3 arc, GeoRay3 ray)

Parameters

arc GeoArc3
ray GeoRay3

Returns

GeoPoint3[]

GetIntersections(GeoArc3, GeoRay3, Tolerance)

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

public static GeoPoint3[] GetIntersections(GeoArc3 arc, GeoRay3 ray, Tolerance tolerance)

Parameters

arc GeoArc3
ray GeoRay3
tolerance Tolerance

Returns

GeoPoint3[]

At most two points, and only ones ahead of where the ray starts; where the two only touch without a crossing, the point of the arc nearest the ray, as for a segment. A point of the circle on the ray's line is given only where the ray, at its point nearest it, comes within the point tolerance of the arc, as for a segment.

GetIntersections(GeoArc3, GeoArc3)

Gets every point where two arcs cross.

public static GeoPoint3[] GetIntersections(GeoArc3 first, GeoArc3 second)

Parameters

first GeoArc3
second GeoArc3

Returns

GeoPoint3[]

GetIntersections(GeoArc3, GeoArc3, Tolerance)

Gets every point where two arcs cross, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoArc3 first, GeoArc3 second, Tolerance tolerance)

Parameters

first GeoArc3

The first arc.

second GeoArc3

The second arc.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

The points the two share, the same to the last digit whichever is asked first, in order along a line: in one plane the line square to the one between the centres, otherwise the line the two planes share. Asked the other way round, they come in the opposite order. Two arcs of one circle give none: they share a whole stretch rather than a point, which CollidesWith(GeoArc3, GeoArc3, Tolerance) reports instead.

Remarks

Two arcs in one plane are crossed from the smaller circle, so a nearly flat arc keeps its crossings whichever is asked first: the edge 100 long of bulge 1E-7 from (0, 0, 0) to (100, 0, 0), an arc of radius 2.5E8, crosses the arc of radius 40 about (50, 30, 0) sweeping 1.6 radians at (23.54249, 0, 0) either way round.

Each arc is read against the other, and a place both readings name is given once, as the first names it: the first reading is that of the arc lying within the planar tolerance of the other's plane, or, where both or neither do, of the one that comes first by centre, radius, normal and angles. Where the two pass within the point tolerance of each other and no reading names a place there, as CollidesWith(GeoArc3, GeoArc3, Tolerance) reads a touch, the middle of the shortest line between them is the place: the arc of radius 100 about the origin in the plan and an arc of radius 50 leaning 0.01 radians, the end of its diameter along X 0.0005 above (0, 100, 0) and running square to the first there, touch at (0, 100, 0.00025). Read from the arc asked first alone, 37 of 4 000 pairs tilted 1E-7 to 1E-3 radians off each other gave a different number of places the one way round and the other, and 356 collided and were given none.

Two circles whose centres stand further apart than the point tolerance are crossed however near the centres are: at a millionth, the arcs of radius 10 about the origin and of radius 9.999999 about (0.000002, 0, 0) cross at (5.0000007, ±8.6602536, 0), as they do a hundred times larger, where the line they share, as long as the centres are apart and so shorter than the vector tolerance of 1E-5 read as a length, was taken for no line at all and one of the crossings was lost. The line is laid in the plane of the circles: two of radius 39.7 in a plane leaning every way, about centres 1.4E-7 apart, cross twice on both at a ten-millionth, where the line, carried 14 along the difference of the centres, leant out of the plane by its rounding and the crossings lay up to 1.4E-7 off both.

GetIntersections(GeoArc3, GeoCircle3)

Gets every point where an arc crosses a circle.

public static GeoPoint3[] GetIntersections(GeoArc3 arc, GeoCircle3 circle)

Parameters

arc GeoArc3
circle GeoCircle3

Returns

GeoPoint3[]

GetIntersections(GeoArc3, GeoCircle3, Tolerance)

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

public static GeoPoint3[] GetIntersections(GeoArc3 arc, GeoCircle3 circle, Tolerance tolerance)

Parameters

arc GeoArc3

The arc.

circle GeoCircle3

The circle.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

GetIntersections(GeoCircle3, GeoCircle3)

Gets every point where two circles cross.

public static GeoPoint3[] GetIntersections(GeoCircle3 first, GeoCircle3 second)

Parameters

first GeoCircle3
second GeoCircle3

Returns

GeoPoint3[]

GetIntersections(GeoCircle3, GeoCircle3, Tolerance)

Gets every point where two circles cross, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoCircle3 first, GeoCircle3 second, Tolerance tolerance)

Parameters

first GeoCircle3

The first circle.

second GeoCircle3

The second circle.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

The points the two share, the same to the last digit whichever circle is asked first, in order along a line: in one plane the line square to the one between the centres, otherwise the line the two planes share. Asked the other way round, they come in the opposite order, whichever way the two normals point.

Remarks

Each circle is read against the other, and a place both readings name is given once, as the first names it. The first is the one lying within the planar tolerance of the other's plane, or, where both or neither do, the one that comes first by centre, radius and normal. Read from the circle asked first alone, the circle of radius 473.706 about the origin in the plan crossed the circle of radius 477.624 about (-37.520, -84.167, 0.0009), tilted 4.6E-6 radians off it, at (421.493, -216.198, 0) asked the one way, and at (-442.545, 168.972, 0.001) as well asked the other; both ways now give both. Where the two pass within the point tolerance of each other and no reading names a place there, as CollidesWith(GeoCircle3, GeoCircle3, Tolerance) reads a touch, the middle of the shortest line between them is the place, as for two arcs.

GetIntersections(GeoArc3, GeoTriangle3)

Gets every point where an arc crosses a triangle.

public static GeoPoint3[] GetIntersections(GeoArc3 arc, GeoTriangle3 triangle)

Parameters

arc GeoArc3
triangle GeoTriangle3

Returns

GeoPoint3[]

GetIntersections(GeoArc3, GeoTriangle3, Tolerance)

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

public static GeoPoint3[] GetIntersections(GeoArc3 arc, GeoTriangle3 triangle, Tolerance tolerance)

Parameters

arc GeoArc3

The arc.

triangle GeoTriangle3

The triangle.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Where the arc pierces the triangle, the points of the face it goes through; where the arc lies in the triangle's plane, the points where it cuts one of the three edges. None where the arc does not come within the point tolerance of the triangle, as CollidesWith(GeoArc3, GeoTriangle3, Tolerance) reads it. Where it touches the triangle without crossing it, the point of the arc nearest the triangle, unless the arc lies level over it within the tolerance. A triangle with no area is the segment it has collapsed to, crossed where its sides are.

Remarks

A point of the arc is read as on the triangle within the point tolerance of its plane and within the tolerance of its outline in that plane, and the two together reach further than the tolerance off a side: an arc starting 0.00107 beside a side of the triangle and 0.0007 over its plane, and running away from it, is 0.0013 from the triangle, and is given no point now, where it was given one.

GetIntersections(GeoArc3, GeoPolygon3)

Gets every point where an arc crosses a polygon.

public static GeoPoint3[] GetIntersections(GeoArc3 arc, GeoPolygon3 polygon)

Parameters

arc GeoArc3
polygon GeoPolygon3

Returns

GeoPoint3[]

GetIntersections(GeoArc3, GeoPolygon3, Tolerance)

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

public static GeoPoint3[] GetIntersections(GeoArc3 arc, GeoPolygon3 polygon, Tolerance tolerance)

Parameters

arc GeoArc3

The arc.

polygon GeoPolygon3

The polygon.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Where the arc pierces the polygon, the points of the region it goes through; where the arc lies in the polygon's plane, the points where it cuts the outline. None where the arc does not come within the point tolerance of the polygon, as CollidesWith(GeoArc3, GeoPolygon3, Tolerance) reads it.

Remarks

A point of the arc is read as on the polygon within the point tolerance of its plane and within the tolerance of its outline in that plane, as for a triangle, and is kept only where the arc touches the polygon.

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetIntersections(GeoArc3, GeoFace3)

Gets every point where an arc crosses a face.

public static GeoPoint3[] GetIntersections(GeoArc3 arc, GeoFace3 face)

Parameters

arc GeoArc3
face GeoFace3

Returns

GeoPoint3[]

GetIntersections(GeoArc3, GeoFace3, Tolerance)

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

public static GeoPoint3[] GetIntersections(GeoArc3 arc, GeoFace3 face, Tolerance tolerance)

Parameters

arc GeoArc3

The arc.

face GeoFace3

The face.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Where the arc pierces the face, the points of its material it goes through, so a bar passing down a hole reaches nothing; where the arc lies in the face's plane, the points where it cuts the outline or the rim of a hole. None where the arc does not come within the point tolerance of the material, as CollidesWith(GeoArc3, GeoFace3, Tolerance) reads it.

Remarks

A point of the arc is read as on the face within the point tolerance of its plane and within the tolerance of its outline and of the rim of each hole, as for a triangle, and is kept only where the arc touches the material: an arc in a hole starting 0.0012 off its rim and 0.0003 over the plane, and running away from it, is given no point.

Exceptions

ArgumentNullException

Thrown when the face is null.

GetIntersections(GeoCircle3, GeoTriangle3)

Gets every point where a circle crosses a triangle.

public static GeoPoint3[] GetIntersections(GeoCircle3 circle, GeoTriangle3 triangle)

Parameters

circle GeoCircle3
triangle GeoTriangle3

Returns

GeoPoint3[]

GetIntersections(GeoCircle3, GeoTriangle3, Tolerance)

Gets every point where a circle crosses a triangle, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoCircle3 circle, GeoTriangle3 triangle, Tolerance tolerance)

Parameters

circle GeoCircle3

The circle.

triangle GeoTriangle3

The triangle.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

GetIntersections(GeoCircle3, GeoPolygon3)

Gets every point where a circle crosses a polygon.

public static GeoPoint3[] GetIntersections(GeoCircle3 circle, GeoPolygon3 polygon)

Parameters

circle GeoCircle3
polygon GeoPolygon3

Returns

GeoPoint3[]

GetIntersections(GeoCircle3, GeoPolygon3, Tolerance)

Gets every point where a circle crosses a polygon, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoCircle3 circle, GeoPolygon3 polygon, Tolerance tolerance)

Parameters

circle GeoCircle3

The circle.

polygon GeoPolygon3

The polygon.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

GetIntersections(GeoCircle3, GeoFace3)

Gets every point where a circle crosses a face.

public static GeoPoint3[] GetIntersections(GeoCircle3 circle, GeoFace3 face)

Parameters

circle GeoCircle3
face GeoFace3

Returns

GeoPoint3[]

GetIntersections(GeoCircle3, GeoFace3, Tolerance)

Gets every point where a circle crosses a face, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoCircle3 circle, GeoFace3 face, Tolerance tolerance)

Parameters

circle GeoCircle3

The circle.

face GeoFace3

The face.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]