Method TryIntersectWith
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
TryIntersectWith(GeoArc3, out GeoPoint3[])
Tries to find where an arc crosses the surface of this solid, 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 solid, 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 solid, 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 solid, 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 solid crosses a straight chain: the same answer, and the same points in the same order, as TryIntersectWith(GeoSolid3, 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 solid crosses a straight chain, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoSolid3, 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 solid and a triangle cross: the same answer, and the same points in the same order, as TryIntersectWith(GeoTriangle3, GeoSolid3, 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) lying across it at half its height cross at (0, 0, 50), (100, 0, 50), (100, 100, 50) and (0, 100, 50); a triangle wholly inside the box crosses nothing and touches it.
TryIntersectWith(GeoTriangle3, out GeoPoint3[], Tolerance)
Tries to find where the surface of this solid and a triangle cross, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoTriangle3, GeoSolid3, 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) lying across it at half its height cross at (0, 0, 50), (100, 0, 50), (100, 100, 50) and (0, 100, 50); a triangle wholly inside the box crosses nothing and touches it.
TryIntersectWith(GeoPolygon3, out GeoPoint3[])
Tries to find where the surface of this solid and a polygon cross: the same answer, and the same points in the same order, as TryIntersectWith(GeoPolygon3, GeoSolid3, 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) 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 polygon is null.
TryIntersectWith(GeoPolygon3, out GeoPoint3[], Tolerance)
Tries to find where the surface of this solid and a polygon cross, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoPolygon3, GeoSolid3, 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) 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 polygon is null.
TryIntersectWith(GeoFace3, out GeoPoint3[])
Tries to find where the surface of this solid and the material of a face cross: the same answer, and the same points in the same order, as TryIntersectWith(GeoFace3, GeoSolid3, 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: the box passes through the hole.
Exceptions
- ArgumentNullException
Thrown when the face is null.
TryIntersectWith(GeoFace3, out GeoPoint3[], Tolerance)
Tries to find where the surface of this solid and the material of a face cross, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoFace3, GeoSolid3, 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: the box passes through the hole.
Exceptions
- ArgumentNullException
Thrown when the face is null.
TryIntersectWith(GeoSpline3, out GeoPoint3[])
Tries to find where this solid 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 solid 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.