Issue with Vectors and 3D Offset Curves in Bridge Top Deck Design

Hi everyone!

I hope you’re all doing well. My goal is to create a bridge top deck using 2 curves from the bottom road wearing layer. I’ve written a script for this, and it works well for the most part, but I’m facing an issue. At the end of the deck, there’s a strange section that doesn’t look right.

I’ve revised my script multiple times, including checking vectors and other parameters, but I can’t figure out what’s causing the problem.

Do you have any advice or ideas? Could there be a better method for offsetting 3D curves with super elevation?

I’d appreciate any guidance you can provide. Thanks in advance, and Merry Christmas to everyone!



erroe_241231.gh (182.8 KB)

Hi @Dmitry_Korchemny.
I’m not sure if I understand your point correctly, but I think you’re struggling with the capping algorithm for your loft (bridge deck). The points at the start and end of the offset curves are not planar (they don’t lie on the same plane), so the capping algorithm tries to close (cap) your Brep with a random mesh.

My suggestion is to slightly extend the offset curves at their ends and then cut them with perpendicular planes at the start and end of the original curve. After that, loft the trimmed curves, create planar surfaces at the ends (or simply use the Cap component), and join the Breps.


erroe_241231_02.01.2025.gh (190.1 KB)

1 Like

hi @Dmitry_Korchemny
here is another version of the code i used the pufferfish plugin component offset curve from surface
as @Aleksander_Bachrouch mentioned the endpoints are not planar just extended and chop of the brep and then cap it

erroe_241231_rev01.gh (194.9 KB)

2 Likes