Method TryGetContact
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
TryGetContact(GeoSolid3, GeoSolid3, out GeoFace3[])
Gets the patches where two bodies lie against each other, face to face.
public static bool TryGetContact(GeoSolid3 first, GeoSolid3 second, out GeoFace3[] contact)
Parameters
Returns
TryGetContact(GeoSolid3, GeoSolid3, out GeoFace3[], Tolerance)
Gets the patches where two bodies lie against each other, face to face, within a tolerance.
public static bool TryGetContact(GeoSolid3 first, GeoSolid3 second, out GeoFace3[] contact, Tolerance tolerance)
Parameters
firstGeoSolid3The first body.
secondGeoSolid3The second body.
contactGeoFace3[]The patches, each lying on a face of the first body and facing the way that face does; empty when the method returns false.
toleranceToleranceThe tolerance deciding what counts as one plane.
Returns
- bool
true when the two lie against each other over some area; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when either body is null.