Drawing path by Bezier curves

限于喜欢 提交于 2019-11-26 22:59:49

问题


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 start 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!


回答1:


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


来源:https://stackoverflow.com/questions/2956967/drawing-path-by-bezier-curves

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!