Method TrySubtract
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
TrySubtract(GeoSolid3, out GeoSolid3)
Takes another solid out of this one, using the default tolerance.
public bool TrySubtract(GeoSolid3 tool, out GeoSolid3 result)
Parameters
Returns
TrySubtract(GeoSolid3, out GeoSolid3, Tolerance)
Takes another solid out of this one, within a tolerance.
public bool TrySubtract(GeoSolid3 tool, out GeoSolid3 result, Tolerance tolerance)
Parameters
Returns
TrySubtract(GeoSolid3, out GeoSolid3, out BooleanOutcome)
Takes another solid out of this one, saying how it came out, using the default tolerance.
public bool TrySubtract(GeoSolid3 tool, out GeoSolid3 result, out BooleanOutcome outcome)
Parameters
toolGeoSolid3resultGeoSolid3outcomeBooleanOutcome
Returns
TrySubtract(GeoSolid3, out GeoSolid3, Tolerance, out BooleanOutcome)
Takes another solid out of this one, within a tolerance, saying how it came out; see TrySubtract(GeoSolid3, GeoSolid3, out GeoSolid3, Tolerance, out BooleanOutcome).
public bool TrySubtract(GeoSolid3 tool, out GeoSolid3 result, Tolerance tolerance, out BooleanOutcome outcome)
Parameters
toolGeoSolid3resultGeoSolid3toleranceToleranceoutcomeBooleanOutcome
Returns
TrySubtract(GeoSolid3, out GeoSolid3, SolidBooleanOptions, out BooleanOutcome)
Takes another solid out of this one as the options say, saying how it came out; see TrySubtract(GeoSolid3, GeoSolid3, out GeoSolid3, SolidBooleanOptions, out BooleanOutcome).
public bool TrySubtract(GeoSolid3 tool, out GeoSolid3 result, SolidBooleanOptions options, out BooleanOutcome outcome)
Parameters
toolGeoSolid3resultGeoSolid3optionsSolidBooleanOptionsoutcomeBooleanOutcome
Returns
TrySubtract(GeoObb3, out GeoSolid3)
Takes a box out of this body.
public bool TrySubtract(GeoObb3 tool, out GeoSolid3 result)
Parameters
Returns
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.
TrySubtract(GeoObb3, out GeoSolid3, Tolerance)
Takes a box out of this body, within a tolerance.
public bool TrySubtract(GeoObb3 tool, out GeoSolid3 result, Tolerance tolerance)
Parameters
toolGeoObb3The box.
resultGeoSolid3The body the two make, or nothing where they make none.
toleranceToleranceThe tolerance.
Returns
- bool
true when the two made a body; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the box is null.