Skip to content

compas_timber.rhino ¤

Functions¤

find_neighboring_elements ¤

find_neighboring_elements(elements, inflate_by=0.0)

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

Parameters:

  • elements (list(:class:`~compas_timber.elements.Beam`)) –

    The collection of beams to check.

  • inflate_by (float, default: 0.0 ) –

    If set, inflate bounding boxes by this amount in all directions prior to adding to the RTree.

Returns:

  • list(set(:class:`compas_timber.elements.Beam`))

    List containing sets or neightboring pairs beams.