algorithmic modeling for Rhino
Hi,everyone.I have a set of data and I want to perform boolean conjuction(and get) in every group.Who can help me?Thanks
Tags:
You can rely on the fact that booleans convert to integers and vice versa - if the sum (mass addition) of each branch is equal to its list length, then all values in that branch are true. Is that what you were trying to do?
There are both true and false in some branch,so the the sum (mass addition) of each branch is not clear.
I'm not sure I understand what you're trying to do. I assumed you meant logical conjunction within every branch, i.e. if all the values in the branch are true, return true for that branch. Can you give a more detailed example of how you want this to work?
I don't think the image you attached worked properly, could you upload it again?
So why doesn't Andrews suggestion work? You need to perform Mass Addition on your lists of True/False values, you'll then get a result of:
This will give you the single number you're looking for. If you want to make sure that all values are TRUE, then there's a small trick you can use, you can INVERT the booleans, then perform mass addition. When the result of the mass addition is 0, all your original values were TRUE. This means you won't have to also measure the list length and compare against it.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
I just want to tag 1 or 0 on every plane.If there are point on the plane then it should tag 0 otherwise tag 1.I don not know how to perform boolean conjuction(and get) in every branch and just get 1 or 0.
Thank you ,David.I have solved the problem.
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