select patch whose vertices consist 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_select(Vix,F,Nvertex) 0002 % select patch whose vertices consist 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(Fnew(:,1).*Fnew(:,2).*Fnew(:,3)); 0012 Fnew = F(ix,:);