Extruding items by a number of different lengths

Hi all,

I think I have a simple problem but I am running into the edge of my knowledge in Grasshopper. I have created a series of extrusions that get their length from a surface that I created using Kangaroo. This lead to a high number of extrusions all with different lengths. Since this piece will eventually be fabricated, I am trying to normalize the length of these extrusions into a series of set lengths that I have identified. See the process below.


By taking the long edge of my extrusions I can get the overall length of the rod and then round that number to the nearest length. However, when I go back to re-extrude the rods using the new lengths the lists appear to be taking a single value instead of matching the two trees together and giving the correct value. See below.

Any ideas on how to make these lists match so the shapes extrude by the new rounded values in the right place?

Thanks in advance!

20250403_extrusiontrouble.gh (41.6 KB)
20250403_extrusiontrouble.3dm (10.7 MB)

Happy to have a look. But I don’t want to install plugins, just to be able to see how it works. Please isolate the issue, by just working with a small part of your gh file.
(Put in some geo components and internalize data)

I would solve it this way, but I don’t know if you have other needs.
20250403_extrusiontrouble a.gh (238.2 KB)

Leopold, thanks man this gets it done! I dont totally understand how this is different from what I was doing besides the intersect brep point. Wouldn’t the z of the edges give me the same length? Appreciate any explanation in case I encounter something like this again in the future.

My definition was just to remedy this problem.
That’s fine tooa z of the edges, but it seems less simple to me.