Automatic Detection of Tooth-Gingiva Trim Lines on Dental Surfaces