Add detail level adjustment
I love being able to export Revit files as STLs but my (perhaps-unusual) use case requires higher quality export of round parts due to our standardization on Revit for everything including some technical parts. The automatic generation of detail level by Mesh.Triangulate() was not producing a satisfactory result with high enough detail for our use.
This change adds a new trackbar and a textbox as well as a setting to control the triangulation detail level. Docs still need writing for this change.
My C# is still a bit rusty, sorry if the code is non-idiomatic. ~~I've compiled and tested for Revit 2017 only, so, while nothing should break, it needs checking for 2018. The commit included here has get_ProjectPosition renamed to GetProjectPosition for 2018 compatibility, however that is untested.~~ This patch works on 2019 and we use it every day.
Here's the changed UI:
Tested and confirmed working on 2019.