二次贝塞尔转换为立方?

编程入门 行业动态 更新时间:2024-10-10 01:18:55
本文介绍了二次贝塞尔转换为立方?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

什么是算法转换成二次贝塞尔(含3分)为一个立方一(得4分)

What is the algorithm to convert a quadratic bezier (with 3 points) to a cubic one (with 4 points)

感谢

推荐答案

从fontforge.sourceforge/bezier.html:

不限二次样条可以是pssed作为立方(其中立方项为零)前$ P $。立方的端点将是相同的二次的

Any quadratic spline can be expressed as a cubic (where the cubic term is zero). The end points of the cubic will be the same as the quadratic's.

CP 0 = QP 0   CP 3 = QP 2

CP0 = QP0 CP3 = QP2

这两个控制点的三次分别是:

The two control points for the cubic are:

CP 1 = QP 0 + 2/3 *(QP 1 -QP 0 )   CP 2 = QP 2 + 2/3 *(QP 1 -QP 2 )

CP1 = QP0 + 2/3 *(QP1-QP0) CP2 = QP2 + 2/3 *(QP1-QP2)

...有由于四舍五入推出了轻微的错误,但它是不太可能显着。

...There is a slight error introduced due to rounding, but it is unlikely to be noticeable.

更多推荐

二次贝塞尔转换为立方?

本文发布于:2023-11-29 06:55:31,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1645667.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:立方   转换为   塞尔

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!