algorithmic modeling for Rhino
You can use the Not component, it inverts boolean values.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
I'm not 100% sure but it looks like all boolean parameters have an "invert" option.
There's some more complex thinking involved.
For each point you need to check for containment in one of the BReps.
So we graft the points and get a list of booleans. If one of the Breps contains the point, it will return true, all others return false.
We need to combine all booleans to get one boolean that indicates "insied at least one Brep". Here's the trick: a boolean false converts to integer 0, true is 1. Now if we add up all booleans and all were false, the result is still 0, which converts back to false. If there were one or more trues, the result will be larger than 0, which conveniently converts back to true...
This is tricky, though. I think i wouldn't get it at my own. Thank you very much.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by