algorithmic modeling for Rhino
Hi guys, im a beginner in grasshopper. So basically what i wanna achieve is to have a series of apertures (iris blade that rotate) that increase/decrease in size using the data input from an image sampling brightness.
So this is what i have now. Each iris blade rotate about their own axis of line that i determined locally. (iris blade and line of rotation have same index)
Next, I have set up an array of the geometry based a square grid cell. I also connect the grid uv to the image sampling. The image sampling gives some output of number that is similar to the rotate angle. So they supposed to give the results i want.
However, when i feed in the number, they dont work in the way i expect, i.e. rotate according to the image sampling number output. I presume it's because the rotation angle only need to feed in one number (as I array it after I rotate), while image sampling gives more that one number according to grid.
So im tried to array them first only to rotate, however, because the center of rotation was determined locally one by one for each iris blade, i dont know how to map it when it is rectangular arrayed, do i array the line for rotate axis?
i guess there is smtg to do with data tree, graft/flatten. im new to gh and dont quite get the idea of those, so i hope someone could shed a light for me. show me the workflow.
Thanks in advance!! attached herewith is the gh file.
Tags:
Corrected file, didnt internalise the first uploaded file
Hi Hyungsoo! Thanks sooooo much for your effort. Although the final rotation is not exactly like what i expected, but your help really helped me alot!
just some questions,
can you briefly explain why do you need to scale it by 1.01 and then remap to the closest point?
and, i see you've used Graft, Simplify, and Flatten in some part. Would you mind sharing what do they mean respectively? and what's the difference between grafting the output and grafting the input. Or have you come across any resources that explain thoroughly what is graft, simplify etc. sorry, im a beginner.
Again, thanks alot for you help!!
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