convert bezier curve to polygonal chain?

后端 未结 5 955
心在旅途
心在旅途 2020-12-08 17:24

I want to split a bezier curve into a polygonal chain with n straight lines. The number of lines being dependent on a maximum allowed angle between 2 connecting lines. I\'m

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-08 18:21

    Use de Casteljau algorithm recursively until the control points are approximately collinear. See for instance http://www.antigrain.com/research/adaptive_bezier/index.html.

提交回复
热议问题