You've got to put every point into an array Then use RSORT Z,X,Y,anyOtherVariables Then draw everything You can take a look at my 3D thing if you'd like, its almost exactly what your doing