generate_smooth_envelope function

Generate smooth envelope around surface