Placing points equidistantly along an Archimedean spiral

前端 未结 1 1347
执笔经年
执笔经年 2021-01-03 12:26

I have an Archimedean spiral determined by the parametric equations x = r t * cos(t) and y = r t * sin(t).

I need to place n p

相关标签:
1条回答
  • 2021-01-03 12:53

    You want to place points equidistantly corresponding to arc length. Arc length for Archimedean spiral (formula 4) is rather complex

    s(t) = 1/(2*a) * (t * Sqrt(1 + t*t) + ln(t + Sqrt(1+t*t)))
    

    and for exact positions one could use numerical methods, calculating t values for equidistant s1, s2, s3... arithmetical progression. It is possible though.

    First approximation possible - calculate s(t) values for some sequence of t, then get intervals for needed s values and apply linear interpolation.

    Second way - use Clackson scroll formula approximation, this approach looks very simple (perhaps inexact for small t values)

     t = 2 * Pi * Sqrt(2 * s / a)
    

    Checked: quite reliable result

    0 讨论(0)
提交回复
热议问题