Grasshopper

algorithmic modeling for Rhino

I am having trouble with what seems to be a very simple problem. I am trying to control the angle of a 3d vector with two independent orthogonal angle sliders. The x axis slider seems to work just fine but the y axis slider operates sporadically. As you move the y axis slider through +45 or -45 the vector reverses to the opposite side of the origin. If you look closely at the plane its origin is reversing also. Is this a glitch or a user error? Do planes normally switch like this. What is the logic behind plane axis orientation. Is there another way to achieve my goal?

Thanks for your help,
Stan

Views: 213

Attachments:

Replies to This Discussion

Since the Plane Normal component only takes the normal vector and a point as input, it must determine the x and y vectors internally - as to how that works I don't know, except to see that it obviously changes something at the point you were hitting at 45 degrees.

Here is a fix that supplies that vector and rotates it initially, eliminating the Plane Normal component. Also I got rid of your degrees to radians calculations by putting "rad(A)" in the A expression for the Rotate Vector.

Attachments:
Hey Chris,

That's terrific. Thank you so much. You are amazing. I've been wanting to learn how to use the expression editor as well. That really helps.

Stan

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service