Methods for the arbitrary deformation of spacetime