I’m being lazy but do any of the connectors or libraries already have efficient routines for triangulating n-gons that we might find in Speckle Meshes?
It’s not important, but I’ll be implementing it in c++.
I don’t think we’re necessarily wedded to these, but we do have triangulation implemented in both sharp and web:
here it is in sharp:
and here it is in web:
note that I don’t think we’d call these “done” or perfect (found a bug somewhat recently that was promptly fixed ), but they are totally functional and useful
There are faster triangulation functions out there, but this one seems to serve our needs quite well for the applications that don’t support n-gons natively (unity, autocad, three.js)
If you decide to re-write this in C++, let me know if you need a hand!