Boolean Operations for the Simulation of Machining Processes Based on the CSG Modeling Technique

The simulation of computer numerically control (CNC) machining process is an important component of CAM, it can check errors and enhance the automation of machining process. In order to realize the material removal simulation of machining process through VC++ and OpenGL, this paper does the research on the Boolean operations based on the Constructive Solid Geometry (CSG) modeling technique. Firstly, this paper introduces the CSG technique, especially the creating complex object from simple primitives by the operations of Boolean algebra and the frame buffer. Then this paper achieves the solid modeling of cutter and stock through VC++ and OpenGL, and does the research on the theory of cutter’s swept volume generation. In terms of the theory, a cutter’s swept volume is created. Finally, the Boolean difference operation of a stock and the cutter’s swept volume is realized, and the code is also given.