开发者

Drawing path by Bezier curves

开发者 https://www.devze.com 2023-01-02 12:48 出处:网络
I have a task - draw smooth curve input: set of points (they added in realtime) current solution: I use each 4 points to draw qubic Bezier curve (1 - strart, 2 and 3rd - control points, 4- end). End

I have a task - draw smooth curve

input: set of points (they added in realtime)

current solution: I use each 4 points to draw qubic Bezier curve (1 - strart, 2 and 3rd - control points, 4- end). End point of each curve is s开发者_StackOverflow社区tart point for the next one.

problem: at the curves connection I often have "fracture" (angle)

Can you tell me, how to connect my points more smooth?

Thanks!


Here is few references which can help you:

  • Draw a Smooth Curve through a Set of 2D Points with Bezier Primitives
  • Curve fitting
  • Line Smoothing and point-weeding
0

精彩评论

暂无评论...
验证码 换一张
取 消