{"id":13805290,"url":"https://github.com/Larpon/earcut","last_synced_at":"2025-05-13T19:30:39.651Z","repository":{"id":140702003,"uuid":"309742804","full_name":"larpon/earcut","owner":"larpon","description":"Hand-ported (near 1:1) V version of https://github.com/mapbox/earcut","archived":false,"fork":false,"pushed_at":"2023-08-29T15:00:12.000Z","size":60,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-18T21:47:07.924Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"V","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/larpon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-11-03T16:21:15.000Z","updated_at":"2023-10-29T21:16:50.000Z","dependencies_parsed_at":"2023-09-05T14:46:23.510Z","dependency_job_id":null,"html_url":"https://github.com/larpon/earcut","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larpon%2Fearcut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larpon%2Fearcut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larpon%2Fearcut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larpon%2Fearcut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/larpon","download_url":"https://codeload.github.com/larpon/earcut/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254012959,"owners_count":21999341,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T01:00:59.679Z","updated_at":"2025-05-13T19:30:39.298Z","avatar_url":"https://github.com/larpon.png","language":"V","funding_links":[],"categories":["Libraries"],"sub_categories":["Graphics"],"readme":"# earcut\n\nA hand-ported V version of [mapbox/earcut](https://github.com/mapbox/earcut).\n\nThe implementation is currently based on commit [f40dd2](https://github.com/mapbox/earcut/tree/f40dd273cb8c6911581a01f9c8de2b22a591dffb)\n\n## Example\n\n```v\nmodule main\n\nimport earcut\n\nfn main() {\n\tflat := earcut.flatten(v_logo)\n\tvertices := flat.vertices\n\tholes := flat.holes\n\tindicies := earcut.earcut(vertices, holes, 2)\n\tprintln(indicies)\n\tprintln(earcut.deviation(vertices, holes, 2, indicies))\n}\n\nconst (\n\tv_logo = [[\n\t\t[f32(1), 1], [f32(3.5), 1.4],\n\t\t[f32(5), 6],\n\t\t[f32(6.5), 1.4], [f32(9), 1],\n\t\t[f32(6), 9], [f32(4), 9],\n\t]]\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLarpon%2Fearcut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLarpon%2Fearcut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLarpon%2Fearcut/lists"}