I am trying to loft a curb profile a long the edge of a road/sidewalk for a site model. The goal is for this script to be replicable so it can be applied to different projects where a site is needed. I took the edge of the road and then oriented the geometry to perp frames along that curve. This worked except for the gap between the top of the curb and the sidewalk. I need to find a way to rotate the frames so the top of the curb will match the edge of the sidewalk. I tried to get the angle between these two and rotate by that angle, but it didn’t work. Any suggestions would be much appreciated.
Side note: one of the curbs orients to the frame upside down and I don’t know why.
I was using a sweep initially, but couldn’t get the profile to orient to the end of the curves correctly to sweep so I switched to perp frames and lofting. I can upload a saved down rhino fileSite Test_R6.3dm (591.1 KB)
Was my code so clear that you have no questions? Cool.
One of the important keys to this was pairing ‘Sidewalk Edges’ and ‘Road Edges’, both in position (sortingAlongCrvin the yellow groups) and direction (Flip Crv). But what I’ve noticed is the distance between the two curves varies quite a bit:
Range: 1.500034 To 1.881189
I thought this might be due to anomalies at some of the ends where curve ends are not aligned but testing reveals that makes no difference. So the question is what to do about it? Stretching the curb profile is probably not a good idea? Which leaves re-creating the sidewalk edges, and the sidewalks, to match the oriented curb profiles. Or drawing them more carefully in the first place?
Once I looked through your code it made sense how you approached it.
Pairing the sidewalk edges and road edges was something I couldn’t figure out. The sidewalk edges were just created by offsetting the road edges. This test was a bit more extreme in geometry than any actual road configurations it will be used for so some of that may go away on a more realistic application. Would producing the sidewalk edges through grasshopper based off the road edges help?
In the end I wonder if it will matter either way since this application is being used for rendering and some of these small gaps you will probably never see or can be covered up in post production.
So I could use the sweep1 to get my curbs and then use the top edge of the curbs to create the sidewalk off of that. I will try it later today. I would imagine the curbs would slope towards the street, but that’s the civil engineers realm
Well, orienting curb profiles currently depends on the existing sidewalk edges so you would be creating replacement sidewalk edges. I would expect the sidewalks to slope toward the street, not the curb profiles, but clearly they don’t always do that as drawn so maybe that assumption isn’t valid?