AnotherJake Wrote: ... got a good chuckle out of that post! (except for the emergency of course -- hope all is well there...)

Thank you; regarding the emergency, all is not well. My GF and I are simply waiting for the inevitable now.

So in the meantime I keep myself occupied with work, and with this CGAL stuff, which I've finally managed to make work. And the good news is that CGAL's mesh simplification algorithm is really excellent.

No holes, no weird degenerate triangles, and best of all, the remaining triangles are really well distributed. So while I groused about CGAL's C++, it turns out to be worth it.

Also, I'm posting my code below in case anybody here ever searches on CGAL and can't figure out how the holy hell they're supposed to populate a Polyhedron_3 or how to extract triangles from one later.

That looks a lot better than the first screenshot, even if you don't count the fixing of the holes. The first screenshot looked like it had mixed in some 4 and 5 sided polygons as well as a few concave polygons. Nothing but evenly spaced triangles in the second. Nifty.

Bachus Wrote:That looks a lot better than the first screenshot, even if you don't count the fixing of the holes. The first screenshot looked like it had mixed in some 4 and 5 sided polygons as well as a few concave polygons. Nothing but evenly spaced triangles in the second. Nifty.

Well, to apply blame where it's due, the four & five sided faces were actually triangles with missing edges for the wireframe render. I'd used a bad hashing algorithm to uniquely identify edges...

But those first two approaches still were pretty poor. CGAL's fantastic.

Also, OSC: regarding the license, CGAL's licence seemed to be pretty liberal so long as the work is noncommercial & you credit them. Since this isn't anything I'm ever going to sell, but rather just a plaform for self-education, I think I'm in the clear.