Creating extrusions between two surfaces

Hello friends, I ran across this issue when I was trying to build something like this, just instead of pipes I would like to build cubes.

I have the lines constructed without problems

Then when I do the extrusion, I noticed that based on the line density, there will be abnormal results.

and somehow the cubes are not extending to the full height

The definition is attached, any help is appreciated!

touble shoot.gh (27.7 KB)

You can extrude rectangles then cap holes:

or use Extrude Along and use curves directly, which might be much simpler than measuring curve length then extruding by a Z vector that has same length as the curve themselves:

Looks like the result is the same for both

touble shoot_inno.gh (33.9 KB)

Thank you! I am alsowaondering what is causing this issue… logically it should also work.

Boundary Surface component is changing the order on which some of those rectangular surfaces are created (see the difference in numbering on their area centroid when compared to the grafted+flattened version, which would work just fine as well)

touble shoot_inno2.gh (31.6 KB)

the reason for that is Boundary Surface tries to get as many planar surfaces as it can from the supplied curves, but the function will for sure reorder stuff in a different way while those surfaces are created

if you don’t want go through that, you can also just create planar surfaces instead of rectangles:

Ah I see, thank you!