GenericElement.compute_contacts
- GenericElement.compute_contacts(other, tolerance=0.001, minimum_area=0.01, contacttype=<class 'compas_model.interactions.contact.Contact'>)
Compute contacts between this element and another element.
When both elements expose B-Rep geometry, exact face-to-face contact detection is used (
compas_model.algorithms.contacts.brep_brep_contacts), which reliably resolves coplanar “just-touching” faces. Otherwise the computation falls back to a mesh-mesh approximation on the world-coord meshes derived from the tessellatedvisual_geometry.- Parameters:
- otherGenericElement
The other element.
- tolerancefloat, optional
Distance tolerance for the coplanarity check.
- minimum_areafloat, optional
Minimum area of a valid contact polygon.
- contacttypetype, optional
Contact class to instantiate.
- Returns:
- list[Contact]