rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
cog_faces_alu3d_hexa.m
1 function cog = cog_faces_alu3d_hexa(M);
2 %function cog = cog_faces_alu3d_hexa(M);
3 %
4 % function computing the cog of the boundary_faces of a hexaeder alu3d mesh
5 
6 % Bernard Haasdonk 16.3.2006
7 
8  [XX,YY,ZZ] = coord_faces_alu3d_hexa(M);
9  X = sum(XX)/4;
10  Y = sum(YY)/4;
11  Z = sum(ZZ)/4;
12  cog = [X;Y;Z];
13 
14 
15 
16 % TO BE ADJUSTED TO NEW SYNTAX
17 %| \docupdate