Grasshopper

algorithmic modeling for Rhino

Hi all, 

I'm trying to create a network with increasing print width according to how many points is traveling on the path. All the starting points have a path from "a" to "B" and I'm using  "shortest work" to get all the lines, but I'm looking for a network with no overlapping lines, but instead a network where one line have line width (lets say 1) and to lines double line width (2).

I hope you can help and please ask for me to be more specific.


Attached is a picture of what I try to achieve. 

Views: 733

Attachments:

Replies to This Discussion

You can render/print lines with different line weights using the Human plugin. It has the PreviewLW component that allows you to render curves with custom line weights (in pixels or absolute values). If you print (in Rhino i.e. CTRL + P) to a pdf it will output these as vector graphics. Another option is to bake the lines to the Rhino document with custom attributes (I believe there are several plugins which enable this, otherwise it can be scripted). Hope that helps.

Edit: To set the line weight according to how many overlap, you could get their midpoints and check for overlaps of these.

I'm trying to sort my points in branches so I can count how many points are in each branch for the line weight. This might be a simple question but I haven't been able to find a solution. 

Do you have an idea to check these overlaps? 

I'm sure this is probably easily done with straight up Grasshopper, but since I suck at that, here's a GHPython solution :)

No sure why my attachments aren't making it these days, here it is again.

Attachments:

This really looks like what I'm looking for! but I have no experience in GHpython so I can't figure out whats not working.

Looks like the input data has nulls in the list. Did my file work when you opened it? Can you provide a file that does not work?

I think it might be a problem between lines and curves. I added "curve to polyline" and now it seems to work. :)

Attachments:

Ah yes, I wrote the algorithm under the assumption that your network edges were always Lines. Attached a version that works with Curves (which is slightly more complex in terms of defining an absolute midpoint and taking tolerance into account).

Attachments:

Just remembered that Grasshopper has a "Points Groups" component, makes it straight forward to do without any scripting. See attached.

Attachments:

This is just perfect for me.

Thank you so much for your help :)

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