I'm going to develop a cnc simulator for my cnc machine. I don't want to simulate the G-Codes, instead, I want to simulate by getting the x,y,z position of the milling tool. The simulation should be 3D and the user should be able to rotate and zoom during the simulation.
For this, i have decided to subtract a moving cylinder from a box. First I had tested the OpenCSG but after few second it became too slow. because the number of the cylinders(number of tool position) was about 20,000,000! and the OpenCSG does all subtracts at each frame. so i think that if opencascade can subtract a cylinder from a cube and save the result shape as a new one(do not subtract for each frame), the problem will be solved. is it true?
But i have read in this forum that boolean operation are too slow.
Can some body help me where to start?