Table of Contents

Method TryGetContact

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TryGetContact(GeoSolid3, out GeoFace3[])

Gets the patches where this body and another lie against each other, face to face.

public bool TryGetContact(GeoSolid3 other, out GeoFace3[] contact)

Parameters

other GeoSolid3
contact GeoFace3[]

Returns

bool

Remarks

Two bodies that only touch share no volume, so Intersect(GeoSolid3) is empty and CollidesWith(GeoSolid3) is true, and neither says where. This says where: the area where a face of each lies in one plane, facing the other. Only contact with area is a patch — two bodies meeting along an edge or at a point have none, and CollidesWith is what reports them.

TryGetContact(GeoSolid3, out GeoFace3[], Tolerance)

Gets the patches where this body and another lie against each other, face to face, within a tolerance.

public bool TryGetContact(GeoSolid3 other, out GeoFace3[] contact, Tolerance tolerance)

Parameters

other GeoSolid3
contact GeoFace3[]
tolerance Tolerance

Returns

bool