{"adoption": {"forks": 152, "observed_at": "2026-08-28T04:03:15.945095+00:00", "stars": 1023}, "canonical_url": "https://ross.abutalabs.com/products/earcuthpp", "card": {"archived": false, "artifact_type": "library", "description": "Fast, header-only polygon triangulation", "domain": ["graphics"], "enriched": true, "function": ["graphics", "math", "parser"], "health_score": 94, "homepage": null, "language": "C++", "license": "ISC", "license_family": "permissive", "maturity": "stable", "member_repos": ["mapbox/earcut.hpp"], "name": "mapbox/earcut.hpp", "platform": ["cpp", "cross-platform"], "pushed_at": "2026-07-07T12:52:36+00:00", "repo": "mapbox/earcut.hpp", "stars": 1023, "tags": ["header-only", "triangulation", "tessellation", "computational-geometry", "ear-clipping", "polygon-mesh", "algorithms", "maps", "game-development"], "topics": ["earcut", "triangulation", "tessellation", "geometry", "algorithm", "rendering", "cpp", "header-only", "polygon"], "urls": [], "use_cases": ["triangulate polygons with holes in C++", "convert geographic polygon shapes to triangle meshes for rendering", "fast real-time tessellation for a map renderer", "triangulate self-intersecting or non-simple polygons robustly", "header-only polygon triangulation without dependencies", "generate triangle indices for WebGL/OpenGL drawing"], "what_it_is": "A fast, header-only C++ port of the earcut.js polygon triangulation library, implementing a modified ear-slicing algorithm optimized with z-order curves and spatial hashing. It handles holes, self-intersections, and degeneracies, producing triangle indices suitable for real-time rendering of geographic and other 2D polygon data.", "when_to_avoid": ["you need mathematically guaranteed-correct triangulation of arbitrary polygons", "you require high-quality Delaunay meshes as the primary output", "you need 3D or constrained Delaunay triangulation"], "when_to_choose": ["you need a small, dependency-free, header-only triangulation library", "raw triangulation speed matters more than guaranteed optimal mesh quality", "you're rendering geographic or map polygons in real time", "your polygons may contain holes, degeneracies, or self-intersections"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/earcuthpp", "repo": "mapbox/earcut.hpp", "role": "main", "score": 82}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.945095+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T07:08:38.651066+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "413f4a0084002f50ed3656b133ea9763f1b7dc9c504646bf7106fadf8b737b72", "fetched_at": "2026-08-28T04:03:15.945095+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/earcut.hpp"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.945095+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T07:08:38.651066+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "413f4a0084002f50ed3656b133ea9763f1b7dc9c504646bf7106fadf8b737b72", "fetched_at": "2026-08-28T04:03:15.945095+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/earcut.hpp"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T07:08:38.651066+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "413f4a0084002f50ed3656b133ea9763f1b7dc9c504646bf7106fadf8b737b72", "fetched_at": "2026-08-28T04:03:15.945095+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/earcut.hpp"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.945095+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.945095+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.945095+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T07:08:38.651066+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "413f4a0084002f50ed3656b133ea9763f1b7dc9c504646bf7106fadf8b737b72", "fetched_at": "2026-08-28T04:03:15.945095+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/earcut.hpp"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.945095+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.945095+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T07:08:38.651066+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "413f4a0084002f50ed3656b133ea9763f1b7dc9c504646bf7106fadf8b737b72", "fetched_at": "2026-08-28T04:03:15.945095+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/earcut.hpp"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.945095+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.945095+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.945095+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T07:08:38.651066+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "413f4a0084002f50ed3656b133ea9763f1b7dc9c504646bf7106fadf8b737b72", "fetched_at": "2026-08-28T04:03:15.945095+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/earcut.hpp"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.945095+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:03:15.945095+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T07:08:38.651066+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "413f4a0084002f50ed3656b133ea9763f1b7dc9c504646bf7106fadf8b737b72", "fetched_at": "2026-08-28T04:03:15.945095+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/earcut.hpp"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T07:08:38.651066+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "413f4a0084002f50ed3656b133ea9763f1b7dc9c504646bf7106fadf8b737b72", "fetched_at": "2026-08-28T04:03:15.945095+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/earcut.hpp"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T07:08:38.651066+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "413f4a0084002f50ed3656b133ea9763f1b7dc9c504646bf7106fadf8b737b72", "fetched_at": "2026-08-28T04:03:15.945095+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/earcut.hpp"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T07:08:38.651066+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "413f4a0084002f50ed3656b133ea9763f1b7dc9c504646bf7106fadf8b737b72", "fetched_at": "2026-08-28T04:03:15.945095+00:00", "kind": "readme", "missing": false, "url": "https://github.com/mapbox/earcut.hpp"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 91, "longevity": 100, "rhythm": 59}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 4214, "days_push": 57, "days_rel": 61, "gap_med": null, "n_releases_24m": 1}, "score": 82, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}