Logo Search packages:      
Sourcecode: octave-nurbs version File versions  Download package

nrbtestsrf.m

function srf = nrbtestsrf
% Constructs a simple test surface.

%  D.M. Spink
%  Copyright (c) 2000.

% allocate multi-dimensional array of control points
pnts = zeros(3,5,5);

% define a grid of control points
% in this case a regular grid of u,v points
% pnts(3,u,v)
%

pnts(:,:,1) = ;    % w*z

pnts(:,:,2) = ;

pnts(:,:,3) = ;

pnts(:,:,4) = ;

pnts(:,:,5) = ;

% knots
knots{1} = ; % knots along u
knots{2} = ; % knots along v

% make and draw nurbs surface
srf = nrbmak(pnts,knots);

Generated by  Doxygen 1.6.0   Back to index