In 4th axis positioning and 5th axis positioning the tool must retract to a safe distance so that it will not collide with the part while it is indexing. To achieve this, FeatureCAM calculcates the maximum stock radius and adds to that the Z index clearance to determine the appropriate retract distance.