 # Divide curve with lengths conditions

Hi Everyone,

I am looking for a way to divide a curve with same distances between each points (starting point and ending point included) with a maximum and a minimum length.

If X is the common length for each part, 27>X>20 whatever the length of the curve is.

I tried to use the divide length component, but the last part is not equal to the other lengths…

Is there a way to resolve this problem?

Thank you,

Rémy

You surely have to measure the length of your curve before dividing it. Or you mean distance and it is not the same thing !!
Without script it is hard to speculate. I have no Crystal ball Thank you for your answer. Yes, i already saw this topic but can’t find something that can help me on this one. Please find attached my definition.

So, what i am looking for is having a mix between divide curve (divide a curve with equal lengths) and divide length (having a control on the length divided between all points).

If X is the length between my dividing points on the curve, then A > X > B
My problem is finding a way to create, insert and manipulate A & B within the definition.

So, if i change the lines lengths, the algorithm choose by itself a X value (between A & B) and how many parts will be divided at the end (automatically).

I know it’s sounds a bit freakish, let me know if there is a way to make it happen.

Thank you,

Rémy

DIVIDE CURVES.gh (14.5 KB)

Maybe you mean something like divide equally but defined by closest division size to a target length. I have a Point Divide Curve Target Length component in my Pufferfish plug in which does that. You can equally divide by nearest, floor, or ceiling to a desired target length.

2 Likes

Yes! This is exactly what i need.

Thank you @Michael_Pryor