Table of Contents

Method TryIntersect

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TryIntersect(GeoSolid3, out GeoSolid3)

Gets the part this solid shares with another, using the default tolerance.

public bool TryIntersect(GeoSolid3 other, out GeoSolid3 result)

Parameters

other GeoSolid3
result GeoSolid3

Returns

bool

TryIntersect(GeoSolid3, out GeoSolid3, Tolerance)

Gets the part this solid shares with another, within a tolerance.

public bool TryIntersect(GeoSolid3 other, out GeoSolid3 result, Tolerance tolerance)

Parameters

other GeoSolid3
result GeoSolid3
tolerance Tolerance

Returns

bool

TryIntersect(GeoSolid3, out GeoSolid3, out BooleanOutcome)

Gets the part this solid shares with another, saying how it came out, using the default tolerance.

public bool TryIntersect(GeoSolid3 other, out GeoSolid3 result, out BooleanOutcome outcome)

Parameters

other GeoSolid3
result GeoSolid3
outcome BooleanOutcome

Returns

bool

TryIntersect(GeoSolid3, out GeoSolid3, Tolerance, out BooleanOutcome)

Gets the part this solid shares with another, within a tolerance, saying how it came out; see TryIntersect(GeoSolid3, GeoSolid3, out GeoSolid3, Tolerance, out BooleanOutcome).

public bool TryIntersect(GeoSolid3 other, out GeoSolid3 result, Tolerance tolerance, out BooleanOutcome outcome)

Parameters

other GeoSolid3
result GeoSolid3
tolerance Tolerance
outcome BooleanOutcome

Returns

bool

TryIntersect(GeoSolid3, out GeoSolid3, SolidBooleanOptions, out BooleanOutcome)

Gets the part this solid shares with another as the options say, saying how it came out; see TryIntersect(GeoSolid3, GeoSolid3, out GeoSolid3, SolidBooleanOptions, out BooleanOutcome).

public bool TryIntersect(GeoSolid3 other, out GeoSolid3 result, SolidBooleanOptions options, out BooleanOutcome outcome)

Parameters

other GeoSolid3
result GeoSolid3
options SolidBooleanOptions
outcome BooleanOutcome

Returns

bool

TryIntersect(GeoObb3, out GeoSolid3)

Keeps what this body and a box both enclose.

public bool TryIntersect(GeoObb3 other, out GeoSolid3 result)

Parameters

other GeoObb3
result GeoSolid3

Returns

bool

Remarks

A box is read as the body it bounds, which is exact: six flat faces, no fitting and no approximation. The answer is a GeoSolid3 because a boolean of two boxes is hardly ever a box. A box flat on some axis, or no thicker than the point tolerance on two, bounds no body, and the answer is false: the box 100 by 0.000002 by 0.000002 joined to a cube 40 on a side it runs through was given the cube alone, its two ends lost.

TryIntersect(GeoObb3, out GeoSolid3, Tolerance)

Keeps what this body and a box both enclose, within a tolerance.

public bool TryIntersect(GeoObb3 other, out GeoSolid3 result, Tolerance tolerance)

Parameters

other GeoObb3

The box.

result GeoSolid3

The body the two make, or nothing where they make none.

tolerance Tolerance

The tolerance.

Returns

bool

true when the two made a body; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the box is null.