aggregate('Здания', 'sum',
if ( abs( main_angle(geometry(@parent)) - main_angle($geometry) ) > 60 ,
bounds_width( rotate($geometry, main_angle(@geometry)*-1)),
bounds_height( rotate($geometry, main_angle(@geometry)*-1))
),
distance($geometry, geometry(@parent))<=15
)