gpt4 book ai didi

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

转载 作者:塔克拉玛干 更新时间:2023-11-03 05:35:44 26 4
gpt4 key购买 nike

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

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

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

最佳答案

nodebox 中包含了一些 python 库:

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

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

更新:Inkscape 正在使用 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 位于 http://lib2geom.sourceforge.net

关于python - 扩展的贝塞尔曲线库或贝塞尔曲线运算算法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2568018/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com