Table of Contents

Method GetIntersections

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

GetIntersections(GeoEllipse3, GeoPlane3)

Gets every point where the rim of an ellipse in space crosses a plane, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoPlane3 plane)

Parameters

ellipse GeoEllipse3
plane GeoPlane3

Returns

GeoPoint3[]

GetIntersections(GeoEllipse3, GeoPlane3, Tolerance)

Gets every point where the rim of an ellipse in space crosses a plane, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoPlane3 plane, Tolerance tolerance)

Parameters

ellipse GeoEllipse3

The ellipse.

plane GeoPlane3

The plane.

tolerance Tolerance

The tolerance: a rim standing off the plane by no more than its planar tolerance lies in it.

Returns

GeoPoint3[]

At most two points, in order along the line the two planes share. The ellipse 300 by 100 lying in the plan about the origin, its major axis along X, crosses the plane x = 150 at (150, -86.603, 0), then at (150, 86.603, 0). An ellipse lying in the plane crosses it nowhere and gives none, which CollidesWith(GeoEllipse3, GeoPlane3, Tolerance) reports instead.

GetIntersections(GeoEllipse3, GeoLine3)

Gets every point where the rim of an ellipse in space crosses a segment, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoLine3 line)

Parameters

ellipse GeoEllipse3
line GeoLine3

Returns

GeoPoint3[]

GetIntersections(GeoEllipse3, GeoLine3, Tolerance)

Gets every point where the rim of an ellipse in space crosses a segment, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoLine3 line, Tolerance tolerance)

Parameters

ellipse GeoEllipse3

The ellipse.

line GeoLine3

The segment.

tolerance Tolerance

The tolerance: a point of the segment within its point tolerance of the rim, measured in space, is on it.

Returns

GeoPoint3[]

At most two points, in order along the segment, and only ones the segment reaches: where it passes the rim, read as it lies over the plane, and where it pierces the plane on the rim. The one from (-400, 50, 0) to (400, 50, 0) crosses the ellipse 300 by 100 lying in the plan about the origin at (-259.808, 50, 0), then at (259.808, 50, 0); the one from (-400, 50, -0.0009) to (400, 50, 0.0011), leaning a hair out of the plane, at (-259.808, 50, -0.00055) and (259.808, 50, 0.00075); the one from (300, 0, -10) to (300, 0, 10) at (300, 0, 0); one through the middle of the disc nowhere. A segment no longer than the point tolerance is read as its start where it does not truly cross the rim: it is given its start where that lies within the point tolerance of the rim, and nothing where it does not. One shorter than the vector tolerance crosses where it truly does: the one from (300, 0, 0.000004) to (300, 0, -0.000004) at (300, 0, 0), where it was given its start.

GetIntersections(GeoEllipse3, GeoRay3)

Gets every point where the rim of an ellipse in space crosses a ray, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoRay3 ray)

Parameters

ellipse GeoEllipse3
ray GeoRay3

Returns

GeoPoint3[]

GetIntersections(GeoEllipse3, GeoRay3, Tolerance)

Gets every point where the rim of an ellipse in space crosses a ray, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoRay3 ray, Tolerance tolerance)

Parameters

ellipse GeoEllipse3

The ellipse.

ray GeoRay3

The ray.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

At most two points, in order along the ray, and only ones ahead of where it starts. The ray from the origin along X, in the plane of the ellipse 300 by 100 lying in the plan about the origin, crosses it at (300, 0, 0) only.

Remarks

A ray is read as a segment as far as it can reach the rim: to the point past which it is further from the centre than the major radius.

GetIntersections(GeoEllipse3, GeoArc3)

Gets every point where the rim of an ellipse in space crosses an arc, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoArc3 arc)

Parameters

ellipse GeoEllipse3
arc GeoArc3

Returns

GeoPoint3[]

GetIntersections(GeoEllipse3, GeoArc3, Tolerance)

Gets every point where the rim of an ellipse in space crosses an arc, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoArc3 arc, Tolerance tolerance)

Parameters

ellipse GeoEllipse3

The ellipse.

arc GeoArc3

The arc.

tolerance Tolerance

The tolerance: two crossings no further apart than twice its point tolerance are one.

Returns

GeoPoint3[]

The points of the arc on the rim, as the circle in space gives them against an arc, read from the arc: in order along the line the two planes share, or, in one plane, along the line square to the one from the arc's centre to the ellipse's. The half circle of radius 50 about (250, 0, 0), normal along Y, from (250, 0, 50) round through (300, 0, 0) to (250, 0, -50), meets the ellipse 300 by 100 lying in the plan about the origin at (300, 0, 0) only; the other half meets it nowhere.

Remarks

An arc that passes within the point tolerance of the rim without crossing it touches it, at the middle of the shortest line between them, as a circle does: not in one plane, away from the line the planes share; in one plane, wherever the two come within the tolerance of each other in space. At a tolerance of 0.05, the arc of radius 117.4 lying within it of the plane of an ellipse 31.7 by 0.01, its rim 0.038 from the ellipse's, touches it.

GetIntersections(GeoEllipse3, GeoCircle3)

Gets every point where the rim of an ellipse in space crosses a circle, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoCircle3 circle)

Parameters

ellipse GeoEllipse3
circle GeoCircle3

Returns

GeoPoint3[]

GetIntersections(GeoEllipse3, GeoCircle3, Tolerance)

Gets every point where the rim of an ellipse in space crosses a circle, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoCircle3 circle, Tolerance tolerance)

Parameters

ellipse GeoEllipse3

The ellipse.

circle GeoCircle3

The circle.

tolerance Tolerance

The tolerance: rims that come within its point tolerance of each other touch, and two crossings no further apart than twice it are one.

Returns

GeoPoint3[]

The points the two rims share: in order along the line the two planes share, or, in one plane, along the line square to the one from the ellipse's centre to the circle's, as two circles' lie along their radical line; with one centre on the other, in the order of the eccentric angle. The circle of radius 150 about the origin crosses the ellipse 300 by 100 lying in the plan about it at four points, the first at (118.585, 91.856, 0); the circle of radius 50 about (250, 0, 0) standing upright on the X axis meets it at (300, 0, 0) only. None when the two draw the same curve.

Remarks

Not in one plane, rims that pass within the point tolerance of each other without crossing on the line the planes share touch, at the middle of the shortest line between them: the circle of radius 50 leaning 0.01 radians, the end of its diameter along X 0.0005 above (0, 100, 0) and its rim running square to the ellipse's there, touches the ellipse 300 by 100 lying in the plan about the origin at (0, 100, 0.00025). In one plane they touch wherever they come within the tolerance of each other in space, the circle read where it is and not laid flat: at a tolerance of 0.05, an ellipse 262.6 by 0.041 in the plan, within it of the plane of a circle of radius 12 846 leaning 0.61 radians off the plan, its rim 0.0019 from the circle's, touches it.

GetIntersections(GeoEllipse3, GeoEllipse3)

Gets every point where the rims of two ellipses in space cross, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoEllipse3 other)

Parameters

ellipse GeoEllipse3
other GeoEllipse3

Returns

GeoPoint3[]

GetIntersections(GeoEllipse3, GeoEllipse3, Tolerance)

Gets every point where the rims of two ellipses in space cross, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoEllipse3 other, Tolerance tolerance)

Parameters

ellipse GeoEllipse3

The first ellipse. In one plane the pair is read from the one lying within the planar tolerance of the other's plane, or, where both do, from the one that comes first in a fixed order, so that it gives the same points to the last digit whichever is asked first; they are put in order from that one, and in the opposite order where the other is asked first.

other GeoEllipse3

The other ellipse.

tolerance Tolerance

The tolerance: rims that come within its point tolerance of each other touch, and two crossings no further apart than twice it are one.

Returns

GeoPoint3[]

The points the two rims share, in the order the circle's crossings of a circle come in. The ellipse 300 by 100 lying in the plan about the origin and the same ellipse turned a quarter cross at (94.868, 94.868, 0) first, then at the three points mirrored from it. None when the two are the same ellipse: in one plane, their centres and radii within the point tolerance and their axes along one line, or both round within it, whatever their axes, as an ellipse 100.0004 by 99.9998 and one 100.0003 by 99.9999 turned a quarter about the same centre; or, one of them a circle, its two radii one to within 1E-12 of the larger, the centres and both radii of the other within the tolerance of the circle's, whichever way its axis points, as the ellipse 100.0007 by 99.9995 and the circle of radius 100 about its centre read as an ellipse (FromCircle(GeoCircle3)), which give none asked as a circle too.

Remarks

Not in one plane, the two give the same places to the last digit whichever is asked first, and rims that pass within the point tolerance of each other without crossing touch, at the middle of the shortest line between them: the ellipse 300 by 100 lying in the plan about the origin and an ellipse 200 by 100 leaning 0.01 radians, the end of its major axis 0.0005 above (0, 100, 0) and its rim running square to the first there, touch at (0, 100, 0.00025); 0.0011 above, they do not. In one plane the rims touch wherever they come within the tolerance of each other in space, and the points come in the opposite order asked the other way: an ellipse 1.97 by 0.0023 lying within the planar tolerance of the plane of one 15 338 by 15 274, which leans 0.02 radians off its own, their rims 0.00016 apart, touch near (-5595.742, -6793.740, -12510.089) whichever is asked first. Either way, where the ellipse not read is narrow, its rim no more than 32 tolerances from its major axis beside a place found, it is searched too, across its inside from that place and beyond the stretch about it that runs within the tolerance, so that a touch on its other side, which the one read passes between two of its readings, is found as well: a rim 30 080 by 18 333 passing 0.000013 from either side of a needle 2.78 by 0.0028, leaning 0.56 radians off its plane, touches it at both sides, 0.0026 apart, and a rim 36.66 by 30.95 passing an ellipse 21.88 by 0.908 within 0.0020 either side of the end of its major axis, the two places 0.056 apart and the gap rising 4 % above the tolerance between at a tolerance of 0.01, touches it at both. Wider than that beside the place, the ellipse not read is not searched, and two touches the one read passes between two readings stay one; so do two touches the reading of a narrow ellipse read first makes one: a needle 0.754 by 0.108 passing a rim 31 536 by 14 839 at two places 0.0357 apart, the gap rising 15 % above the tolerance between at a tolerance of 0.01, is given one place. Of 7 500 rims drawn across the end of an ellipse whose b² / a is 2 to 24 tolerances, at tolerances of 0.001, 0.01 and 0.05, each passing it within the tolerance at two places with the gap rising up to 15 % above it between, 27 are given one place: 22 read from the ellipse, and 5 read from the rim, the ellipse 14.9 to 21.9 tolerances wide beside the place and the gap rising under 0.7 % above the tolerance between.

GetIntersections(GeoEllipse3, GeoTriangle3)

Gets every point where the rim of an ellipse in space crosses a triangle, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoTriangle3 triangle)

Parameters

ellipse GeoEllipse3
triangle GeoTriangle3

Returns

GeoPoint3[]

GetIntersections(GeoEllipse3, GeoTriangle3, Tolerance)

Gets every point where the rim of an ellipse in space crosses a triangle, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoTriangle3 triangle, Tolerance tolerance)

Parameters

ellipse GeoEllipse3

The ellipse.

triangle GeoTriangle3

The triangle.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Where the rim pierces the triangle, the points of the triangle it goes through, in order along the line the two planes share; where the triangle lies in the ellipse's plane, the points where the rim cuts one of its three edges, edge by edge. The triangle (150, 0, -10), (150, 200, -10), (150, 0, 10), standing upright on the line x = 150, is pierced by the ellipse 300 by 100 lying in the plan about the origin at (150, 86.603, 0) only. A triangle with no area, by IsDegenerate(Tolerance), is crossed where its sides are.

GetIntersections(GeoEllipse3, GeoPolygon3)

Gets every point where the rim of an ellipse in space crosses a polygon, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoPolygon3 polygon)

Parameters

ellipse GeoEllipse3
polygon GeoPolygon3

Returns

GeoPoint3[]

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetIntersections(GeoEllipse3, GeoPolygon3, Tolerance)

Gets every point where the rim of an ellipse in space crosses a polygon, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoPolygon3 polygon, Tolerance tolerance)

Parameters

ellipse GeoEllipse3

The ellipse.

polygon GeoPolygon3

The polygon.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Where the rim pierces the polygon, the points of the region it goes through; where the polygon lies in the ellipse's plane, the points where the rim cuts the outline, edge by edge. The square 800 by 800 about the origin in the plan is cut by the ellipse 300 by 100 lying about the same centre at none of its edges; the rectangle 200 by 300, its first edge along y = -150, at four points, (100, -94.281, 0) on its second edge first.

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetIntersections(GeoEllipse3, GeoFace3)

Gets every point where the rim of an ellipse in space crosses a face, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoFace3 face)

Parameters

ellipse GeoEllipse3
face GeoFace3

Returns

GeoPoint3[]

Exceptions

ArgumentNullException

Thrown when the face is null.

GetIntersections(GeoEllipse3, GeoFace3, Tolerance)

Gets every point where the rim of an ellipse in space crosses a face, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoFace3 face, Tolerance tolerance)

Parameters

ellipse GeoEllipse3

The ellipse.

face GeoFace3

The face.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Where the rim pierces the face, the points of its material it goes through, so a rim passing down a hole reaches nothing; where the face lies in the ellipse's plane, the points where the rim cuts the outline, then the rim of each hole.

Exceptions

ArgumentNullException

Thrown when the face is null.

GetIntersections(GeoEllipse3, GeoSolid3)

Gets every point where the rim of an ellipse in space crosses the surface of a solid, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoSolid3 solid)

Parameters

ellipse GeoEllipse3
solid GeoSolid3

Returns

GeoPoint3[]

Exceptions

ArgumentNullException

Thrown when the solid is null.

GetIntersections(GeoEllipse3, GeoSolid3, Tolerance)

Gets every point where the rim of an ellipse in space crosses the surface of a solid, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoSolid3 solid, Tolerance tolerance)

Parameters

ellipse GeoEllipse3

The ellipse.

solid GeoSolid3

The solid.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Where the rim goes in and where it comes out, face by face, the walls of any opening counted as surface and a place two faces share named once. The ellipse 300 by 100 lying in the plan about the centre of a box 200 by 300 by 200 leaves it through the two faces square to its major axis, at (±100, ±94.281, 0). A rim lying wholly inside the material crosses nothing and gives none, which CollidesWith(GeoEllipse3, GeoSolid3, Tolerance) reports instead.

Exceptions

ArgumentNullException

Thrown when the solid is null.

GetIntersections(GeoEllipse3, GeoObb3)

Gets every point where the rim of an ellipse in space crosses the surface of an oriented box, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoObb3 box)

Parameters

ellipse GeoEllipse3
box GeoObb3

Returns

GeoPoint3[]

GetIntersections(GeoEllipse3, GeoObb3, Tolerance)

Gets every point where the rim of an ellipse in space crosses the surface of an oriented box, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoObb3 box, Tolerance tolerance)

Parameters

ellipse GeoEllipse3

The ellipse.

box GeoObb3

The box.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

The points where the rim meets one of the six faces, face by face, each corner or edge counted once: the ellipse 300 by 100 lying in the plan about the centre of a box 200 by 300 by 200 meets it at (±100, ±94.281, 0). A box flat on one axis is the rectangle across it; one flat on two axes or three has no face and is met nowhere.

GetIntersections(GeoEllipse3, GeoAabb3)

Gets every point where the rim of an ellipse in space crosses the surface of an axis-aligned box, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoAabb3 box)

Parameters

ellipse GeoEllipse3
box GeoAabb3

Returns

GeoPoint3[]

GetIntersections(GeoEllipse3, GeoAabb3, Tolerance)

Gets every point where the rim of an ellipse in space crosses the surface of an axis-aligned box, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoAabb3 box, Tolerance tolerance)

Parameters

ellipse GeoEllipse3

The ellipse.

box GeoAabb3

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

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

The points the oriented box with the world's axes gives: the box 200 by 300 by 200 about the origin meets the ellipse 300 by 100 lying in the plan about it at (±100, ±94.281, 0).

GetIntersections(GeoEllipse3, GeoEdge3)

Gets every point where an edge crosses the rim of an ellipse in space, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoEdge3 edge)

Parameters

ellipse GeoEllipse3
edge GeoEdge3

Returns

GeoPoint3[]

GetIntersections(GeoEllipse3, GeoEdge3, Tolerance)

Gets every point where an edge crosses the rim of an ellipse in space, within a tolerance: as a segment or as an arc, whichever the edge is.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoEdge3 edge, Tolerance tolerance)

Parameters

ellipse GeoEllipse3

The ellipse.

edge GeoEdge3

The edge.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

GetIntersections(GeoEllipse3, GeoPolylineArc3)

Gets every point where a curved chain crosses the rim of an ellipse in space, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoPolylineArc3 chain)

Parameters

ellipse GeoEllipse3
chain GeoPolylineArc3

Returns

GeoPoint3[]

Exceptions

ArgumentNullException

Thrown when the curved chain is null.

GetIntersections(GeoEllipse3, GeoPolylineArc3, Tolerance)

Gets every point where a curved chain crosses the rim of an ellipse in space, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoPolylineArc3 chain, Tolerance tolerance)

Parameters

ellipse GeoEllipse3

The ellipse.

chain GeoPolylineArc3

The curved chain.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

What each edge gives, edge by edge in the chain's order, a corner two edges share named once.

Exceptions

ArgumentNullException

Thrown when the curved chain is null.

GetIntersections(GeoEllipse3, GeoPolygonArc3)

Gets every point where a curved loop crosses the rim of an ellipse in space, using the default tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoPolygonArc3 loop)

Parameters

ellipse GeoEllipse3
loop GeoPolygonArc3

Returns

GeoPoint3[]

Exceptions

ArgumentNullException

Thrown when the curved loop is null.

GetIntersections(GeoEllipse3, GeoPolygonArc3, Tolerance)

Gets every point where a curved loop crosses the rim of an ellipse in space, within a tolerance.

public static GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, GeoPolygonArc3 loop, Tolerance tolerance)

Parameters

ellipse GeoEllipse3

The ellipse.

loop GeoPolygonArc3

The curved loop.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

What each edge gives, edge by edge in the loop's order, a corner two edges share named once.

Exceptions

ArgumentNullException

Thrown when the curved loop is null.