select patch which include given vertex points Fnew = vb_patch_select(Vix,F,Nvertex) Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function Fnew = vb_patch_select2(Vix,F,Nvertex) 0002 % select patch which include given vertex points 0003 % Fnew = vb_patch_select(Vix,F,Nvertex) 0004 % 0005 % Copyright (C) 2011, ATR All Rights Reserved. 0006 % License : New BSD License(see VBMEG_LICENSE.txt) 0007 0008 Itrans = zeros(Nvertex,1); 0009 Itrans(Vix) = 1:length(Vix); 0010 Fnew = Itrans(F); 0011 ix = find(sum(Fnew,2)); 0012 Fnew = F(ix,:);