Make sure we never create mesh instances with 0 faces
Pre-compute Z values before face ordering (#984)

Pre-computed floating point numbers can be safely used in the comparison
function, whereas recomputation every time the sort function is called might
lead to a crash when the computed number is slightly differently every time,
because the sort function would return different results for the same faces.