Make mergemodels capable of applying arbitrary affine transformations, not just translations.