Home > freetb4matlab > nurbs > nrbtform.m

nrbtform

PURPOSE ^

SYNOPSIS ^

function nurbs = nrbtform(nurbs,tmat)

DESCRIPTION ^

 
 NRBTFORM - Apply transformation matrix to the NURBS.
 
 Calling Sequence:
 
   tnurbs = nrbtform(nurbs,tmatrix);
 
 Parameters:
 
   nurbs    : NURBS data structure (see nrbmak for details).
 
   tmatrix     : Transformation matrix, a matrix of size (4,4) defining
                 a single or multiple transformations.
 
   tnurbs    : The return transformed NURBS data structure.
 
 Description:
 
   The NURBS is transform as defined a transformation matrix of size (4,4),
   such as a rotation, translation or change in scale. The transformation
   matrix can define a single transformation or multiple series of
   transformations. The matrix can be simple constructed by the functions
   vecscale, vectrans, vecrotx, vecroty, and vecrotz.
     
 Examples:
 
   Rotate a square by 45 degrees about the z axis.

   rsqr = nrbtform(nrbrect, vecrotz(deg2rad(45)));
   nrbplot(rsqr, 10);
 
 See:
 
   vecscale, vectrans, vecrotx, vecroty, vecrotz

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003