beziertoy

This is a library to handle cubic bezier curve. Currently it only handles closed path.
This library is intended to handle any number of control points but it will create several "sub-curves" following cubic bezier curve (this means a fixed polynomial degree)  so the resulting curve is not only one bezier curve but it is several bezier curves.
As bezier curve touches the first and last control points only, I use two real control points as first and last point and two internal (not real control points) to compose those four points so one cubic bezier curve is completely defined. E.g., if one uses points p1,p2,p3,and p4, the library will create curves following p1-p2,p2-p3,p3-p4,and p4-p1, even if only 4 control points exist, 4 curves are created and new internal points are computed, i.e., around p1, two points are created. Per example, for p1-p2 curve, one will have p1,p11,p20,p2 to define this curve p1-p2 so p11 and p20 are internal and computed points. These points were created by using simple tangents around points (p1,p2,p3,p4).
Initial support to create surfaces using bezier curves is initiated.

info/download page:http://www.sourceforge.net/projects/beziertoy
Snapshot of Motif/Lesstif example:
beziertoy.png
beziertoy1.png
beziertoy2.png
Testing simple bezier surface using 3DG1 format in my mesheditor:
beziertoy3.png
One can plot using gnuplot too:
beziertoy4.png
Example using Motif/Lesstif with OpenGL support, fake bezier surface (parametric in u):
beziertoy5.png
beziertoy6.png
beziertoy7.png
beziertoy8.png
Using real bezier surface (parametric in u&v):
beziertoy9.png
beziertoy10.png
beziertoy11.png


License is GPL.




Thanks to www.sourceforge.net for hosting this project.
This page is expected to work for any browser.
SourceForge Logo