Trouble flattening surface around curves

Sounds similar to this one except your edges are not well defined.

Also this: