Registry / other / poly2tri

poly2tri

JSON →
library2020-07-21vcpkgunverified

The Clipper library performs clipping and offsetting for both lines and polygons.

vcpkg install poly2tri
INSTALL
IMPORT
SIG · POLY2TRI
P
poly2tri
othercppv2020-07-21
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.

poly2tri.h
#include <poly2tri.h>

Triangulate a simple polygon

#include <poly2tri.h> #include <vector> int main() { std::vector<p2t::Point> polyline; polyline.push_back(p2t::Point(0,0)); polyline.push_back(p2t::Point(1,0)); polyline.push_back(p2t::Point(1,1)); polyline.push_back(p2t::Point(0,1)); p2t::CDT cdt(polyline); cdt.Triangulate(); return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2020-07-21latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
poly2tri — pip install poly2tri · libregistry