And operator

unhandled

(Imen Soussi) #1

Hi everybody,
I want to pick up the rectangles with an area>860 m².
I made juste one condition but i didn’t know how to match 2 conditions: rectangle and area. :slight_smile:
And.3dm (182.0 KB)
And.gh (13.0 KB)


#2

Not sure what you mean by match, but if you want the rectangles larger than an area, just plug those rectrangles into the L on the dispatch.


(Matt Gaydon) #3

Does this work as expected, I put the And in an expression to reduce the need for extra components. The way I got the rectangle was found was it has to have all 4 side containing lines and only 4 of them.

Also included a way to do it in stages that I disabled as maybe quicker if your only calculating area for the rectangles than all the shapes.

And.gh (72.2 KB)


(Imen Soussi) #4

I mean join 2 conditions


(Imen Soussi) #5

thank you it works :slight_smile:


(Matt Gaydon) #6

Just looked back at my reply and realised you could have 4 sided rooms with angled walls. So the first code would break. Added another And in the code to check angles. If the relative item fails, check the tree structure of the input to see the {0} pattern matches.

And - Update.gh (66.6 KB)