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.
Tags:
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 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.
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. :)
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).
Just remembered that Grasshopper has a "Points Groups" component, makes it straight forward to do without any scripting. See attached.
This is just perfect for me.
Thank you so much for your help :)
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