Adaptive detection and approximation of unknown surface discontinuities from scattered data