algorithmic modeling for Rhino
Hey everyone, I was someone might be able to help with my defination. I imagain its quite a simple one but I'm really stuck.
I'm trying to rotate a group of curves (the triangle profile) so they line up with straight line, everytime I move a move a slider. But I'm having issues between the normal angles and reflex angles.
(probably a really bad explanation, sorry)
If you look at the red circle and move the slider back and forth then you will see my issue.
So arm numbers: 0, 1 and 7 dont align.
When I flip the the input from angle to reflex the problem is reversed.
Its driving me insane.
Thanks in advance for any help you can provide.
ben
Tags:
Hi ben,
angles in 3D are never more than 180 degrees (or pi radians). Only in 2D can you meaningfully define angles from zero to 360. Since you need this entire range, you'll have to provide a Plane in the P input of the Angle component that tells this component in which 2D plane you want to measure these angles. The World XY plane will do fine.
You'll notice that at this point your file will become consistent, albeit wrong. The rotation is now always mirrored. The easiest fix is to add an expression to the A input of the Rotate component and flip the angle:
-A
--
David Rutten
david@mcneel.com
Poprad, Slovakia
This also solved my problem. Thank you so 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