BlockElement.compute_contact

BlockElement.compute_contact(target_element, type='')

Computes the contact interaction of the geometry of the elements that is used in the model’s add_contact method.

Returns:
compas_model.interactions.ContactInterface

The ContactInteraction that is applied to the neighboring element. One pair can have one or multiple variants.

target_elementElement

The target element to compute the contact interaction.

typestr, optional

The type of contact interaction, if different contact are possible between the two elements.