Grasshopper

algorithmic modeling for Rhino

I constructed a sine wave from a set of XYZ Vector points...now, how do I offset the points along the Y-Axis without copying them.  Using the MOVE tool, copies the array.

I know that I can write the algebraic function for the sine wave "y=sin(x+pi/4)+k" and use the k variable as my offset, but I want to use a Grasshopper widget if possible.

Best,
bringFire

Views: 2851

Replies to This Discussion

One posible solution may be to decompose all those point in X,Y,Z, then get a ADD + component and add a value to the Y coordinate. After you add that value, one more time, plug these values to a new Point component, where X is the same, Z stays the same, but Y gets the new values... You would get your Offset in the Y AXIS.
Hope this helps..
Thanks for your solution, however...by adding another Point component, after the decomposition, I end up with two sets of points, the first comes from the widget prior to decomp and the second, from the widget after, which leads to two visible sets of points.

I'll keep playing.
Just switch off the preview for the one you don't care about.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
So simple...wonderful answer.

Thanks!

Aaron
I just wrote a custom, two-variable sine function that allows me to change the "k" component of the equation with a slider...sure would be nice to have a MOVE widget that doesn't copy the data. Maybe call it translate...or offset points.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service