0001 function    [F,V,Jlist,NDlist] = vb_make_halfsphere(Nsphere)
0002 
0003 
0004 
0005 
0006 
0007 
0008 
0009 
0010 
0011 
0012 
0013 Pos.theta_min  = 0;
0014 Pos.theta_max  = 0.5*pi;
0015 Pos.phi_min    = 0;
0016 Pos.phi_max    = 2*pi;
0017 Pos.r           = 1;                
0018 
0019 
0020 
0021 
0022 
0023 [Ntheta, Nphi, Nall ] = vb_calc_sphere_point_num(Nsphere);
0024 
0025 Pos.Ntheta       = Ntheta;
0026 Pos.Nphi       = Nphi    ;
0027 
0028 [x, NDlist, Jlist] = vb_make_sphere_point(Pos);    
0029 
0030 F = vb_make_triangle(Jlist);
0031 
0032 V      = x(:,1:3);
0033 
0034 return
0035 
0036 
0037 
0038 
0039 
0040 
0041 
0042 
0043 
0044 
0045 
0046 Npoint = size(V,1);
0047 Npatch = size(F,1);
0048 Ahead  = zeros(Npatch,1);
0049 
0050 for i=1:Npatch,
0051     xpl      = vb_cross2(V(F(i,2),:)-V(F(i,1),:), ...
0052                       V(F(i,3),:)-V(F(i,1),:));
0053     Ahead(i) = sqrt(xpl*xpl')/2;      
0054 end
0055 
0056 Amean = sum(Ahead)/Npatch;
0057 Amax  = max(Ahead);
0058 Amin  = min(Ahead);
0059 Aimg  = sum(abs(imag(Ahead)));
0060