Notifications
Clear all

[Closed] Why the lengthInterp and interpCurve3D is very slow~

hi~

when the curve length is very big like >10000 units then lengthInterp and interpCurve3D fnuction is very slow~

How to improve it~ ??

3 Replies

maybe the functions are not slow; are you too fast?

to get the interp value the algorithm has to calculate (build) the curve from the beginning to the end. the long road needs many steps…

try to get value by segment

pathInterp is faster then lengthInterp , but the return of pathInterp is not average lenth of the curve :shrug:

the line is city Road line .so the length is very big.> 2000 Meter

 PEN

Normalizing time is the issue here. This requires walking the spline in steps to get where you want to be. I don’t believe there is any way around that.