Grasshopper

algorithmic modeling for Rhino

assigning different pipe diameters to different curves

Dear Grasshopper,

 

I would like to know the easiest way to perform this operation: assign different pipe diameters to different curves. I have been looking around on the website and I have found : "if you have multiple lines, use the graft tree component in the inputs (lines and radio), then use the pipe component." But I really have no idea how to go about this. Could anyone help me out?

 

I will upload a test file --and definition which I know is wrong...

 

Thank you very much in advance!!!

 

Warm regards,

Anni

Views: 1441

Attachments:

Replies to This Discussion

If you have a list of 37 curves as an input to the Pipe Component then all you need is a list of 37 values to get a different diameter for each. You will only need to use the graft function if one of your data inputs is a data tree structure. The graft will convert a single branch of 37 items into 37 branches of single items

 

EDIT: you don't actually need the same number of values in each because grasshopper will employ the data matching rules, depending on which is selected for that component. Longest list will apply every value in the short list with the corresponding value in the long list and then apply the last short list value to the remainder of the long list. Short List will match only the Short list values with their corresponding long list item and then ignore the remainder. Cross reference will do every item in list A with every item in list B. (Similar to having one list grafted and the other not)

Thank you very much for your quick reply.

 

Three different diameters more or less distributed RANDOMLY to different curves.

 

I have attached a little network of curves as an example file and the grasshopper file I know is wrong--

So the grasshopper file would be something like only: Crv(curve)> Pipe but with the radius of the pipe with a list of three radii?

 

how does it pick the curves randomly to apply the different radii??

 

Thank you so much in advance. Really appreciate it.

 

Best,

Anni

From a domain of 0 to 2 (3 options) you can randomly generate just the integers (I = true) with this list you can weave a list of values into your pipe radii input

Hey Danny,

the weave comnponent is a cool idea. I have to integrate this component more into my thoughts. This is the way I do this normally.

Best Regards

 

DeDackel

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