Add option to generate polygon outline, and make triangulation optional

Both features will be used in DataBrowser prototype.

I had forgotten to submit pull request for this last week.