get disconnect surface [Fnew, Vnew, Vmiss, Fmiss] = vb_get_disconect_surf(F,V) V から 連結している頂点を取り出す Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function [Fnew, Vnew, Vmiss, Fmiss] = vb_get_disconect_surf(F,V) 0002 % get disconnect surface 0003 % [Fnew, Vnew, Vmiss, Fmiss] = vb_get_disconect_surf(F,V) 0004 % V から 連結している頂点を取り出す 0005 % 0006 % Copyright (C) 2011, ATR All Rights Reserved. 0007 % License : New BSD License(see VBMEG_LICENSE.txt) 0008 0009 [Fnew, Vnew, xx, Vmiss, Fmiss] = vb_out_normal(F,V); 0010 0011 % # of disconnected vertex 0012 Nmiss = size(Vmiss,1); 0013 fprintf('# of disconnected vertex = %d\n', Nmiss) 0014 % 閉局面のチェック: omega = 1 0015 omega = vb_solid_angle_check(Vnew,Fnew); 0016 fprintf('Closed surface index (=1) for eye : %f\n', omega)