Intersection n Items with n Items

How to check for intersections for multiple curves with multiple objects?

In the end, there should be only one list with items that are not inside any of the Breps.



This is how it works with only one Brep.

Thanks for your help,
Jakob

Upoad.Your.Code

Intersection.gh (41.7 KB)

Hi @jimsalabim

you can use OR logic (with the help of mass addition):
0+0=0
0+1=1
1+1=1
Even with more BREPs this will work.


Intersection.gh (43.9 KB)

1 Like

How can 1+1 be 1?

Boolean: True AND True = True


Then mass addition must be the wrong Component.

Mass Addition (logical OR) is True when the result is not zero. (assuming none of the items is negative, which is the case when they are Booleans)
Mass Multiplication (logical AND) is False when any of the items is zero (False).

2 Likes

Hi @jimsalabim
In boolean algebra there are just two numbers. 0 and 1
So every number which is not zero will be called one.


ok, it works when adding another boolean Component.

@jimsalabim also without it wil work.
all boolean inputs in grasshopper understand that a zero is False and other numbers are True

1 Like