Table of Contents

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

arc GeoArc3

The arc.

intersections GeoPoint3[]

The crossing points when the method returns true; empty otherwise.

Returns

bool

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

arc GeoArc3

The arc.

intersections GeoPoint3[]

The crossing points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

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

circle GeoCircle3

The circle.

intersections GeoPoint3[]

The crossing points when the method returns true; empty otherwise.

Returns

bool

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

circle GeoCircle3

The circle.

intersections GeoPoint3[]

The crossing points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

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

polyline GeoPolyline3
intersections GeoPoint3[]

Returns

bool

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

polyline GeoPolyline3
intersections GeoPoint3[]
tolerance Tolerance

Returns

bool

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

triangle GeoTriangle3

The triangle.

intersections GeoPoint3[]

The crossing points when the method returns true; empty otherwise.

Returns

bool

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

triangle GeoTriangle3

The triangle.

intersections GeoPoint3[]

The crossing points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

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

polygon GeoPolygon3

The polygon.

intersections GeoPoint3[]

The crossing points when the method returns true; empty otherwise.

Returns

bool

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

polygon GeoPolygon3

The polygon.

intersections GeoPoint3[]

The crossing points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

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

face GeoFace3

The face, read by its material.

intersections GeoPoint3[]

The crossing points when the method returns true; empty otherwise.

Returns

bool

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

face GeoFace3

The face, read by its material.

intersections GeoPoint3[]

The crossing points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

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

spline GeoSpline3

The spline.

intersections GeoPoint3[]

The points when the method returns true; empty otherwise.

Returns

bool

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

spline GeoSpline3

The spline.

intersections GeoPoint3[]

The points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

Exceptions

ArgumentNullException

Thrown when the spline is null.