Dynamic adaptation for deforming tetrahedral meshes