1
% Construction of a bilinearly blended Coons surface
8
pnts = [ 0.0 3.0 4.5 6.5 8.0 10.0;
9
0.0 0.0 0.0 0.0 0.0 0.0;
10
2.0 2.0 7.0 4.0 7.0 9.0];
11
crv1 = nrbmak(pnts, [0 0 0 1/3 0.5 2/3 1 1 1]);
14
pnts= [ 0.0 3.0 5.0 8.0 10.0;
15
10.0 10.0 10.0 10.0 10.0;
16
3.0 5.0 8.0 6.0 10.0];
17
crv2 = nrbmak(pnts, [0 0 0 1/3 2/3 1 1 1]);
20
pnts= [ 0.0 0.0 0.0 0.0;
23
crv3 = nrbmak(pnts, [0 0 0 0.5 1 1 1]);
26
pnts= [ 10.0 10.0 10.0 10.0 10.0;
28
9.0 7.0 7.0 10.0 10.0];
29
crv4 = nrbmak(pnts, [0 0 0 0.25 0.75 1 1 1]);
31
srf = nrbcoons(crv1, crv2, crv3, crv4);
35
title('Construction of a bilinearly blended Coons surface.');