Grasshopper

algorithmic modeling for Rhino

Hi guys,

I am an absolute Grasshopper noob, but hey, no pain no gain, so I'm trying to work it out. Most likely, I'm making a begginer mistake or my logic is completely wrong.

I have been working on a rib structure for a design studio project. I have some sets of planar curves, drawn in Rhino from interpolated points. I'd like to create the ribs along these lines, with a depth of 1/x of the length of each curve. Then, I want to creat two struts that branch from the rib to hold a cable/wire. Finally, I want to array some holes along the central axis of the rib.

So, aiming to this, I started working on Grasshopper with a random Rhino curve. You'll find the .gh file attached, but I will try to sum up my logic:

  1. Original Rhino curve 1, with a L length
  2. Setting curve 1 L/x off, curve 2
  3. Creating an axis curve, setting curve 1 L/2x
  4. Creating arcs 1 and 2 at both ends of axis curve, r= L/2x
  5. Setting axis curve L/y off, curve 3
  6. Dividing axis curve and curve 3 in 3 segments
  7. Creating lines between division points, strut axis
  8. Creating circle at the start of strut axis and arc 3 at the end
  9. Creating tangen lines between circle and arc 3
  10. Creating strut (as edge surface) with tangent lines, arc 3 and curve 2
  11. Creating a circle with a L/Ax radius (smaller than L/2x) on the rib plane
  12. Arraying the circle along axis curve
  13. Joining curve 1, curve 2, arc 1 arc 2, rib contour
  14. Boundary surface with rib contour and circles, to create rib with holes

Ii kind of worked out with the sample curve... I was so happy.. (IMG 1). But then I tried with a simple set of curves and it totally failed to create the rib (IMG 2). It looks like my approach was wrong... I attach my Grasshopper file, I've tried clarify it as much as I can.

The geometry resulting from my first attempt (IMG 1) is actually what I'm looking for, any advice?

Thank you very much for your attention and your time.

Views: 626

Attachments:

Replies to This Discussion

Update!

I've kept on working on my GH file and I think I've been able to fix most of my problems:

  1. The issue with the rotated arcs at the ends of the ribs was due to a wrong definition of the plane which was used as an input for those arcs. I've changed it to a 3-points-defined plane, making sure the X-axis is perpendicular to the curve tangent and I think it works for any curve.
  2. After fixing the arcs at the ends, the substraction of the circles works OK
  3. I've changed the definition of the struts to be a surface, instead of a psurf. By doing so, I can join the rib and the struts to bake the together, making the rhino model simpler and easier to manage

So, the only problem remaining is this one: I can only set one curve at the time as initial curve. If I choose "set multiple curves", the geometry collapses. I could still do my project setting one curve, baking the geometry and then choosing the next, but if anyone has any idea on how to allow for multiple curves to be set, I'd be very glad to hear about it.

You'll find the modified file attached. IMG 3 shows what happens when multiple curves are set.

Thanks!

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service