Grasshopper

algorithmic modeling for Rhino

This is a modified version of Giulio Piacentino's Catenary code originally posted here : http://www.grasshopper3d.com/xn/detail/2985220:Comment:25775

Instead of being driven by chain length, it passes the chain through three points using hill climbing optimisation. 

Views: 5014

Attachments:

Replies to This Discussion

Very nice script!
Thanks for adapting the inputs and logic to this situation.

- Giulio

this is amazing, tried to figure this out for a while this weekend.

thank you!

 

Daniel,

Thanks so much for this! This is exactly what I was hoping for!

That said, is there a version of this code that only takes two points and a height (i.e. allows the middle point's x-value float)? Just curious. But still totally psyched about this.

Michael M.

Hi Michael,

Assuming the end-points are at the same height, you can specify a height by generating the mid-point parametrically: create a point halfway between the two end-points (you can do this by averaging the points using the average node), then move the point down to the desired height -- use this point as the mid-point in the calculations. 

Thank you so very much for this!

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