changed cube creation in deformGrid3d (much faster now).