BuildingInformationModel.compute_contacts

BuildingInformationModel.compute_contacts(tolerance=1e-06, minimum_area=0.01, contacttype=<class 'compas_model.interactions.contact.Contact'>)

Compute the contacts between the block elements of this model.

Computing contacts is done independently of the edges of the interaction graph. If contacts are found between two elements with an existing edge, the contacts attribute of the edge will be replaced. If there is no pre-existing edge, one will be added. No element pairs are excluded in the search based on the existence of an edge between their nodes in the interaction graph.

The search is conducted entirely based on the BVH of the elements contained in the model. It is a spatial search that creates topological connections between elements based on their geometrical interaction.

Parameters:
tolerance

The distance tolerance.

minimum_area

The minimum contact size.

contacttype

The contact class to use for the generated contacts.