compute mass properties for 2d bodies
