ConnectionSolver.find_intersecting_pairs

classmethod ConnectionSolver.find_intersecting_pairs(beams, rtree=False, max_distance=0.0)[source]

Finds pairs of intersecting beams in the given list of beams.

Parameters:
beamslist(Beam)

A list of beam objects.

rtreebool

When set to True R-tree will be used to search for neighboring beams.

max_distancefloat, optional

When rtree is True, an additional distance apart with which non-touching beams are still considered intersecting.

Returns:
list(set(Beam, Beam))

List containing sets or neightboring pairs beams.