Optimization of Numerically Controlled Five Axis Machining Using Curvilinear Space Filling Curves