Sometimes a smooth brush isn't enough to fix a dent. It may smooth the surface, but the underlying curvature can still be slightly off.
This script attempts to restore dented areas by rebuilding the affected faces based on the curvature and shape of the surrounding geometry.
It works best on small dents and localized deformations. Results may be less accurate on larger damaged areas where there is not enough surrounding geometry to reliably reconstruct the original shape.