0001 function Findx = vb_find_big_triangle(F,V,Dmax)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 Npatch = size(F,1);
0013 dd=zeros(3,1);
0014
0015 Findx = [];
0016
0017
0018 for j=1:Npatch,
0019
0020 k = F(j,:);
0021
0022 X = V(k,:);
0023
0024 dd(1) = (X(1,1)-X(2,1)).^2 + (X(1,2)-X(2,2)).^2 + (X(1,3)-X(2,3)).^2;
0025 dd(2) = (X(2,1)-X(3,1)).^2 + (X(2,2)-X(3,2)).^2 + (X(2,3)-X(3,3)).^2;
0026 dd(3) = (X(3,1)-X(1,1)).^2 + (X(3,2)-X(1,2)).^2 + (X(3,3)-X(1,3)).^2;
0027
0028 if max(sqrt(dd)) > Dmax,
0029 Findx = [Findx; j];
0030 end
0031 end;