BezierSegmentLength returning incorrect lengths (with solution)

Hellllooo

I found a trivial bug in BezierSegmentLength:
(running 7.0 preview-0184)

  • the Partial Lengths output returns one slice too many (equal to the total length of the segment)
  • Total Length returns twice the actual length (because of the additional slice above that is summed to the rest)

This is solved by reducing the Count by 1 in the Repeat region, that is currently run one time too many (since it calculates length between points N and N+1 it should run only N-1 times)

Here is a patch demonstrating the issue and solution.

Hope this can help!

Best
T

debug-BezierSegmentLength_20250303.vl (29.1 KB)

1 Like

thank you

1 Like