Method GetIntersections
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GetIntersections(GeoArc3)
Gets every point where an arc crosses this polygon, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoArc3 arc)
Parameters
arcGeoArc3
Returns
GetIntersections(GeoArc3, Tolerance)
Gets every point where an arc crosses this polygon, within a tolerance.
public GeoPoint3[] GetIntersections(GeoArc3 arc, Tolerance tolerance)
Parameters
Returns
GetIntersections(GeoCircle3)
Gets every point where a circle crosses this polygon, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoCircle3 circle)
Parameters
circleGeoCircle3
Returns
GetIntersections(GeoCircle3, Tolerance)
Gets every point where a circle crosses this polygon, within a tolerance.
public GeoPoint3[] GetIntersections(GeoCircle3 circle, Tolerance tolerance)
Parameters
circleGeoCircle3toleranceTolerance
Returns
GetIntersections(GeoLine3)
Gets every point where a segment crosses this polygon.
public GeoPoint3[] GetIntersections(GeoLine3 line)
Parameters
lineGeoLine3
Returns
GetIntersections(GeoLine3, Tolerance)
Gets every point where a segment crosses this polygon, within a tolerance.
public GeoPoint3[] GetIntersections(GeoLine3 line, Tolerance tolerance)
Parameters
Returns
Remarks
The same points as GetIntersections(GeoPolygon3, Tolerance): the crossing, or the point of a touch.
GetIntersections(GeoEdge3)
Gets every point where an edge crosses this polygon.
public GeoPoint3[] GetIntersections(GeoEdge3 edge)
Parameters
edgeGeoEdge3
Returns
GetIntersections(GeoEdge3, Tolerance)
Gets every point where an edge crosses this polygon, within a tolerance.
public GeoPoint3[] GetIntersections(GeoEdge3 edge, Tolerance tolerance)
Parameters
Returns
GetIntersections(GeoPolylineArc3)
Gets every point where a curved chain crosses this polygon.
public GeoPoint3[] GetIntersections(GeoPolylineArc3 chain)
Parameters
chainGeoPolylineArc3The curved chain.
Returns
GetIntersections(GeoPolylineArc3, Tolerance)
Gets every point where a curved chain crosses this polygon, within a tolerance.
public GeoPoint3[] GetIntersections(GeoPolylineArc3 chain, Tolerance tolerance)
Parameters
chainGeoPolylineArc3The curved chain.
toleranceToleranceThe tolerance.
Returns
GetIntersections(GeoPolygonArc3)
Gets every point where a curved loop crosses this polygon.
public GeoPoint3[] GetIntersections(GeoPolygonArc3 loop)
Parameters
loopGeoPolygonArc3The curved loop.
Returns
GetIntersections(GeoPolygonArc3, Tolerance)
Gets every point where a curved loop crosses this polygon, within a tolerance.
public GeoPoint3[] GetIntersections(GeoPolygonArc3 loop, Tolerance tolerance)
Parameters
loopGeoPolygonArc3The curved loop.
toleranceToleranceThe tolerance.
Returns
GetIntersections(GeoPolyline3)
Gets every point where this polygon crosses a straight chain: the same points, in the same order, as GetIntersections(GeoPolygon3).
public GeoPoint3[] GetIntersections(GeoPolyline3 polyline)
Parameters
polylineGeoPolyline3
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
GetIntersections(GeoPolyline3, Tolerance)
Gets every point where this polygon crosses a straight chain, within a tolerance: the same points, in the same order, as GetIntersections(GeoPolygon3, Tolerance).
public GeoPoint3[] GetIntersections(GeoPolyline3 polyline, Tolerance tolerance)
Parameters
polylineGeoPolyline3toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
GetIntersections(GeoTriangle3)
Gets the points where this polygon and a triangle cross: the same points, in the same order, as GetIntersections(GeoTriangle3, GeoPolygon3).
public GeoPoint3[] GetIntersections(GeoTriangle3 triangle)
Parameters
triangleGeoTriangle3The triangle.
Returns
Remarks
The triangle with corners (0, 0, 0), (100, 0, 0) and (0, 100, 0) and the square 100 by 100 standing upright across it along y = 50 from z = -50 to 50 cross at (50, 50, 0) and (0, 50, 0).
GetIntersections(GeoTriangle3, Tolerance)
Gets the points where this polygon and a triangle cross, within a tolerance: the same points, in the same order, as GetIntersections(GeoTriangle3, GeoPolygon3, Tolerance).
public GeoPoint3[] GetIntersections(GeoTriangle3 triangle, Tolerance tolerance)
Parameters
triangleGeoTriangle3The triangle.
toleranceToleranceThe tolerance.
Returns
Remarks
The triangle with corners (0, 0, 0), (100, 0, 0) and (0, 100, 0) and the square 100 by 100 standing upright across it along y = 50 from z = -50 to 50 cross at (50, 50, 0) and (0, 50, 0).
GetIntersections(GeoPolygon3)
Gets the points where this polygon and another cross: the same points, in the same order, as GetIntersections(GeoPolygon3, GeoPolygon3).
public GeoPoint3[] GetIntersections(GeoPolygon3 other)
Parameters
otherGeoPolygon3The polygon.
Returns
Remarks
A square 100 by 100 lying in the floor with a corner at the origin, and one standing upright across it along y = 50 from z = -50 to 50, cross at (100, 50, 0) and (0, 50, 0); two squares in the floor, the second moved 50 along X and 50 along Y, cross at (100, 50, 0) and (50, 100, 0).
Exceptions
- ArgumentNullException
Thrown when the other polygon is null.
GetIntersections(GeoPolygon3, Tolerance)
Gets the points where this polygon and another cross, within a tolerance: the same points, in the same order, as GetIntersections(GeoPolygon3, GeoPolygon3, Tolerance).
public GeoPoint3[] GetIntersections(GeoPolygon3 other, Tolerance tolerance)
Parameters
otherGeoPolygon3The polygon.
toleranceToleranceThe tolerance.
Returns
Remarks
A square 100 by 100 lying in the floor with a corner at the origin, and one standing upright across it along y = 50 from z = -50 to 50, cross at (100, 50, 0) and (0, 50, 0); two squares in the floor, the second moved 50 along X and 50 along Y, cross at (100, 50, 0) and (50, 100, 0).
Exceptions
- ArgumentNullException
Thrown when the other polygon is null.
GetIntersections(GeoFace3)
Gets the points where this polygon and the material of a face cross: the same points, in the same order, as GetIntersections(GeoFace3, GeoPolygon3).
public GeoPoint3[] GetIntersections(GeoFace3 face)
Parameters
faceGeoFace3The face, read by its material.
Returns
Remarks
The square 100 by 100 in the floor with a hole 40 by 40 in its middle, and a square 100 by 100 standing upright across it along y = 50 from z = -50 to 50, cross where the material ends: (100, 50, 0), (0, 50, 0), (70, 50, 0) and (30, 50, 0).
Exceptions
- ArgumentNullException
Thrown when the face is null.
GetIntersections(GeoFace3, Tolerance)
Gets the points where this polygon and the material of a face cross, within a tolerance: the same points, in the same order, as GetIntersections(GeoFace3, GeoPolygon3, Tolerance).
public GeoPoint3[] GetIntersections(GeoFace3 face, Tolerance tolerance)
Parameters
Returns
Remarks
The square 100 by 100 in the floor with a hole 40 by 40 in its middle, and a square 100 by 100 standing upright across it along y = 50 from z = -50 to 50, cross where the material ends: (100, 50, 0), (0, 50, 0), (70, 50, 0) and (30, 50, 0).
Exceptions
- ArgumentNullException
Thrown when the face is null.
GetIntersections(GeoPlane3)
Gets the points where the edges of this polygon cross a plane: the same points, in the same order, as GetIntersections(GeoPlane3, GeoPolygon3).
public GeoPoint3[] GetIntersections(GeoPlane3 plane)
Parameters
planeGeoPlane3The plane.
Returns
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.
GetIntersections(GeoPlane3, Tolerance)
Gets the points where the edges of this polygon cross a plane, within a tolerance: the same points, in the same order, as GetIntersections(GeoPlane3, GeoPolygon3, Tolerance).
public GeoPoint3[] GetIntersections(GeoPlane3 plane, Tolerance tolerance)
Parameters
Returns
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.
GetIntersections(GeoRay3)
Gets where a ray crosses this polygon, as a list: the same points, in the same order, as GetIntersections(GeoRay3, GeoPolygon3).
public GeoPoint3[] GetIntersections(GeoRay3 ray)
Parameters
rayGeoRay3The ray.
Returns
Remarks
A ray from (20, 20, 10) pointing straight down crosses the square 100 by 100 in the floor with a corner at the origin at (20, 20, 0).
GetIntersections(GeoRay3, Tolerance)
Gets where a ray crosses this polygon, as a list, within a tolerance: the same points, in the same order, as GetIntersections(GeoRay3, GeoPolygon3, Tolerance).
public GeoPoint3[] GetIntersections(GeoRay3 ray, Tolerance tolerance)
Parameters
Returns
Remarks
A ray from (20, 20, 10) pointing straight down crosses the square 100 by 100 in the floor with a corner at the origin at (20, 20, 0).
GetIntersections(GeoSolid3)
Gets the points where this polygon and the surface of a solid cross: the same points, in the same order, as GetIntersections(GeoPolygon3, GeoSolid3).
public GeoPoint3[] GetIntersections(GeoSolid3 solid)
Parameters
solidGeoSolid3The solid, read by its material.
Returns
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) lying across it at half its height cross at (0, 0, 50), (100, 0, 50), (100, 100, 50) and (0, 100, 50).
Exceptions
- ArgumentNullException
Thrown when the solid is null.
GetIntersections(GeoSolid3, Tolerance)
Gets the points where this polygon and the surface of a solid cross, within a tolerance: the same points, in the same order, as GetIntersections(GeoPolygon3, GeoSolid3, Tolerance).
public GeoPoint3[] GetIntersections(GeoSolid3 solid, Tolerance tolerance)
Parameters
Returns
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) lying across it at half its height cross at (0, 0, 50), (100, 0, 50), (100, 100, 50) and (0, 100, 50).
Exceptions
- ArgumentNullException
Thrown when the solid is null.
GetIntersections(GeoObb3)
Gets the points where this polygon and the surface of an oriented box cross: the same points, in the same order, as GetIntersections(GeoPolygon3, GeoObb3).
public GeoPoint3[] GetIntersections(GeoObb3 box)
Parameters
boxGeoObb3The oriented box.
Returns
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 box is null.
GetIntersections(GeoObb3, Tolerance)
Gets the points where this polygon and the surface of an oriented box cross, within a tolerance: the same points, in the same order, as GetIntersections(GeoPolygon3, GeoObb3, Tolerance).
public GeoPoint3[] GetIntersections(GeoObb3 box, Tolerance tolerance)
Parameters
Returns
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 box is null.
GetIntersections(GeoAabb3)
Gets the points where this polygon and the surface of an axis-aligned box cross: the same points, in the same order, as GetIntersections(GeoPolygon3, GeoAabb3).
public GeoPoint3[] GetIntersections(GeoAabb3 box)
Parameters
boxGeoAabb3The axis-aligned box.
Returns
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.
GetIntersections(GeoAabb3, Tolerance)
Gets the points where this polygon and the surface of an axis-aligned box cross, within a tolerance: the same points, in the same order, as GetIntersections(GeoPolygon3, GeoAabb3, Tolerance).
public GeoPoint3[] GetIntersections(GeoAabb3 box, Tolerance tolerance)
Parameters
Returns
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.
GetIntersections(GeoSphere3)
Gets the points where this polygon crosses the surface of a ball, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoSphere3 sphere)
Parameters
sphereGeoSphere3
Returns
GetIntersections(GeoSphere3, Tolerance)
Gets the points where this polygon crosses the surface of a ball, within a tolerance.
public GeoPoint3[] GetIntersections(GeoSphere3 sphere, Tolerance tolerance)
Parameters
sphereGeoSphere3toleranceTolerance
Returns
GetIntersections(GeoSpline3)
Gets the points where this polygon meets a spline, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoSpline3 spline)
Parameters
splineGeoSpline3
Returns
Exceptions
- ArgumentNullException
Thrown when the spline is null.
GetIntersections(GeoSpline3, Tolerance)
Gets the points where this polygon meets a spline, within a tolerance.
public GeoPoint3[] GetIntersections(GeoSpline3 spline, Tolerance tolerance)
Parameters
splineGeoSpline3toleranceTolerance
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 point where this polygon crosses an infinite line, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoXLine3 xline)
Parameters
xlineGeoXLine3
Returns
GetIntersections(GeoXLine3, Tolerance)
Gets the point where this polygon crosses an infinite line, within a tolerance.
public GeoPoint3[] GetIntersections(GeoXLine3 xline, Tolerance tolerance)