catmull-rom splines for Android

后端 未结 2 1516
借酒劲吻你
借酒劲吻你 2021-01-22 17:57

I\'m trying to find a way to implement catmull-rom splines on the android platform for the purpose of smoothly drawing a line through n points. Ideally I would be able to adapt

相关标签:
2条回答
  • 2021-01-22 18:47

    This game development library for Android seems to have Catmull-Rom splines implemented: http://code.google.com/p/libgdx/.

    p.s., you tagged Bezier, that's incorrect -- that's the type of curve that uses control points outside the curve which have external influences :)

    0 讨论(0)
  • 2021-01-22 18:49

    I was facing the same problem and there is solution I have found:

    Smooth Bézier Spline Through Prescribed Points

    It is implemented in JavaScript, but it can be easily rewritten to Java - result is natural spline drawn using Path.quadTo().

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