added code that passes deformation info to Body and Shell objects