Module gr_bezier


Name:
gr_bezier - a GRToolbox module
Description:
Calculates bezier curves. Input points
will be taken as controlpoints for the casteljau algorithm.
The degree of the curve is given by number of points per set -1.
The resulting curve is continous.
Each bezier curve will have the same number of points given
by the -n option.
degree+1 controlpoints are taken for each piece of curve
Two neighbored curvepieces share on controlpoint, so altogether
#pieces * degree +1 controlpoints are neded. The number of input points
should match this number.
Synopsis:
-[n rh o v noc nof now skip f m c e i s l]
-help For help on all options.
Special Options:
-n int number of points for each curve patch.
Example Input Data:
1 0
3 4
5 2
8 9
10 3
&
0 1
2 3
3 4
4 9
Example Output Data:
1 0
1.89392 1.41
2.81436 2.34598
3.77778 3.09877
4.78967 3.82381
5.84454 4.54123
6.92593 5.1358
8.0064 5.35696
9.04755 4.81878
10 3
&
0 1
0.631001 1.63649
1.19616 2.24005
1.7037 2.85185
2.16187 3.51303
2.57888 4.26475
2.96296 5.14815
3.32236 6.20439
3.66529 7.47462
4 9



Back to List of all GR Modules.