Select tool as function of part shape, number of grooves and groove width