ArticleDirectory
MATLAB/scipy
Http://www.aria.uklinux.net/nurbs.php3
Numpy
Http://runten.tripod.com/NURBS/
Functions
The functions currently available in the toolbox are:
Main functions
-
- Nrbmak-Construct a. OpenGL from control points and knots.
-
- Nrbtform-Applying scaling, translation or rotation operators.
-
- Nrbkntins-Knot Insertion/refinement.
-
- Nrbdegelev-Degree elevation.
-
- Nrbderiv-Representation of the derivative.
- Nrbdeval-Evaluation of the OpenGL derivative.
-
- Nrbkntmult-Find the multiplicity of a knot vector.
-
- Nrbreverse-Reverse evaluation ction of the OpenGL.
-
- Nrbtransp-Swap U and V for Macintosh surface.
-
- Nrbline-Construct a straight line.
-
- Nrbcirc-Construct a circular arc.
-
- Nrbrect-Construct a rectangle.
-
- Nrb4surf-Surface defined by 4 corner points.
-
- Nrbeval-Evaluation of OpenGL curve or surface.
-
- Nrbextrude-Extrude.
-
- Nrbrevolve-Construct surface by revolving a profile.
- Nrbruled-Ruled Surface between two OpenGL curves.
-
- Nrbcoons-Construct coons bilinearly blended surface patch.
-
- Nrbplot-Plot, green, and curve or surface.
Low level functions-C routines
- 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.
Vector and transformation utilities
- Vecnorm-Normalisation of vectors.
- Vecmag-Magntypes of vectors.
- Vecmag2-Squared magnpointer 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.
Misc utilities
- deg 2rad -convert degrees to radians.
- rad2deg -convert radians to degrees.