Method TryUnion
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
TryUnion(GeoSolid3, GeoSolid3, out GeoSolid3)
Joins two solids into one, using the default tolerance.
public static bool TryUnion(GeoSolid3 first, GeoSolid3 second, out GeoSolid3 result)
Parameters
Returns
TryUnion(GeoSolid3, GeoSolid3, out GeoSolid3, Tolerance)
Joins two solids into one, within a tolerance.
public static bool TryUnion(GeoSolid3 first, GeoSolid3 second, out GeoSolid3 result, Tolerance tolerance)
Parameters
firstGeoSolid3The first body.
secondGeoSolid3The second body.
resultGeoSolid3The combined body.
toleranceToleranceThe tolerance.
Returns
- bool
false when the two could not be combined into a closed body, which is logged.
Remarks
Two bodies that do not touch still combine: the result is one solid carrying both shells, which measures and answers containment correctly because each shell is closed and wound outwards.