Code covered by the BSD License  

Highlights from
NURBS Toolbox by D.M. Spink

4.66667

4.7 | 6 ratings Rate this file 96 Downloads (last 30 days) File Size: 42.93 KB File ID: #26390
image thumbnail

NURBS Toolbox by D.M. Spink

by Paul Zhang

 

15 Jan 2010

NURBS Toolbox by D.M. Spink re-uploaded. The previous link has broken.

| Watch this File

File Information
Description

NURBS Toolbox official site is
http://www.aria.uklinux.net/nurbs.php3

% NURBS Toolbox.
% Version 1.0
%
% demos - NURBS demonstrations
%
% nrbmak - Construct a NURBS from control points and knots.
% nrbtform - Applying scaling, translation or rotation operators.
% nrbkntins - Knot insertion/refinement.
% nrbdegelev - Degree elevation.
% nrbderiv - NURBS representation of the derivative.
% nrbdeval - Evaluation of the NURBS derivative.
% nrbkntmult - Find the multiplilicity of a knot vector.
% nrbreverse - Reverse evaluation direction of the NURBS.
% nrbtransp - Swap U and V for NURBS surface.
% nrbline - Construct a straight line.
% nrbcirc - Construct a circular arc.
% nrbrect - Construct a rectangle.
% nrb4surf - Surface defined by 4 corner points.
% nrbeval - Evalution of NURBS curve or surface.
% nrbextrude - Extrude a NURBS curve along a vector.
% nrbrevolve - Construct surface by revolving a profile.
% nrbruled - Ruled surface between twp NURBS curves.
% nrbcoons - Construct Coons bilinearly blended surface patch.
% nrbplot - Plot NURBS curve or surface.
%
% bspeval - Evaluate a univariate B-Spline.
% bspderiv - B-Spline representation of the derivative
% bspkntins - Insert a knot or knots into a univariate B-Spline.
% bspdegelev - Degree elevation of a univariate B-Spline.
%
% vecnorm - Normalise the vectors.
% vecmag - Magnitaude of the vectors.
% vecmag2 - Squared Magnitude of the vectors.
% vecangle - Alternative to atan2 (0 <= angle <= 2*pi)
% vecdot - Dot product of two vectors.
% veccross - Cross product of two vectors.
% vecrotx - Rotation matrix around the x-axis.
% vecroty - Rotation matrix around the y-axis.
% vecrotz - Rotation matrix around the z-axis.
% vecscale - Scaling matrix.
% vectrans - Translation matrix.
%
% deg2rad - Convert degrees to radians.
% rad2deg - Convert radians to degrees.

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (8)
04 Mar 2010 Oliver

Very useful toolbox, thank you very much! Also very well commented and good examples.

27 Jun 2010 Evgeny Pr

Hello!
Where can I get C-implementation of this toolbox?

27 Jun 2010 Evgeny Pr

UPD:
http://www.phys.au.dk/~jvn/MatLab.htm

08 Jul 2010 GAURAV

I have a set of points say 300 something following the outline of cerebral aneurysm. I want to smooth this curve using the NURBS tool box provided here. How do i use this ? Where do I give my input? I just need a Bspline fitting to the data I have i.e. effectively to smooth the outline of the trace I have. Help me out..
Thanks!

20 Jul 2010 csg Chen

This toolbox is very useful. It can improve many problems in my applications. However, it seems some small bugs when I evaluate the derivative of nurbs curves/surfaces.
In the file "nrbderiv ":
  this file call the function "bspderiv". If the weights of the original nurbs curve/surface are equal ( example: the weight = 1 at each vertex ), this weights of nurbs curve/surface vanish after call bspderiv in file nrbderiv.
Maybe, we should revise the file "nrbderiv" before calling the function "bspderiv" to preserve the original weights.

20 Jul 2010 csg Chen  
21 Apr 2011 Li  
25 Sep 2011 Daniel Lopes

There are bugs that make this toolbox uncompatible with the Nurbs2IGES
(http://www.mathworks.com/matlabcentral/fileexchange/12087-nurbs2iges).

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
approximation Paul Zhang 18 Jan 2010 13:56:25
bspline Paul Zhang 18 Jan 2010 13:56:25
interpolation Paul Zhang 18 Jan 2010 13:56:25
nurbs Paul Zhang 18 Jan 2010 13:56:25
non uniform ration bsplines Paul Zhang 18 Jan 2010 13:56:25
approximation Li 21 Apr 2011 03:02:12

Contact us at files@mathworks.com