6-axis CAM toolpath planning for 3d-optics