Home > freetb4matlab > nurbs > nrbkntins.m

nrbkntins

PURPOSE ^

SYNOPSIS ^

function inurbs = nrbkntins(nurbs,iknots)

DESCRIPTION ^

 
 NRBKNTINS: Insert a single or multiple knots into a NURBS curve or
            surface.
 
 Calling Sequence:
 
   icrv = nrbkntins(crv,iuknots);
   isrf = nrbkntins(srf,{iuknots ivknots});
 
 Parameters:
 
   crv        : NURBS curve, see nrbmak.
 
   srf        : NURBS surface, see nrbmak.
 
   iuknots    : Knots to be inserted along U direction.
 
   ivknots    : Knots to be inserted along V direction.
 
   icrv    : new NURBS structure for a curve with knots inserted.
 
   isrf    : new NURBS structure for a surface with knots inserted.
 
 Description:
 
   Inserts knots into the NURBS data structure, these can be knots at
   new positions or at the location of existing knots to increase the
   multiplicity. Note that the knot multiplicity cannot be increased
   beyond the order of the spline. Knots along the V direction can only
   inserted into NURBS surfaces, not curve that are always defined along
   the U direction. This function use the B-Spline function bspkntins,
   which interfaces to an internal 'C' routine.
 
 Examples:
 
   Insert two knots into a curve, one at 0.3 and another
   twice at 0.4

   icrv = nrbkntins(crv, [0.3 0.4 0.4])
 
   Insert into a surface two knots as (1) into the U knot
   sequence and one knot into the V knot sequence at 0.5.

   isrf = nrbkntins(srf, {[0.3 0.4 0.4] [0.5]})
 
 Also see:
 
   bspkntins

 Note:

   No knot multiplicity will be increased beyond the order of the spline.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003