Mercurial > forge
changeset 6958:23ff23c91d06 octave-forge
Slight modifications in the help
line wrap: on
line diff
--- a/extra/nurbs/inst/basisfun.m Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/inst/basisfun.m Wed Mar 31 11:00:58 2010 +0000 @@ -19,7 +19,7 @@ % % OUTPUT: % -% N - Basis functions vector(numel(u)x(p+1)) +% N - Basis functions vector(numel(uv)*(p+1)) % % Adapted from Algorithm A2.2 from 'The NURBS BOOK' pg70. %
--- a/extra/nurbs/inst/nrbcoons.m Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/inst/nrbcoons.m Wed Mar 31 11:00:58 2010 +0000 @@ -8,7 +8,7 @@ % % INPUT: % -% ucrv1 : NURBS curve defining the bottom U direction boundary of +% ucrv1 : NURBS curve defining the bottom U direction boundary of % the constructed NURBS surface. % % ucrv2 : NURBS curve defining the top U direction boundary of
--- a/extra/nurbs/inst/nrbcylind.m Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/inst/nrbcylind.m Wed Mar 31 11:00:58 2010 +0000 @@ -18,7 +18,7 @@ % % center : Center of the cylinder, default (0,0,0) % -% sang : Start angle relative to the origin, default 0. +% sang : Start angle relative to the origin, default 0. % % eang : End angle relative to the origin, default 2*pi. %
--- a/extra/nurbs/inst/nrbdegelev.m Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/inst/nrbdegelev.m Wed Mar 31 11:00:58 2010 +0000 @@ -26,9 +26,9 @@ % % ecrv : new NURBS structure for a curve with degree elevated. % -% esrf : new NURBS structure for a surface with degree elevated. +% esrf : new NURBS structure for a surface with degree elevated. % -% evol : new NURBS structure for a volume with degree elevated. +% evol : new NURBS structure for a volume with degree elevated. % % % Description:
--- a/extra/nurbs/inst/nrbmak.m Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/inst/nrbmak.m Wed Mar 31 11:00:58 2010 +0000 @@ -15,10 +15,10 @@ % For a curve the control points are represented by a % matrix of size (dim,nu), for a surface a multidimensional % array of size (dim,nu,nv), for a volume a multidimensional array -% of size (dim,nu,nv,nw). Where nu is number of points along +% of size (dim,nu,nv,nw). Where nu is number of points along % the parametric U direction, nv the number of points along -% the V direction and nw the number of points along the W direction. -% dim is the dimension. Valid options +% the V direction and nw the number of points along the W direction. +% dim is the dimension. Valid options % are % 2 .... (x,y) 2D Cartesian coordinates % 3 .... (x,y,z) 3D Cartesian coordinates
--- a/extra/nurbs/inst/nrbrect.m Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/inst/nrbrect.m Wed Mar 31 11:00:58 2010 +0000 @@ -10,9 +10,9 @@ % % INPUT: % -% size : Size of the square (width = height). +% size : Size of the square (width = height). % -% width : Width of the rectangle (along x-axis). +% width : Width of the rectangle (along x-axis). % % height : Height of the rectangle (along y-axis). %
--- a/extra/nurbs/inst/nrbreverse.m Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/inst/nrbreverse.m Wed Mar 31 11:00:58 2010 +0000 @@ -12,7 +12,7 @@ % % OUTPUT: % -% rnrb : Reversed NURBS. +% rnrb : Reversed NURBS. % % Description: %
--- a/extra/nurbs/inst/nrbrevolve.m Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/inst/nrbrevolve.m Wed Mar 31 11:00:58 2010 +0000 @@ -20,7 +20,7 @@ % % OUTPUT: % -% srf : constructed surface +% srf : constructed surface % % Description: %
--- a/extra/nurbs/inst/nrbruled.m Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/inst/nrbruled.m Wed Mar 31 11:00:58 2010 +0000 @@ -8,9 +8,9 @@ % % INPUT: % -% crv1 : First NURBS curve, see nrbmak. +% crv1 : First NURBS curve, see nrbmak. % -% crv2 : Second NURBS curve, see nrbmak. +% crv2 : Second NURBS curve, see nrbmak. % % OUTPUT: %
--- a/extra/nurbs/inst/nrbsurfderiveval.m Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/inst/nrbsurfderiveval.m Wed Mar 31 11:00:58 2010 +0000 @@ -1,7 +1,7 @@ function skl = nrbsurfderiveval (srf, uv, d) % -% SURFDERIVEVAL: Compute the derivatives of a NURBS surface +% NRBSURFDERIVEVAL: Evaluate n-th order derivatives of a NURBS surface % % usage: skl = nrbsurfderiveval (srf, [u; v], d) %
--- a/extra/nurbs/inst/surfderivcpts.m Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/inst/surfderivcpts.m Wed Mar 31 11:00:58 2010 +0000 @@ -5,12 +5,15 @@ % usage: pkl = surfderivcpts (n, p, U, m, q, V, P, d) % % INPUT: +% % n+1, m+1 = number of control points % p, q = spline order % U, V = knots % P = control points % d = derivative order +% % OUTPUT: +% % pkl (k+1, l+1, i+1, j+1) = i,jth control point % of the surface differentiated k % times in the u direction and l
--- a/extra/nurbs/inst/surfderiveval.m Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/inst/surfderiveval.m Wed Mar 31 11:00:58 2010 +0000 @@ -5,13 +5,16 @@ % usage: pkl = surfderiveval (n, p, U, m, q, V, P, d) % % INPUT: +% % n+1, m+1 = number of control points % p, q = spline order % U, V = knots % P = control points % u,v = evaluation points % d = derivative order +% % OUTPUT: +% % skl (k+1, l+1) = surface differentiated k % times in the u direction and l % times in the v direction
--- a/extra/nurbs/inst/tbasisfun.m Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/inst/tbasisfun.m Wed Mar 31 11:00:58 2010 +0000 @@ -9,14 +9,16 @@ % N = tbasisfun ([u; v; w], [p q r], {U, V, W}) % % INPUT: +% % u or [u; v] : points in parameter space where the basis function is to be % evaluated % % U or {U, V} : local knot vector % -% p or [p q] : polynomial order of the bais function +% p or [p q] : polynomial order of the basis function % % OUTPUT: +% % N : basis function evaluated at the given parametric points % % Copyright (C) 2009 Carlo de Falco
--- a/extra/nurbs/inst/vecmag.m Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/inst/vecmag.m Wed Mar 31 11:00:58 2010 +0000 @@ -14,7 +14,7 @@ % % OUTPUT: % -% mvec : Magnitude of the vectors, vector of size (1,nv). +% mvec : Magnitude of the vectors, vector of size (1,nv). % % Description: %
--- a/extra/nurbs/src/basisfun.cc Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/src/basisfun.cc Wed Mar 31 11:00:58 2010 +0000 @@ -1,18 +1,17 @@ /* Copyright (C) 2009 Carlo de Falco - This program is free software; you can redistribute it and/or modify + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation, either version 2 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <octave/oct.h> @@ -21,18 +20,23 @@ DEFUN_DLD(basisfun, args, nargout, "\n\ BASISFUN: Compute B-Spline Basis Functions \n\ \n\ +Calling Sequence:\n\ +\n\ + N = basisfun(iv,uv,p,U)\n\ +\n\ INPUT:\n\ \n\ - i - knot span ( from FindSpan() )\n\ - u - parametric point\n\ + iv - knot span ( from FindSpan() )\n\ + uv - parametric point\n\ p - spline degree\n\ U - knot sequence\n\ \n\ OUTPUT:\n\ \n\ - N - Basis functions vector[p+1]\n\ + N - Basis functions vector(numel(uv)*(p+1))\n\ \n\ Algorithm A2.2 from 'The NURBS BOOK' pg70.\n\ +\n\ ") {
--- a/extra/nurbs/src/basisfunder.cc Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/src/basisfunder.cc Wed Mar 31 11:00:58 2010 +0000 @@ -1,18 +1,17 @@ /* Copyright (C) 2009 Carlo de Falco - - This program is free software; you can redistribute it and/or modify + + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation, either version 2 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <octave/oct.h> @@ -23,19 +22,22 @@ \n\ Calling Sequence:\n\ \n\ - ders = basisfunder (i, pl, u, k, nd)\n\ + ders = basisfunder (ii, pl, uu, k, nd)\n\ \n\ INPUT:\n\ \n\ - i - knot span\n\ + ii - knot span\n\ pl - degree of curve\n\ - u - parametric points\n\ + uu - parametric points\n\ k - knot vector\n\ nd - number of derivatives to compute\n\ \n\ OUTPUT:\n\ \n\ ders - ders(n, i, :) (i-1)-th derivative at n-th point\n\ +\n\ + Adapted from Algorithm A2.3 from 'The NURBS BOOK' pg72. \n\ +\n\ ") { octave_value_list retval;
--- a/extra/nurbs/src/bspderiv.cc Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/src/bspderiv.cc Wed Mar 31 11:00:58 2010 +0000 @@ -1,18 +1,17 @@ /* Copyright (C) 2009 Carlo de Falco - This program is free software; you can redistribute it and/or modify + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation, either version 2 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <octave/oct.h> @@ -29,8 +28,8 @@ INPUT:\n\ \n\ d - degree of the B-Spline\n\ - c - control points double matrix(mc,nc)\n\ - k - knot sequence double vector(nk)\n\ + c - control points double matrix(mc,nc)\n\ + k - knot sequence double vector(nk)\n\ \n\ OUTPUT:\n\ \n\
--- a/extra/nurbs/src/bspeval.cc Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/src/bspeval.cc Wed Mar 31 11:00:58 2010 +0000 @@ -1,18 +1,17 @@ /* Copyright (C) 2009 Carlo de Falco - This program is free software; you can redistribute it and/or modify + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation, either version 2 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <octave/oct.h>
--- a/extra/nurbs/src/curvederivcpts.cc Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/src/curvederivcpts.cc Wed Mar 31 11:00:58 2010 +0000 @@ -1,22 +1,17 @@ -/* -## Copyright (C) 2009 Carlo de Falco -## -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program is distributed in the hope that it will be useful, -## but WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -## GNU General Public License for more details. -## -## You should have received a copy of the GNU General Public License -## along with Octave; see the file COPYING. If not, see -## <http://www.gnu.org/licenses/>. +/* Copyright (C) 2009 Carlo de Falco + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 2 of the License, or + (at your option) any later version. -## Author: Carlo de Falco <cdf _AT_ users.sourceforge.net> -## Created: 2009-09-09 + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <octave/oct.h> @@ -34,6 +29,7 @@ \n d = maximum derivative order (d<=p) \ \n U = knots \ \n P = control points \ +\n\ \n OUTPUT: \ \n pk(k,i) = i-th control point (k-1)-th derivative \ \n \
--- a/extra/nurbs/src/low_level_functions.cc Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/src/low_level_functions.cc Wed Mar 31 11:00:58 2010 +0000 @@ -1,20 +1,19 @@ /* Copyright (C) 2009 Carlo de Falco some functions are adapted from the m-file implementation which is - Copyright (C) 2003 Mark Spink, 2007 Daniel Claxton + Copyright (C) 2000 Mark Spink, 2007 Daniel Claxton - This program is free software; you can redistribute it and/or modify + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation, either version 2 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + along with this program. If not, see <http://www.gnu.org/licenses/>. */
--- a/extra/nurbs/src/low_level_functions.h Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/src/low_level_functions.h Wed Mar 31 11:00:58 2010 +0000 @@ -1,18 +1,17 @@ /* Copyright (C) 2009 Carlo de Falco - This program is free software; you can redistribute it and/or modify + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation, either version 2 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + along with this program. If not, see <http://www.gnu.org/licenses/>. */ octave_idx_type findspan(int n, int p, double u, const RowVector& U);
--- a/extra/nurbs/src/nrb_srf_basisfun__.cc Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/src/nrb_srf_basisfun__.cc Wed Mar 31 11:00:58 2010 +0000 @@ -1,18 +1,17 @@ /* Copyright (C) 2009 Carlo de Falco - This program is free software; you can redistribute it and/or modify + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation, either version 2 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <octave/oct.h>
--- a/extra/nurbs/src/nrb_srf_basisfun_der__.cc Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/src/nrb_srf_basisfun_der__.cc Wed Mar 31 11:00:58 2010 +0000 @@ -1,18 +1,17 @@ /* Copyright (C) 2009 Carlo de Falco - This program is free software; you can redistribute it and/or modify + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation, either version 2 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <octave/oct.h>
--- a/extra/nurbs/src/nrbsurfderiveval.cc Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/src/nrbsurfderiveval.cc Wed Mar 31 11:00:58 2010 +0000 @@ -1,18 +1,17 @@ -/* -%% Copyright (C) 2009 Carlo de Falco -%% -%% This program is free software; you can redistribute it and/or modify -%% it under the terms of the GNU General Public License as published by -%% the Free Software Foundation; either version 2 of the License, or -%% (at your option) any later version. -%% -%% This program is distributed in the hope that it will be useful, -%% but WITHOUT ANY WARRANTY; without even the implied warranty of -%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -%% GNU General Public License for more details. -%% -%% You should have received a copy of the GNU General Public License -%% along with this program; if not, see <http://www.gnu.org/licenses/>. +/* Copyright (C) 2009 Carlo de Falco + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <iostream> @@ -70,10 +69,22 @@ DEFUN_DLD(nrbsurfderiveval, args, nargout,"\ \nNRBSURFDERIVEVAL: Evaluate n-th order derivatives of a NURBS surface.\n\ -\n \ +\n\ \n usage: skl = nrbsurfderiveval (srf, [u; v], d) \ -\n OUTPUT : skl (i, j, k, l) = i-th component derived j-1,k-1 times at the\ -\n l-th point.\ +\n\ +\n INPUT :\ +\n\ +\n srf : NURBS surface structure, see nrbmak\ +\n\ +\n u, v : parametric coordinates of the point where we compute the\ +\n derivatives\ +\n\ +\n d : number of partial derivatives to compute\ +\n\ +\n OUTPUT :\ +\n\ +\n skl (i, j, k, l) = i-th component derived j-1,k-1 times at the\ +\n l-th point.\ \n\ \n Adaptation of algorithm A4.4 from the NURBS book\n") {
--- a/extra/nurbs/src/surfderivcpts.cc Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/src/surfderivcpts.cc Wed Mar 31 11:00:58 2010 +0000 @@ -1,22 +1,17 @@ -/* -## Copyright (C) 2009 Carlo de Falco -## -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program is distributed in the hope that it will be useful, -## but WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -## GNU General Public License for more details. -## -## You should have received a copy of the GNU General Public License -## along with Octave; see the file COPYING. If not, see -## <http://www.gnu.org/licenses/>. +/* Copyright (C) 2009 Carlo de Falco + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 2 of the License, or + (at your option) any later version. -## Author: Carlo de Falco <cdf _AT_ users.sourceforge.net> -## Created: 2009-09-09 + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <octave/oct.h> @@ -30,12 +25,15 @@ \nusage: pkl = surfderivcpts (n, p, U, m, q, V, P, d) \ \n \ \n INPUT: \ +\n\ \n n+1, m+1 = number of control points \ \n p, q = spline order \ \n U, V = knots \ \n P = control points \ \n d = derivative order \ +\n\ \n OUTPUT: \ +\n\ \n pkl (k+1, l+1, i+1, j+1) = i,jth control point \ \n of the surface differentiated k \ \n times in the u direction and l \
--- a/extra/nurbs/src/surfderiveval.cc Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/src/surfderiveval.cc Wed Mar 31 11:00:58 2010 +0000 @@ -1,18 +1,17 @@ -/* -%% Copyright (C) 2009 Carlo de Falco -%% -%% This program is free software; you can redistribute it and/or modify -%% it under the terms of the GNU General Public License as published by -%% the Free Software Foundation; either version 2 of the License, or -%% (at your option) any later version. -%% -%% This program is distributed in the hope that it will be useful, -%% but WITHOUT ANY WARRANTY; without even the implied warranty of -%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -%% GNU General Public License for more details. -%% -%% You should have received a copy of the GNU General Public License -%% along with this program; if not, see <http://www.gnu.org/licenses/>. +/* Copyright (C) 2009 Carlo de Falco + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <octave/oct.h> @@ -21,16 +20,21 @@ DEFUN_DLD(surfderiveval, args, nargout,"\ +\nSURFDERIVEVAL: Compute the derivatives of a B-spline surface\ +\n\ \n usage: skl = surfderiveval (n, p, U, m, q, V, P, u, v, d) \ \n\ \n INPUT: \ +\n\ \n n+1, m+1 = number of control points\ \n p, q = spline order\ \n U, V = knots\ \n P = control points\ \n u,v = evaluation points\ \n d = derivative order\ +\n\ \n OUTPUT:\ +\n\ \n skl (k+1, l+1) = surface differentiated k\ \n times in the u direction and l\ \n times in the v direction\
--- a/extra/nurbs/src/tbasisfun.cc Wed Mar 31 00:45:06 2010 +0000 +++ b/extra/nurbs/src/tbasisfun.cc Wed Mar 31 11:00:58 2010 +0000 @@ -1,23 +1,17 @@ -/* -## Copyright (C) 2009 Carlo de Falco -## -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. -## -## This program is distributed in the hope that it will be useful, -## but WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -## GNU General Public License for more details. -## -## You should have received a copy of the GNU General Public License -## along with Octave; see the file COPYING. If not, see -## <http://www.gnu.org/licenses/>. +/* Copyright (C) 2009 Carlo de Falco + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 2 of the License, or + (at your option) any later version. -## Author: Carlo de Falco <cdf _AT_ users.sourceforge.net> -## Created: 2009-06-25 + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <octave/oct.h> @@ -62,7 +56,7 @@ \n\ U or {U, V} : local knot vector\n\ \n\ - p or [p q] : polynomial order of the bais function\n\ + p or [p q] : polynomial order of the basis function\n\ \n\ OUTPUT:\n\ N : basis function evaluated at the given parametric points\n")