Grasshopper

algorithmic modeling for Rhino

Chaning Amplitudes of Curves in Sine Graph Mapper

Hi all,

I wonder if there is a better way to generate parametrical curves rather than using the graph mapper:

-The graph mapper has no snaps so its quite hard to make a curve symmetrical.

-I cant have different amplitudes, at least not using the graph mapper.

-If I want to have both positive and negative crests I have to change the domain of the graph mapper, but I cant precisely place it in the 0 start point.

So, in spite of these limitations, I wonder if anyone has a better way to create this kind of curve parametrically.

I tried different graph mappers, but they all have the same limitations.

I thought about making the curve with the sine graph mapper, then rebuild it so that it has symmetrical control points, but then I had trouble selecting which points to move and remaking the curve interpolating these points. Problem was the time I changed the number of control points, the list item would select different items.

Any help is much appreciated.

Shynn.

Views: 1930

Attachments:

Replies to This Discussion

If this serves you, you can add more peaks or valleys adding more values at the [Merge] comp.

Attachments:

Thats pretty much it, thanks, that will help a lot!

Substantial question: how would you change the location of the valleys and crests in the x axis?

Here is a simple solution using graph mapper

Attachments:

Any idea on how to do it without using graph mapper? Like the crest instead of being at 1/2 of the length, be at 3/4, or stuff like that?

for waves, that is done with a 'phase shift', add 2*pi/4 radians (for a 90 deg shift) to your sin curve, could also be done using cos instead of sin for an inherent 90 deg shift

The def is currently using COS, with a domain of 0 to Pi. where do I add the radians to my curve?

Thank you

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service