algorithmic modeling for Rhino
I've just started using grasshopper, and it has been quite a lot of fun to explore. That said, I am having problems with something that I know is very simple, but for some reason I can't get it to work. I am trying to create a little program that will generate a foil that can be modified with sliders after providing a base curve to work from. My thinking has been to
1) Translate(move) the curve in a vector dir. -Z
2) Create points from the ends of the curve
3) Scale the curve using the smaller X value end point (actually the fwd part of the foil)
4) Repeat a couple of times
Now my idea was to then have an Interpolate curve run through the fwd and back points of the scaled foil curves, and then two rail sweep a surface using those curves as rails and the foil curves as section shapes. My problem is that I can't figure out how to group the points along one edge (fwd set of points or back set of points) so that I can use them collectively as an input for the Interpolate Curve function.
I know this is probably ridiculously simple, but I have been banging my head against a wall trying to get make this happen. How do I collect the end points of the foil curves into a list so that I can then use them to generate a curve? Help is greatly appreciated.
Thanks
Kev
Tags:
Your attempt is pretty inflexible and doen't even start to leverage the power of GH. You don't need to interpolate the endpoints and sweep the sections. A loft of the sections will do exactly the same.
This might give you an idea, how to start.
Thanks for that Hannes. I've been studying your start there, and it is very helpful, although I am trying to make sense of some of the elements. I have added a definition that I wrote yesterday that generates a NACA foil section for the base curve. What I would then like to do is have that section placed at the intervals and scales generated by the Gene Pools that you used in your definition.
Just plug your generated curve into the curve input parameter. This will replace the referenced curve from Rhino with your genereated one.
That's exactly what I did earlier today. Thanks a lot for the help. This is so much more fun that using Rhino without GH.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by