Registry / utility / earcut-hpp

earcut-hpp

JSON →
library2.2.4vcpkgunverified

earcut.hpp is a C++ port of earcut.js, a fast, header-only polygon triangulation library.

vcpkg install earcut-hpp
INSTALL
IMPORT
SIG · EARCUT-HPP
E
earcut-hpp
utilitycppv2.2.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

earcut.hpp
#include <earcut.hpp>

Triangulate a simple polygon

#include <earcut.hpp> int main() { using Point = std::array<double, 2>; std::vector<std::vector<Point>> polygon = {{{0,0}, {1,0}, {1,1}, {0,1}}}; auto triangles = mapbox::earcut<std::uint32_t>(polygon); return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.2.4latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources

No resource links recorded.

earcut-hpp — pip install earcut-hpp · libregistry