Grasshopper truss help!

image



I want to create a truss consisting of H-beams using the Grasshopper algorithm. My first thought was to create an algorithm that would allow me to specify two curves, create a brace on those curves, and bake them to create the shape of the truss we know, but I got stuck in the implementation process, so I’m writing this post. I’ll post the file as well, so if any of you cool people can help me with this, I’d appreciate it.
First of all, if you look at the first picture, it’s a toggle to configure the H-beam.
The next picture shows the lack of center in the H-beam caused by the reference curve. This is the main problem, the bracing and the vertical horizontal members are not meeting as a whole.
The last picture is the finalized version of what I had in mind.
If anyone knows how to solve this problem, I would appreciate your help.
hbeam.gh (36.1 KB)

If I could just control the creation criteria, I think I could solve the problem.