next up previous
Next: 3D curve Bezier test Up: Bezier curves and surfaces Previous: Gammatest

2D curve Bezier test

plot2d(-0.2,-0.2,0,"011"," ",[-0.2,-0.2,1.2,1.2]);
xtitle('Bezier Test : random polygon and bezier curve')
rand('uniform');
p=rand(2,5);
t=linspace(0,1,300);
s=bezier(p,t);
plot2d(p(1,:)',p(2,:)',1,"000");
plot2d(s(1,:)',s(2,:)',2,"000");
\fbox{\epsfig{file=foo0_56.eps,width=3.75in}}

Scilab group