Geometry And Tool Motion Planning For Curvature Adapted Cnc Machining