Physics-based subspace deformation: Theory and application