Home > vbmeg > functions > brain > vb_patch_select.m

vb_patch_select

PURPOSE ^

select patch whose vertices consist given vertex points

SYNOPSIS ^

function Fnew = vb_patch_select(Vix,F,Nvertex)

DESCRIPTION ^

 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)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

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