Home > vbmeg > functions > brain > vb_patch_select2.m

vb_patch_select2

PURPOSE ^

select patch which include given vertex points

SYNOPSIS ^

function Fnew = vb_patch_select2(Vix,F,Nvertex)

DESCRIPTION ^

 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)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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,:);

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005