Dear Adriano,
I didn't check the values, but maybe the error is because in the nurbs
toolbox the coefficients are the weighted control points, that is, the
control points multiplied by the weight. Anyway, Dominik did the same
geometry this last September, using the functions in the nurbs toolbox.
Below I copy what he did. If you want, you can save the geometry as a
text file using nrbexport.
Regards,
Rafa
# useful constants
w = sqrt(2) /2;
h = 1;
wh = w*h;
# assembling the circle
pnts = zeros(4,3,3);
pnts(:,:,1) = [ 1.0 w 0.0;
0.0 w 1.0;
h wh h ;
1.0 w 1.0];
pnts(:,:,2) = [ w 0.0 w;
w 0.0 w;
wh h wh ;
w 1.0 w];
pnts(:,:,3) = [ 0.0 w 1.0;
1.0 w 0.0;
h wh h ;
1.0 w 1.0];
# knot vectors
knots{1} = [0 0 0 1 1 1];
knots{2} = [0 0 0 1 1 1];
circle = nrbmak(pnts,knots);
geometry = geo_load (circle);
