Below you can see the front-view size comparison of the Nikon D810 and Pentax 645Z. The Nikon D810 is 10 mm narrower and 41 mm thinner than the Pentax 645Z but it is also 6 mm taller.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.