An OpenGL program for generating and visualising spline curves.
After compiling the program with make, start the program with
./spline_plotter --spline_type {$spline_type} --show_convex_hull {$style} --CCont {} --GCont {}
Replace
{$spline_type}with one of the following options{Hermite, Bezier, BSpline, CatmullRom, MINVO}{$style}with{0, 1, 2}- Selecting
1will draw lines joining adjacent control points,2will draw the control polygons
- Selecting
Note the only required argument is --spline_type. The rest are optional.
Whilst running the program, click on the screen to insert control points.
Pressing,
<F1>will clear all previously inserted points<r>will remove the last inserted point<e>will export the spline data in theresultsdirectory
