1 function idx = nrb_srf_numbasisfun__ (points, nrb)
3 % __NRB_SRF_NUMBASISFUN__: Undocumented internal function
5 % Copyright (C) 2009 Carlo de Falco
6 % This software comes with ABSOLUTELY NO WARRANTY; see the file
7 % COPYING for details. This is free software, and you are welcome
8 % to distribute it under the conditions laid out in COPYING.
23 spu = findspan (m, p, u, U);
24 Ik = numbasisfun (spu, u, p, U);
26 spv = findspan (n, q, v, V);
27 Jk = numbasisfun (spv, v, q, V);
30 [Jkb, Ika] = meshgrid(Jk(k, :), Ik(k, :));
31 idx(k, :) = sub2ind([m+1, n+1], Ika(:)+1, Jkb(:)+1);