Grasshopper

algorithmic modeling for Rhino

Is there a way to create morphing curves between 2 curves, such that they alter gradually until becoming the other curve. This would help create a joined 3D topo surface without planar folding. I have been unable to find an answer. I have included an example diagram of what I am trying to do and an example of what I refer to as planar folding when curves exist on the same plane . I am studying topography and shadow generations. I suspect the math required for this might be interesting...

Parameters required:

Number of lines between two curves.

Views: 2334

Attachments:

Replies to This Discussion

Like this?

Attachments:

BTW: This is available only in R6

But this is available if you want to use native components:

And using the Tween in parallel

Attachments:

Thanks, this script will be helpful. But doesn't solve the pinched region. I have included a screen capture of your script and the curves I'm trying to solve. The curves created leave the interior between the two cures, ie go outside the curves. The curve divisions should follow around the curve through the pinched section in a way that they get very close together, in the way contours do such that a sharp ridge is formed across the pinched section. I trust I have explained this well. :) I do appreciate your help and your speedy response.

Attachments:

Well ...  obviously I can think a zillion cases where such an entry level approach could run out of steam (it was just a 5 minute job using portions of code available for other purposes).

PS: Nor the tween component could cut the mustard either.

Solution: several lines of code are required for that one.

More after this w/e.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service