简化三次贝塞尔路径?

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

我想实现的东西接近到什么Adobe Illustrator中不使用画笔工具。它正确地分析和简化了路径,包括它的贝赛尔手柄。我实现了Ramer–Douglas–Peucker_algorithm然而,彼时实际上不是我所需要的。它非常适用于线段,但在贝赛尔手柄并不因素。是否有一个算法,能做到这样的算法,但考虑到三次Bezier手柄?与这一个问题是一个曲线可以以一角度,但该算法只看到一条直线。

I'm trying to achieve something close to what Adobe Illustrator does with the brush tool. It correctly analyzes and simplifies the path, including its bezier handles. I implemented the Ramer–Douglas–Peucker_algorithm however, it wound up not really being what I needed. It works very well for line segments, but doesn't factor in bezier handles. Is there an algorithm that can do like this algorithm, but take into consideration cubic bezier handles? The problem with this one is that a curve could be at an angle but the algorithm only sees a straight line.

感谢

推荐答案

您可能想探索最小二乘法拟合贝塞尔曲线。这里是一个线程和的一个PDF 。我几年前做了这样的事情,可能会有帮助,发现的杰拉尔德·法林的图书有益的,但​​我不记得是哪一个。

You probably want to explore least squares fitting for Bezier curves. Here's one thread and a pdf that may be helpful.. I did this sort of thing several years ago, and found one of Gerald Farin's books helpful, but I can't remember which one.

更多推荐

简化三次贝塞尔路径?

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

发布评论

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

>www.elefans.com

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