Grasshopper

algorithmic modeling for Rhino

Acting on each individual item of a set individually

To put it simply, I have a number of curves (145, to be precise) that I need to extrude into walls (and grasshopper is needed to change the geometries of each wall). I have grasshopper set up to take a curve in Rhino and fully create the extruded wall that I want. The problem I'm having is that I want to apply this process on each of the 145 curves I have, but if I simply add all these references to my "crv" object in grasshopper, each curve interacts with all other curves.

For example, at one point I move the curve up (in the z direction) to create the height I want and then loft those two lines together. It works fine if I only reference a single one of my curves, but when I reference multiple it creates one loft through all of the lines I created, as opposed to 3 lofts, each through the original curve and the moved/copied curve.

Is there any way I can have my process work on each curve individually and iteratively without having to copy my logic 144 times? Thanks!

Views: 650

Replies to This Discussion

Hi Alex

can you post a picture of the script? or the file?
It might be some issue with grafting the data trees

Maybe the issue is the flatten before the loft? But if I take out the flatten I can't use the original curve. Is there anyway I can bring the original curve with the new branch created?

Sure.

Basically what it does it moves the original line up, cuts the ends off the new line to create a taper, lofts those two lines and extrudes in each direction to create a solid.

I am not quite sure if I correctly understood what you want to do, but I think you should keep the lofts seperate, one for the curves you got from rhino, and one for the ones you treated in GH.
Then you can treat them more easy.
After you Extruded them two loft commands you can use Solid union

Try this approach using [Extend] NB negative lengths shorten the curves

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