Integrate Mapbox earcut.hpp for robust triangluation - #298
Conversation
…his partially solves issue no. 295.
… 5 or more vertices).
|
It also contains possible fix of existing triangulation code. #156 (comment) |
|
Enabled MAPBOX_EARCUT for Python binding. |
| /* | ||
| ISC License | ||
|
|
||
| Copyright (c) 2015, Mapbox |
There was a problem hiding this comment.
Could I ask you to incorporate this new license text into the top-level LICENSE file in this repository (so that there are two license stanzas in that one file)?
I would like to redistribute object code that uses tinyobjloader, so I'll need to incorporate this license text into my redistributed notices. Doing so is a little bit annoying if the license text is embedded into the C++ header, instead of as a separate file.
There was a problem hiding this comment.
I see. It'd be better to separate mapbox earcut file into a separate file. Will create PR soon. Also we'll add ISC license to LICENSE file.
* Use simple triangulation rule for the quad face when triangulation. This partially solves issue no. 295. * Embed mapbox/earcut.hpp code(for robust triangulation) * Use mapbox/earcut.hpp for the polygon tessellation(for a polygon with 5 or more vertices). * Use Mapbox earcut(robust triangulation) by default for python binding. * Fix compile of Mapbox earcut code path.
Integrate mapbox/earcut.hpp for robust polygon trinagulation. It should be battle-tested and reliable https://github.com/mapbox/earcut.hpp
Its optional. To enable mapbox/earcut.hpp, define
TINYOBJLOADER_USE_MAPBOX_EARCUT.For python binding, minimum C++ requirement is C++11 so we can enable it by default.