开发者

An extended Bezier Library or Algorithms of bezier operations

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 implementatio开发者_StackOverflow中文版n (pseudocode or etc) could be useful too. (especially optimization)


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜