Checking the tool path perimeters