Calculation of point of gravity for wall elements.