Table of Contents

Method GetIntersections

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

GetIntersections(GeoPolylineArc3)

Gets every point where this chain crosses a curved chain.

public GeoPoint3[] GetIntersections(GeoPolylineArc3 other)

Parameters

other GeoPolylineArc3

Returns

GeoPoint3[]

Remarks

Every pair of edges is asked, so the work grows with the two edge counts multiplied. Each edge carries a box round itself and a pair whose boxes cannot reach each other is dropped before any arithmetic, which is what makes it usable on bars that are mostly far apart.

GetIntersections(GeoPolylineArc3, Tolerance)

Gets every point where this chain crosses a curved chain, within a tolerance.

public GeoPoint3[] GetIntersections(GeoPolylineArc3 other, Tolerance tolerance)

Parameters

other GeoPolylineArc3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoPolygonArc3)

Gets every point where this chain crosses a curved loop.

public GeoPoint3[] GetIntersections(GeoPolygonArc3 other)

Parameters

other GeoPolygonArc3

Returns

GeoPoint3[]

Remarks

Every pair of edges is asked, so the work grows with the two edge counts multiplied. Each edge carries a box round itself and a pair whose boxes cannot reach each other is dropped before any arithmetic, which is what makes it usable on bars that are mostly far apart.

GetIntersections(GeoPolygonArc3, Tolerance)

Gets every point where this chain crosses a curved loop, within a tolerance.

public GeoPoint3[] GetIntersections(GeoPolygonArc3 other, Tolerance tolerance)

Parameters

other GeoPolygonArc3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoPlane3)

Gets every point where this chain crosses a plane.

public GeoPoint3[] GetIntersections(GeoPlane3 plane)

Parameters

plane GeoPlane3

Returns

GeoPoint3[]

GetIntersections(GeoPlane3, Tolerance)

Gets every point where this chain crosses a plane, within a tolerance.

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

Parameters

plane GeoPlane3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoLine3)

Gets every point where this chain crosses a segment.

public GeoPoint3[] GetIntersections(GeoLine3 line)

Parameters

line GeoLine3

Returns

GeoPoint3[]

GetIntersections(GeoLine3, Tolerance)

Gets every point where this chain crosses a segment, within a tolerance.

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

Parameters

line GeoLine3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoRay3)

Gets every point where this chain crosses a ray.

public GeoPoint3[] GetIntersections(GeoRay3 ray)

Parameters

ray GeoRay3

Returns

GeoPoint3[]

GetIntersections(GeoRay3, Tolerance)

Gets every point where this chain crosses a ray, within a tolerance.

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

Parameters

ray GeoRay3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoArc3)

Gets every point where this chain crosses an arc.

public GeoPoint3[] GetIntersections(GeoArc3 arc)

Parameters

arc GeoArc3

Returns

GeoPoint3[]

GetIntersections(GeoArc3, Tolerance)

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

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

Parameters

arc GeoArc3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoCircle3)

Gets every point where this chain crosses a circle.

public GeoPoint3[] GetIntersections(GeoCircle3 circle)

Parameters

circle GeoCircle3

Returns

GeoPoint3[]

GetIntersections(GeoCircle3, Tolerance)

Gets every point where this chain crosses a circle, within a tolerance.

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

Parameters

circle GeoCircle3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoTriangle3)

Gets every point where this chain crosses a triangle.

public GeoPoint3[] GetIntersections(GeoTriangle3 triangle)

Parameters

triangle GeoTriangle3

Returns

GeoPoint3[]

GetIntersections(GeoTriangle3, Tolerance)

Gets every point where this chain crosses a triangle, within a tolerance.

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

Parameters

triangle GeoTriangle3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoPolygon3)

Gets every point where this chain crosses a polygon.

public GeoPoint3[] GetIntersections(GeoPolygon3 polygon)

Parameters

polygon GeoPolygon3

Returns

GeoPoint3[]

GetIntersections(GeoPolygon3, Tolerance)

Gets every point where this chain crosses a polygon, within a tolerance.

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

Parameters

polygon GeoPolygon3
tolerance Tolerance

Returns

GeoPoint3[]

Remarks

A segment meets the polygon as it is however short: at a hundredth, the chain lying level 0.004 over the square 10 by 10 in the floor with a corner at the origin from (2, 5, 0.004) to (5, 5, 0.004), down through it to (5, 5, -0.005) and on level to (8, 5, -0.005) meets it at (5, 5, 0), where its segment 0.009 long, no longer than the tolerance, met nothing. A triangle and a face are met the same way.

GetIntersections(GeoFace3)

Gets every point where this chain crosses a face.

public GeoPoint3[] GetIntersections(GeoFace3 face)

Parameters

face GeoFace3

Returns

GeoPoint3[]

GetIntersections(GeoFace3, Tolerance)

Gets every point where this chain crosses a face, within a tolerance.

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

Parameters

face GeoFace3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoObb3)

Gets every point where this chain crosses a box.

public GeoPoint3[] GetIntersections(GeoObb3 box)

Parameters

box GeoObb3

Returns

GeoPoint3[]

GetIntersections(GeoObb3, Tolerance)

Gets every point where this chain crosses a box, within a tolerance.

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

Parameters

box GeoObb3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoAabb3)

Gets every point where this chain crosses a square box.

public GeoPoint3[] GetIntersections(GeoAabb3 box)

Parameters

box GeoAabb3

Returns

GeoPoint3[]

GetIntersections(GeoAabb3, Tolerance)

Gets every point where this chain crosses a square box, within a tolerance.

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

Parameters

box GeoAabb3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoSolid3)

Gets every point where this chain crosses a body.

public GeoPoint3[] GetIntersections(GeoSolid3 solid)

Parameters

solid GeoSolid3

Returns

GeoPoint3[]

GetIntersections(GeoSolid3, Tolerance)

Gets every point where this chain crosses a body, within a tolerance.

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

Parameters

solid GeoSolid3
tolerance Tolerance

Returns

GeoPoint3[]

Remarks

A straight segment is crossed as it is however short: at a hundredth, the chain from (2, 5, 0.054) down to (5, 5, 0.004), through the top of the box 10 by 10 by 10 standing under the floor to (5, 5, -0.005) and on to (8, 5, -0.055) crosses it at (5, 5, 0), where its segment 0.009 long, no longer than the tolerance, crossed nothing and it was given no point.

GetIntersections(GeoPolyline3)

Gets every point where this chain crosses another straight chain.

public GeoPoint3[] GetIntersections(GeoPolyline3 other)

Parameters

other GeoPolyline3

Returns

GeoPoint3[]

GetIntersections(GeoPolyline3, Tolerance)

Gets every point where this chain crosses another straight chain, within a tolerance.

public GeoPoint3[] GetIntersections(GeoPolyline3 other, Tolerance tolerance)

Parameters

other GeoPolyline3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoEdge3)

Gets every point where an edge crosses this straight chain: the same points, in the same order, as GetIntersections(GeoPolyline3).

public GeoPoint3[] GetIntersections(GeoEdge3 edge)

Parameters

edge GeoEdge3

The edge.

Returns

GeoPoint3[]

Remarks

A straight edge from (0, -50, 0) to (0, 50, 0) crosses the chain through (-50, 0, 0), (50, 0, 0) and (50, 100, 0) at the origin.

GetIntersections(GeoEdge3, Tolerance)

Gets every point where an edge crosses this straight chain, within a tolerance: the same points, in the same order, as GetIntersections(GeoPolyline3, Tolerance).

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

Parameters

edge GeoEdge3

The edge.

tolerance Tolerance

The tolerance.

Returns

GeoPoint3[]

Remarks

A straight edge from (0, -50, 0) to (0, 50, 0) crosses the chain through (-50, 0, 0), (50, 0, 0) and (50, 100, 0) at the origin.

GetIntersections(GeoSphere3)

Gets the points where this polyline crosses the surface of a ball, using the default tolerance.

public GeoPoint3[] GetIntersections(GeoSphere3 sphere)

Parameters

sphere GeoSphere3

Returns

GeoPoint3[]

GetIntersections(GeoSphere3, Tolerance)

Gets the points where this polyline crosses the surface of a ball, within a tolerance.

public GeoPoint3[] GetIntersections(GeoSphere3 sphere, Tolerance tolerance)

Parameters

sphere GeoSphere3
tolerance Tolerance

Returns

GeoPoint3[]

GetIntersections(GeoSpline3)

Gets the points where this polyline meets a spline, using the default tolerance.

public GeoPoint3[] GetIntersections(GeoSpline3 spline)

Parameters

spline GeoSpline3

Returns

GeoPoint3[]

Exceptions

ArgumentNullException

Thrown when the spline is null.

GetIntersections(GeoSpline3, Tolerance)

Gets the points where this polyline meets a spline, within a tolerance.

public GeoPoint3[] GetIntersections(GeoSpline3 spline, Tolerance tolerance)

Parameters

spline GeoSpline3
tolerance Tolerance

Returns

GeoPoint3[]

The same points the spline gives, in order along the spline from its start.

Exceptions

ArgumentNullException

Thrown when the spline is null.

GetIntersections(GeoXLine3)

Gets the points where this polyline crosses an infinite line, using the default tolerance.

public GeoPoint3[] GetIntersections(GeoXLine3 xline)

Parameters

xline GeoXLine3

Returns

GeoPoint3[]

GetIntersections(GeoXLine3, Tolerance)

Gets the points where this polyline crosses an infinite line, within a tolerance.

public GeoPoint3[] GetIntersections(GeoXLine3 xline, Tolerance tolerance)

Parameters

xline GeoXLine3
tolerance Tolerance

Returns

GeoPoint3[]