When the projection direction is uncertain, the projected surface and the amount of mesh data are constantly increasing, which reduces the efficiency of projection calculation. In order to solve this problem, this paper uses the Z curve to reduce the dimension and the properties of data clustering, and based on the construction principle of Z-order curve, the discrete point data is divided and mapped to the Z curve, and the nearest distance point is quickly searched, and this point is used as the initial iteration point, and then use Newton iteration to search the surface area where the closest point is located to obtain the exact projected point. The comparison of numerical experiments shows that the projection query algorithm based on Z-order curve has better efficiency and effect.