扩展贝塞尔曲线库或贝塞尔曲线运算算法

发布于 2024-08-27 21:23:18 字数 176 浏览 6 评论 0原文

是否有二次贝塞尔曲线的数据结构和运算库?我需要实现:

  • 贝塞尔曲线到位图的转换,任意质量
  • 优化贝塞尔曲线
  • 常见操作,如减法、提取、渲染等。

语言:c、c++、.net、python
没有实现的算法(伪代码等)也可能很有用。 (特别是优化)

Is there a library of data structures and operations for quadratic bezier curves? I need to implement:

  • bezier to bitmap converting with arbitrary quality
  • optimizing bezier curves
  • common operations like subtraction, extraction, rendering etc.

languages: c,c++,.net,python
Algorithms without implementation (pseudocode or etc) could be useful too. (especially optimization)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

不弃不离 2024-09-03 21:23:18

Nodebox 中包含了一些 Python 库:

http://nodebox.net/code/index .php/Bezier

inkscape 内部有很多算法,但我还没有挖掘代码,发现它们在 inkscape 之外使用起来有多容易。

更新:Inkscape 正在使用 lib2geom:

lib2geom(私人生活中的 2Geom)是
最初是为
Inkscape 但会提供一个强大的
计算几何框架
任何应用程序。这不是渲染图
图书馆,而不是专注于高
计算弧等级别算法
长度。

lib2geom 位于 http://lib2geom.sourceforge.net

A little bit of python lib is included in nodebox:

http://nodebox.net/code/index.php/Bezier

There are plenty of algorithms inside inkscape, but I did not digg the code yet to find, how easy they could be used outside if inkscape.

Update: Inkscape is using lib2geom:

lib2geom (2Geom in private life) was
initially a library developed for
Inkscape but will provide a robust
computational geometry framework for
any application. It is not a rendering
library, instead concentrating on high
level algorithms such as computing arc
length.

lib2geom is at http://lib2geom.sourceforge.net

染火枫林 2024-09-03 21:23:18

您可能想看看开罗。我不确定它是否满足您的所有要求,但它至少应该能够处理渲染。

You might want to take a look at Cairo. I am not exactly sure if it covers all your requirements but it should be able to handle rendering at least.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文