generating border lines between coated and uncoated surfaces where one is not enclosed in the other