An innovative tool for simulation and control of a flying-cutting machine