Real time toolpath generation, no need for large memory to store values