algorithmic modeling for Rhino
Hi I have a problem and I think there would be some ways to solve it so I´ll explain what I need. All contributions are wellcome :)
I have a list of numbers and I want them to be the rule to make a rotation. Inmediatly I can connect the number with a degree, It's easy but there will be the same number of angles and numbers.
I want to reduce the number of angles so I need to remap those numbers into others depending on them values, so I would divide the range of the values and change every value to other related with the division of the range which it was.
There I can rotate 15º, 30º, 45º... degrees, for example (not 12.2º, 12.32º, 12.43º, 12.45º, 13.11º .....)
I think it would be better if the numbers are canged but the structure of the list ramins equal as I have to work with it ( I guess any kind of dispach will change the order of the items even if then I merge these lists)
Thanks a lot!
Tags:
You can use the [Find Similar Member] component from the Sets panel to 'snap' numbers to a predetermined set of allowed numbers.
Oh, if you want more control over the 'direction' of the snapping, you can use the [Find Domain] component instead, this will allow you to specifically set what angles should be converted to 45 degrees.
Thank you David. I think my problem was to deal with Replace, then I found a discussion about how it works ( someone wanted to replace nulls with zeroes), It's rare to me its working metod but maybe I could make a cluster so it will work as I like.
As you can see I got Domain Bounds of the angles and then I divided it by the number of angles I wanted.
Moreover I make a serie with the same numbers of elements to get a regular variation of that angles. Then i connected the items on Replace, and I repeated that once per angle (division).
I hope this explanation would be usefull to someone so I include a bunch of images.
I'm afraid it's no clear in the image that there is only 8 rotation possitions/angles, but actually they are!! XD
Cheers!
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