[docs]defrtree(polylines):"""Given a list of polylines-pairs find neighbors between them via aabb and obb collisions. Polyline pairs means the top and bottom polylines of plates. Parameters ---------- polylines : list[compas.geometry.Polyline] List of polylines. Returns ------- list[int] List of neighbors. list[compas.geometry.Box] List of aabb boxes. list[compas.geometry.Box] List of obb boxes. """w_polylines=to_point2(polylines)w_neighbors=wood_nano_int2()w_aabb=wood_nano_point2()w_obb=wood_nano_point2()wood_nano_rtree(w_polylines,w_neighbors,w_aabb,w_obb)returnfrom_int2(w_neighbors),from_point2(w_aabb,"Box"),from_point2(w_obb,"Box")