Divide Curve in segments with curtain length

@m.shcheblykin Look at this previous post and see if it helps