find_neighboring_beams

compas_timber.rhino.find_neighboring_beams(beams, inflate_by=None)[source]

Uses the Rhino.Geometry.RTree implementation of RTree to find neighboring beams.

Parameters:
  • beams (list(Beam)) – The collection of beams to check.

  • inflate_by (float) – If set, inflate bounding boxes by this amount in all directions prior to adding to the RTree.

Returns:

list(set(compas_timber.parts.Beam)) – List containing sets or neightboring pairs beams.