Table of Contents

Method CollidesWith

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

CollidesWith(GeoSolid3)

Checks whether this face touches a solid, using the default tolerance.

public bool CollidesWith(GeoSolid3 solid)

Parameters

solid GeoSolid3

Returns

bool

CollidesWith(GeoSolid3, Tolerance)

Checks whether this face touches a solid, within a tolerance.

public bool CollidesWith(GeoSolid3 solid, Tolerance tolerance)

Parameters

solid GeoSolid3
tolerance Tolerance

Returns

bool

CollidesWith(GeoLine3)

Checks whether this face touches a segment, using the default tolerance.

public bool CollidesWith(GeoLine3 line)

Parameters

line GeoLine3

Returns

bool

CollidesWith(GeoLine3, Tolerance)

Checks whether this face touches a segment, within a tolerance.

public bool CollidesWith(GeoLine3 line, Tolerance tolerance)

Parameters

line GeoLine3
tolerance Tolerance

Returns

bool

CollidesWith(GeoRay3)

Checks whether a ray runs into this face, using the default tolerance.

public bool CollidesWith(GeoRay3 ray)

Parameters

ray GeoRay3

Returns

bool

CollidesWith(GeoRay3, Tolerance)

Checks whether a ray runs into this face, within a tolerance.

public bool CollidesWith(GeoRay3 ray, Tolerance tolerance)

Parameters

ray GeoRay3
tolerance Tolerance

Returns

bool

CollidesWith(GeoArc3)

Checks whether this face touches an arc, using the default tolerance.

public bool CollidesWith(GeoArc3 arc)

Parameters

arc GeoArc3

Returns

bool

CollidesWith(GeoArc3, Tolerance)

Checks whether this face touches an arc, within a tolerance.

public bool CollidesWith(GeoArc3 arc, Tolerance tolerance)

Parameters

arc GeoArc3
tolerance Tolerance

Returns

bool

CollidesWith(GeoCircle3)

Checks whether this face touches a circle, using the default tolerance.

public bool CollidesWith(GeoCircle3 circle)

Parameters

circle GeoCircle3

Returns

bool

CollidesWith(GeoCircle3, Tolerance)

Checks whether this face touches a circle, within a tolerance.

public bool CollidesWith(GeoCircle3 circle, Tolerance tolerance)

Parameters

circle GeoCircle3
tolerance Tolerance

Returns

bool

CollidesWith(GeoEdge3)

Checks whether this face touches an edge.

public bool CollidesWith(GeoEdge3 edge)

Parameters

edge GeoEdge3

Returns

bool

CollidesWith(GeoEdge3, Tolerance)

Checks whether this face touches an edge, within a tolerance.

public bool CollidesWith(GeoEdge3 edge, Tolerance tolerance)

Parameters

edge GeoEdge3

The edge.

tolerance Tolerance

The tolerance.

Returns

bool

CollidesWith(GeoPolylineArc3)

Checks whether this face touches a curved chain.

public bool CollidesWith(GeoPolylineArc3 chain)

Parameters

chain GeoPolylineArc3

The curved chain.

Returns

bool

CollidesWith(GeoPolylineArc3, Tolerance)

Checks whether this face touches a curved chain, within a tolerance.

public bool CollidesWith(GeoPolylineArc3 chain, Tolerance tolerance)

Parameters

chain GeoPolylineArc3

The curved chain.

tolerance Tolerance

The tolerance.

Returns

bool

CollidesWith(GeoPolygonArc3)

Checks whether this face touches a curved loop.

public bool CollidesWith(GeoPolygonArc3 loop)

Parameters

loop GeoPolygonArc3

The curved loop.

Returns

bool

CollidesWith(GeoPolygonArc3, Tolerance)

Checks whether this face touches a curved loop, within a tolerance.

public bool CollidesWith(GeoPolygonArc3 loop, Tolerance tolerance)

Parameters

loop GeoPolygonArc3

The curved loop.

tolerance Tolerance

The tolerance.

Returns

bool

CollidesWith(GeoPolyline3)

Checks whether this face touches a straight chain: the same answer as CollidesWith(GeoFace3).

public bool CollidesWith(GeoPolyline3 polyline)

Parameters

polyline GeoPolyline3

Returns

bool

Exceptions

ArgumentNullException

Thrown when the chain is null.

CollidesWith(GeoPolyline3, Tolerance)

Checks whether this face touches a straight chain, within a tolerance: the same answer as CollidesWith(GeoFace3, Tolerance).

public bool CollidesWith(GeoPolyline3 polyline, Tolerance tolerance)

Parameters

polyline GeoPolyline3
tolerance Tolerance

Returns

bool

Exceptions

ArgumentNullException

Thrown when the chain is null.

CollidesWith(GeoTriangle3)

Checks whether the material of this face and a triangle touch: the same answer as CollidesWith(GeoTriangle3, GeoFace3).

public bool CollidesWith(GeoTriangle3 triangle)

Parameters

triangle GeoTriangle3

The triangle.

Returns

bool

Remarks

The square 100 by 100 in the floor with a hole 40 by 40 in its middle and the triangle with corners (40, 50, -10), (60, 50, -10) and (50, 50, 10), standing in the hole, do not meet; moved 30 along X, onto the material, they do.

CollidesWith(GeoTriangle3, Tolerance)

Checks whether the material of this face and a triangle touch, within a tolerance: the same answer as CollidesWith(GeoTriangle3, GeoFace3, Tolerance).

public bool CollidesWith(GeoTriangle3 triangle, Tolerance tolerance)

Parameters

triangle GeoTriangle3

The triangle.

tolerance Tolerance

The tolerance.

Returns

bool

Remarks

The square 100 by 100 in the floor with a hole 40 by 40 in its middle and the triangle with corners (40, 50, -10), (60, 50, -10) and (50, 50, 10), standing in the hole, do not meet; moved 30 along X, onto the material, they do.

CollidesWith(GeoPolygon3)

Checks whether the material of this face and a polygon touch: the same answer as CollidesWith(GeoFace3, GeoPolygon3).

public bool CollidesWith(GeoPolygon3 polygon)

Parameters

polygon GeoPolygon3

The polygon.

Returns

bool

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 polygon is null.

CollidesWith(GeoPolygon3, Tolerance)

Checks whether the material of this face and a polygon touch, within a tolerance: the same answer as CollidesWith(GeoFace3, GeoPolygon3, Tolerance).

public bool CollidesWith(GeoPolygon3 polygon, Tolerance tolerance)

Parameters

polygon GeoPolygon3

The polygon.

tolerance Tolerance

The tolerance.

Returns

bool

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 polygon is null.

CollidesWith(GeoFace3)

Checks whether the material of this face and of another touch: the same answer as CollidesWith(GeoFace3, GeoFace3).

public bool CollidesWith(GeoFace3 other)

Parameters

other GeoFace3

The face, read by its material.

Returns

bool

Remarks

The square 100 by 100 in the floor with a hole 40 by 40 in its middle is not touched by a square 20 by 20 about (50, 50) lying in its hole, and is by one about (15, 50); a face standing wholly in the hole crosses nothing.

Exceptions

ArgumentNullException

Thrown when the other face is null.

CollidesWith(GeoFace3, Tolerance)

Checks whether the material of this face and of another touch, within a tolerance: the same answer as CollidesWith(GeoFace3, GeoFace3, Tolerance).

public bool CollidesWith(GeoFace3 other, Tolerance tolerance)

Parameters

other GeoFace3

The face, read by its material.

tolerance Tolerance

The tolerance.

Returns

bool

Remarks

The square 100 by 100 in the floor with a hole 40 by 40 in its middle is not touched by a square 20 by 20 about (50, 50) lying in its hole, and is by one about (15, 50); a face standing wholly in the hole crosses nothing.

Exceptions

ArgumentNullException

Thrown when the other face is null.

CollidesWith(GeoPlane3)

Checks whether the material of this face touches a plane: the same answer as CollidesWith(GeoPlane3, GeoFace3).

public bool CollidesWith(GeoPlane3 plane)

Parameters

plane GeoPlane3

The plane.

Returns

bool

Remarks

The floor plane and the square 100 by 100 with a hole 40 by 40 in its middle, stood upright along y = 50 from z = -50 to 50, cross at (100, 50, 0) and (0, 50, 0) on the outline and at (70, 50, 0) and (30, 50, 0) on the rim of the hole.

CollidesWith(GeoPlane3, Tolerance)

Checks whether the material of this face touches a plane, within a tolerance: the same answer as CollidesWith(GeoPlane3, GeoFace3, Tolerance).

public bool CollidesWith(GeoPlane3 plane, Tolerance tolerance)

Parameters

plane GeoPlane3

The plane.

tolerance Tolerance

The tolerance.

Returns

bool

Remarks

The floor plane and the square 100 by 100 with a hole 40 by 40 in its middle, stood upright along y = 50 from z = -50 to 50, cross at (100, 50, 0) and (0, 50, 0) on the outline and at (70, 50, 0) and (30, 50, 0) on the rim of the hole.

CollidesWith(GeoObb3)

Checks whether the material of this face and an oriented box touch: the same answer as CollidesWith(GeoFace3, GeoObb3).

public bool CollidesWith(GeoObb3 box)

Parameters

box GeoObb3

The oriented box.

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 and touches nothing; without the hole it crosses the box at four points at height 50.

Exceptions

ArgumentNullException

Thrown when the box is null.

CollidesWith(GeoObb3, Tolerance)

Checks whether the material of this face and an oriented box touch, within a tolerance: the same answer as CollidesWith(GeoFace3, GeoObb3, Tolerance).

public bool CollidesWith(GeoObb3 box, Tolerance tolerance)

Parameters

box GeoObb3

The oriented box.

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 and touches nothing; without the hole it crosses the box at four points at height 50.

Exceptions

ArgumentNullException

Thrown when the box is null.

CollidesWith(GeoAabb3)

Checks whether the material of this face and an axis-aligned box touch: the same answer as CollidesWith(GeoFace3, GeoAabb3).

public bool CollidesWith(GeoAabb3 box)

Parameters

box GeoAabb3

The axis-aligned box.

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 and touches nothing; without the hole it crosses the box at four points at height 50.

Exceptions

InvalidOperationException

Thrown when the box is empty.

CollidesWith(GeoAabb3, Tolerance)

Checks whether the material of this face and an axis-aligned box touch, within a tolerance: the same answer as CollidesWith(GeoFace3, GeoAabb3, Tolerance).

public bool CollidesWith(GeoAabb3 box, Tolerance tolerance)

Parameters

box GeoAabb3

The axis-aligned box.

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 and touches nothing; without the hole it crosses the box at four points at height 50.

Exceptions

InvalidOperationException

Thrown when the box is empty.

CollidesWith(GeoSphere3)

Determines whether this face touches a ball, using the default tolerance.

public bool CollidesWith(GeoSphere3 sphere)

Parameters

sphere GeoSphere3

Returns

bool

CollidesWith(GeoSphere3, Tolerance)

Determines whether this face touches a ball, within a tolerance.

public bool CollidesWith(GeoSphere3 sphere, Tolerance tolerance)

Parameters

sphere GeoSphere3
tolerance Tolerance

Returns

bool

CollidesWith(GeoSpline3)

Determines whether this face touches a spline, using the default tolerance.

public bool CollidesWith(GeoSpline3 spline)

Parameters

spline GeoSpline3

Returns

bool

Exceptions

ArgumentNullException

Thrown when the spline is null.

CollidesWith(GeoSpline3, Tolerance)

Determines whether this face touches a spline, within a tolerance.

public bool CollidesWith(GeoSpline3 spline, Tolerance tolerance)

Parameters

spline GeoSpline3
tolerance Tolerance

Returns

bool

Exceptions

ArgumentNullException

Thrown when the spline is null.

CollidesWith(GeoXLine3)

Determines whether this face touches an infinite line, using the default tolerance.

public bool CollidesWith(GeoXLine3 xline)

Parameters

xline GeoXLine3

Returns

bool

CollidesWith(GeoXLine3, Tolerance)

Determines whether this face touches an infinite line, within a tolerance.

public bool CollidesWith(GeoXLine3 xline, Tolerance tolerance)

Parameters

xline GeoXLine3
tolerance Tolerance

Returns

bool