# Redividing by length

Hi everyone,
I want to divide the top curve again in proportion to the lengths of the 4 different curves. I tried to do something, but the result I reached is not enough. It is necessary to divide the A curve by the length of the B curves. I’ll be happy if you can help me.

unnamed.gh (9.7 KB)

this could be one way

unnamed (9)_Re.gh (16.4 KB)

1 Like

Thank you for the answer. However, I don’t want piece number 4 in the image to come out. I want to cut the top curve again by proportioning the lengths of the curves below.

the piece number 4 does not indeed come out in the file attached to my previous post

 I think I understand what you mean, you want piece #4 to be split again using same proportions of 0 1, 2, 3

this behaves like this:

if length of curve A is < or = to the sum of the lengths of the curves in B, then A is divided proportionally to the lengths of the curves in B

if length of curve A is > than the sum of the lengths of the curves in B, then A is divided to resemble the exact lengths of the curves in B, then the remainder of A is divided by the same proportions of all the curves in B

unnamed (9)_ReRe.gh (16.5 KB)

1 Like