Machining simulation is often used to verify the rationality of NC (Numerical Control) machining toolpath and is the core function of CAM software. In order to improve computational efficiency, machining simulation algorithm is usually designed based on the discrete geometric model of workpiece, which is widely used in engineering. With the discrete geometric model as input, machining simulation algorithm is difficult to generate real-time changing 3D rendering visualization for workpiece. This paper proposed a GPU-driven mesh generation method for machining simulation. This method improves the traditional conversion method based on Marching Cube algorithm, and uses the parallel computing capability of GPU to improve the efficiency of mesh generation. The method proposed in this paper supports real-time user interaction, and may also be applied to virtual engraving modeling and digital twin for NC machining.