Grasshopper

algorithmic modeling for Rhino

cosx function curve with starting and ending point

Hi to everyone!

I am trying to make a curve,using the cosx function,but want it to start and end from two specific points.I am attaching the script but I do not know if I am in the right direction...If anyone has any suggestion,it would be helpful..

Thanks!

Views: 294

Attachments:

Replies to This Discussion

Two points aren't enough to define a cosine in 3D. If you only care about 2D then it becomes somewhat simpler. However making a cosine with a fixed frequency and amplitude terminate at a specific point is in fact quite tricky.

You're going to have to make the cosine first, then trim it to the exact length and finally rotate it so that it terminates at the end-point. I attached a file that does it with a simple Cosine(x) expression, though it should work on all continuous functions.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Attachments:

Thank you very much!I will give it a try!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service