如何抵消三次贝塞尔曲线?

编程入门 行业动态 更新时间:2024-10-09 15:15:23
本文介绍了如何抵消三次贝塞尔曲线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我试图创建一个平行的贝塞尔曲线。在我的尝试中,我已经接近但没有雪茄。我试图在两条曲线(红色,蓝色)之间保持一个稳定的1px的偏移量。 b $ b

我的主要目标是使用边界偏离的algorythm来展开/缩小svg路径。

解决方案

对于正在寻找解决方案的其他人,我已经创建了一个AS3版本。

seant23.wordpress/2010/11/12/ offset-bezier-curves /

解决方案

来自wikipedia:( en.wikipedia/wiki/B%C3%A9zier_curve )

与给定Bézier曲线固定偏移的曲线,通常称为偏移曲线(位于平行l到原始曲线,就像铁轨中轨道之间的偏移),不能用Bézier曲线完全形成(除了一些微不足道的情况)。但是,有些启发式方法通常可以为实际目的提供足够的近似值。

您可能还会看到这里指出的文章:

I'm trying to create a "parrallel" bezier curve. In my attempts I've gotten close but no cigar. I'm trying to keep a solid 1px offset between the 2 curves (red,blue).

My main goal is use a edge offseting algorythm to expand/shrink a svg path.

Solution

For anyone else who is looking for a solution, I've create a AS3 version.

seant23.wordpress/2010/11/12/offset-bezier-curves/

解决方案

From wikipedia: ( en.wikipedia/wiki/B%C3%A9zier_curve )

The curve at a fixed offset from a given Bézier curve, often called an offset curve (lying "parallel" to the original curve, like the offset between rails in a railroad track), cannot be exactly formed by a Bézier curve (except in some trivial cases). However, there are heuristic methods that usually give an adequate approximation for practical purposes.

You might also see the paper indicated here: Outline of cubic bezier curve stroke

更多推荐

如何抵消三次贝塞尔曲线?

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

发布评论

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

>www.elefans.com

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