only scale the z-axis when the maximal ptp distance is >1e-16

Found this old branch where I fixed an issue that I had some time ago.

Merge request reports

Loading