Well, that option only works if you have a geometrically shaped terrain (which I really do not recommend) AND you don't use the terrain raise/lower-tool (without it, a terrain can nearly never look any good).
I have to go now, but I'll post a better function in a while (it's JASS, it has to be, but you don't need to do anything - I'll make it completely GUI-understandable).