Affine approximation of 3D transformation