simpler implementation of volume and area calculations in the mesher (merged two routines)