| The NC programming is the process of obtainning the NC program from the components blueprint, and the CNC processing simulation indicates a mapping of the NC machine tool in the hypothesized environment, and it includes the technique of manufacture, the therories of NC machine tool, CAD, CAM, and modeling and simulating, demonstrates the NC processing vividly, and is advantageous in grasping the essential method of NC programming quickly.Using Delphi and OpenGL based on the Windows platform, the system accomplished the three dimensional dynamic simulation of NC processing. The under content is this paper mainly realization:1, Program source: The editor used for editing NC program has a friendly interface, and has the examination module and enough help information.2, Program examination: The system examines the NC program taking the continual character excepting space as the unit, and process the cutting tool radius compensation if necessary.3, Turning simulation: Reestablishing the model of work piece by the method Partition-And-Accumulate to increases the precision of the model and the rendering speed. The system can also establish the model of screw thread. The model without changing the geometry can be estabished by other applications and loaded if necessary to reduce the size of the system and make the maintenance to be easy.4, Milling simulation: Reestablishing the model of work piece by calculate the intersection between the discrete vector and cutter swept volume 。 The rough surface for cutting is dispersed averagely andrestructured by the arithmetic called Delaunay. Before the sumulation the rough was defined until the next modification to improve the rendering speed. |