Table of Contents

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

first GeoSolid3
second GeoSolid3
contact GeoFace3[]

Returns

bool

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

first GeoSolid3

The first body.

second GeoSolid3

The second body.

contact GeoFace3[]

The patches, each lying on a face of the first body and facing the way that face does; empty when the method returns false.

tolerance Tolerance

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