Table of Contents

Method TrySubtract

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TrySubtract(GeoObb3, out GeoSolid3)

Takes another box out of this box.

public bool TrySubtract(GeoObb3 tool, out GeoSolid3 result)

Parameters

tool 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.

TrySubtract(GeoObb3, out GeoSolid3, Tolerance)

Takes another box out of this box, within a tolerance.

public bool TrySubtract(GeoObb3 tool, out GeoSolid3 result, Tolerance tolerance)

Parameters

tool GeoObb3

The other 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 other box is null.

TrySubtract(GeoSolid3, out GeoSolid3)

Takes a body out of this box.

public bool TrySubtract(GeoSolid3 tool, out GeoSolid3 result)

Parameters

tool GeoSolid3
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.

TrySubtract(GeoSolid3, out GeoSolid3, Tolerance)

Takes a body out of this box, within a tolerance.

public bool TrySubtract(GeoSolid3 tool, out GeoSolid3 result, Tolerance tolerance)

Parameters

tool GeoSolid3

The body.

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