Development of tool collision avoidance method adapted to the uncut shape