作者热门文章
- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
是否有二次贝塞尔曲线的数据结构和操作库?我需要实现:
语言: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/
我是一名优秀的程序员,十分优秀!