Please study other people projects: there are few very useful forum discussions:
We did spend (mostly @DaleKramer, @dschroeder) hundreds of hours on those problems. Alas, you need understand what is going on under the meshing surface and it means that you need to spend some time reading what is already available on line in our forum.
Take care,
Retsam