added algorithm for copping, does not work for z direction?
cropping performed in parameterisation