Alpha version of generating deformation on GPU.
part of #190.