Correct bug in case triangles are aligned with 0z.