mesh_mesh_contacts
- compas_model.algorithms.mesh_mesh_contacts(a, b, tolerance=1e-06, minimum_area=0.1)
Compute all face-face contact interfaces between two meshes.
- Parameters:
- a
Mesh
The source mesh.
- b
Mesh
The target mesh.
- tolerancefloat, optional
Maximum deviation from the perfectly flat interface plane.
- minimum_areafloat, optional
Minimum area of a “face-face” interface.
- a
- Returns:
- list[
Contact
]
- list[
Notes
For equilibrium calculations with CRA, it is important that interface frames are aligned with the direction of the (interaction) edges on which they are stored.
This means that if the bestfit frame does not align with the normal of the base source frame, it will be inverted, such that it corresponds to whatever edge is created from this source to a target.