1 function [B, nbfu] = nrb_crv_basisfun__ (points, nrb);
2 % __NRB_CRV_BASISFUN__: Undocumented internal function
4 % Copyright (C) 2009 Carlo de Falco
5 % This software comes with ABSOLUTELY NO WARRANTY; see the file
6 % COPYING for details. This is free software, and you are welcome
7 % to distribute it under the conditions laid out in COPYING.
8 n = size (nrb.coefs, 2) -1;
14 spu = findspan (n, p, u, U);
15 nbfu = numbasisfun (spu, u, p, U);
17 N = w(nbfu+1) .* basisfun (spu, u, p, U);
18 B = bsxfun (@(x,y) x./y, N, sum (N,2));