simplified depth ordering to use a better calculated depth of each point
0.1.2 patch