Finding ridges and valleys in a discrete surface using a modified MLS approximation [Computer-Aided Design 37 (14) 1533-1542]