High-performance NC for high-speed machining by means of polynomial trajectories