BuildingInformationModel.show_collision_pairs

BuildingInformationModel.show_collision_pairs(tolerance=1e-06, min_depth=0.0001, element_types=None, skip_related=True, show_points=True, pointsize=20)

Visualize all collision pairs at once, each pair in its own colour.

Runs collision detection (if not already done), then opens compas_viewer with every colliding element coloured by its pair. Non-colliding subtrees are hidden. Penetration points are shown as a Pointcloud per pair in the matching colour.

Elements appearing in multiple pairs take the colour of the first pair they appear in.

Parameters:
tolerance, min_depth, element_types, skip_related

See compute_collisions().

show_pointsbool, optional

If True (default), draw a Pointcloud per pair for the penetration samples.

pointsizeint, optional

Pixel size for penetration-point markers.