function r=match_uvcut(p,uvcut) searches to see if you've already calculated a map with uv range uvcut. returns matching index for p.mos Michael Loh
0001 function r=match_uvcut(p,uvcut) 0002 0003 % function r=match_uvcut(p,uvcut) 0004 % 0005 % searches to see if you've already calculated a map with uv range 0006 % uvcut. returns matching index for p.mos 0007 % 0008 % Michael Loh 0009 0010 r=[]; 0011 for i=1:length(p.mos) 0012 if (all(p.mos{i}.uvcut==uvcut)) 0013 r=i; 0014 break; 0015 end 0016 end