The sand patch method is one of the most basic methods for measuring pavement texture depth (TD), which is an important reference index for pavement anti-skid performance evaluation and road maintenance. However, manual sand patch method heavily relies on the experience of the operators. The emergence of laser 3D scanning and simulation has made it possible to conduct digital sand patch. This study introduces a digital sand patch framework based on 3D scanning and discrete element simulation for precise TD measurement. We developed a 3D scanner with an accuracy of 0.04 mm to obtain the pavement texture data, along with algorithms for outlier removal and slope correction in point cloud data. The method of 3D reconstruction of triangular meshes was adopted to transform discrete point clouds into continuous 3D models to build 3D pavement models. In addition, the virtual process of rotation-spreading-measurement of the digital sand patch method was constructed by discrete element simulation with reference to the physical principles of the manual sand patch method. At the same time, an adaptive dynamic feedback control logic was proposed to accurately determine the termination conditions of the sand patching process. To validate our method, we collected 126 samples from over 20 km of pavement surfaces with various gradations. The results demonstrated an average relative error of 2.92 % compared to the manual sand patch method, and a correlation coefficient of 0.9926 with the laser scanning Mean Profile Depth (MPD) algorithm. Stability and accuracy tests, including scanning downsampling and volatility assessments, confirmed the robustness of our method. This innovative technique for rapid and precise TD measurement not only offers immediate practical benefits but also sets the stage for future research on pavement skid resistance.