Method TryIntersectWith
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
TryIntersectWith(GeoArc3, out GeoPoint3[])
Tries to find where an arc crosses the surface of this oriented box, using the default tolerance.
public bool TryIntersectWith(GeoArc3 arc, out GeoPoint3[] intersections)
Parameters
arcGeoArc3The arc.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
Returns
TryIntersectWith(GeoArc3, out GeoPoint3[], Tolerance)
Tries to find where an arc crosses the surface of this oriented box, within a tolerance.
public bool TryIntersectWith(GeoArc3 arc, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
arcGeoArc3The arc.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
TryIntersectWith(GeoCircle3, out GeoPoint3[])
Tries to find where a circle crosses the surface of this oriented box, using the default tolerance.
public bool TryIntersectWith(GeoCircle3 circle, out GeoPoint3[] intersections)
Parameters
circleGeoCircle3The circle.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
Returns
TryIntersectWith(GeoCircle3, out GeoPoint3[], Tolerance)
Tries to find where a circle crosses the surface of this oriented box, within a tolerance.
public bool TryIntersectWith(GeoCircle3 circle, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
circleGeoCircle3The circle.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
TryIntersectWith(GeoPolyline3, out GeoPoint3[])
Tries to find where this oriented box crosses a straight chain: the same answer, and the same points in the same order, as TryIntersectWith(GeoObb3, out GeoPoint3[]).
public bool TryIntersectWith(GeoPolyline3 polyline, out GeoPoint3[] intersections)
Parameters
polylineGeoPolyline3intersectionsGeoPoint3[]
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
TryIntersectWith(GeoPolyline3, out GeoPoint3[], Tolerance)
Tries to find where this oriented box crosses a straight chain, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoObb3, out GeoPoint3[], Tolerance).
public bool TryIntersectWith(GeoPolyline3 polyline, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
polylineGeoPolyline3intersectionsGeoPoint3[]toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
TryIntersectWith(GeoTriangle3, out GeoPoint3[])
Tries to find where the surface of this oriented box and a triangle cross: the same answer, and the same points in the same order, as TryIntersectWith(GeoTriangle3, GeoObb3, out GeoPoint3[]).
public bool TryIntersectWith(GeoTriangle3 triangle, out GeoPoint3[] intersections)
Parameters
triangleGeoTriangle3The triangle.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
Returns
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 oriented box and a triangle cross, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoTriangle3, GeoObb3, out GeoPoint3[], Tolerance).
public bool TryIntersectWith(GeoTriangle3 triangle, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
triangleGeoTriangle3The triangle.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
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 oriented box and a polygon cross: the same answer, and the same points in the same order, as TryIntersectWith(GeoPolygon3, GeoObb3, out GeoPoint3[]).
public bool TryIntersectWith(GeoPolygon3 polygon, out GeoPoint3[] intersections)
Parameters
polygonGeoPolygon3The polygon.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
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 polygon is null.
TryIntersectWith(GeoPolygon3, out GeoPoint3[], Tolerance)
Tries to find where the surface of this oriented box and a polygon cross, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoPolygon3, GeoObb3, out GeoPoint3[], Tolerance).
public bool TryIntersectWith(GeoPolygon3 polygon, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
polygonGeoPolygon3The polygon.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
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 polygon is null.
TryIntersectWith(GeoFace3, out GeoPoint3[])
Tries to find where the surface of this oriented box and the material of a face cross: the same answer, and the same points in the same order, as TryIntersectWith(GeoFace3, GeoObb3, out GeoPoint3[]).
public bool TryIntersectWith(GeoFace3 face, out GeoPoint3[] intersections)
Parameters
faceGeoFace3The face, read by its material.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
Returns
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 oriented 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, GeoObb3, out GeoPoint3[], Tolerance).
public bool TryIntersectWith(GeoFace3 face, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
faceGeoFace3The face, read by its material.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
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 oriented box: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, GeoObb3, out GeoPoint3[]).
public bool TryIntersectWith(GeoPlane3 plane, out GeoPoint3[] intersections)
Parameters
planeGeoPlane3The plane.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
Returns
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 oriented box, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoPlane3, GeoObb3, out GeoPoint3[], Tolerance).
public bool TryIntersectWith(GeoPlane3 plane, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
planeGeoPlane3The plane.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
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
splineGeoSpline3The spline.
intersectionsGeoPoint3[]The points when the method returns true; empty otherwise.
Returns
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
splineGeoSpline3The spline.
intersectionsGeoPoint3[]The points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
Exceptions
- ArgumentNullException
Thrown when the spline is null.