Hello,
can u help me to understand how to align vertical boxes planes along the curveture of the bridge edge.
handrails.gh (646.4 KB)
I appreciate your help in advance!
Hello,
can u help me to understand how to align vertical boxes planes along the curveture of the bridge edge.
handrails.gh (646.4 KB)
I appreciate your help in advance!
At a glance, it wasnât easy to see which of these groups we are supposed to look at? All have a broken Sweep1 at their ends and all have an orange Curve param that indicates uninitialized? On inspection, each group refers to a different curve on your roadway, which is probably not the best way to do this. Data trees are âThe Grasshopper Wayâ.
To address your question, the second component in each group is Divide Curve with a âTangentsâ output that you want to use to orient your posts. Better yet would be to use HFrames instead of Divide Curve. I added a white group just above your last group to illustrate:
Top View. See how all the HFrames are aligned with the curveâs tangent at each point?
P.S. To give you a taste of âThe Grasshopper Wayâ, I collected your curves and count values in a pair of Entwine components so the white group is now handling all of them.
I forgot to include Rebuild Curve but one of those can be added between the first Entwine and the HFrames âCâ input. And I know there is more to making the handrails that I left out.
P.P.S. Sorry, I was distracted by an early lunch.
You can skip the list of list of post counts and compute counts instead, based on curve length and a âPost Spacingâ slider. Probably more accurate, certainly less work.
I disabled more components this time as they were distracting. And deleted the bridge brep to make the GH file smaller - it wasnât being used by this code. And I see no particular reason to always rebuild curves, especially with such a high control point count? (100) Have fun with Grasshopper.
Thank you so much Joseph. I appreciate your help indeed.
Very informative!. Iâll keep in mind ââthe grasshopper wayââ which u said!. ur advice would be like SANTA PAROLA (as Italians use it as an expression :)) ).
Have a good time!
âHOLY WORDâ according to Google Translate? Thanks but⌠nah.
Iâll be interested if you can complete the hand rails code âThe Grasshopper Way â ? Post here again if you need help with that? From what I can tell, you created a polyline from each curve and raised it in Z (in a confusing way/) to use as a rail for Sweep1. But your section curve failed due to the uninitialized curve param so I donât know what you intended? Still, it looks like that code can be added to the white group to generate rails for all four curves at the same time.
Yea it means like that!
actually as u saw I just pasted the codes couple of times for each side of the bridge just for that. And it doesnât corrispond to THE GRASSHOPPER WAY as u said for sure. Iâll do it on your method and Grazie mille (thank you very much) for that!