{"id":19632264,"url":"https://github.com/bucherfa/triangulate-polygons","last_synced_at":"2026-05-15T00:02:46.710Z","repository":{"id":113105077,"uuid":"373240924","full_name":"bucherfa/triangulate-polygons","owner":"bucherfa","description":"Convert GeoJSON Polygons into Meshes for Unity with Triangle (Delaunay Triangulator)","archived":false,"fork":false,"pushed_at":"2021-06-03T19:12:57.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-09T14:55:51.699Z","etag":null,"topics":["2d","converter","generator","geojson","mesh","polygon","triangle","triangulate","triangulate-polygons","triangulator","unity"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/bucherfa.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-02T16:51:12.000Z","updated_at":"2024-02-15T13:52:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"6434fc62-1c04-40c5-b6f1-0529f5c3759e","html_url":"https://github.com/bucherfa/triangulate-polygons","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/bucherfa%2Ftriangulate-polygons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bucherfa%2Ftriangulate-polygons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bucherfa%2Ftriangulate-polygons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bucherfa%2Ftriangulate-polygons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bucherfa","download_url":"https://codeload.github.com/bucherfa/triangulate-polygons/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240934437,"owners_count":19880992,"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":["2d","converter","generator","geojson","mesh","polygon","triangle","triangulate","triangulate-polygons","triangulator","unity"],"created_at":"2024-11-11T12:13:26.661Z","updated_at":"2026-05-15T00:02:44.602Z","avatar_url":"https://github.com/bucherfa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Triangulate Polygons\n\n\u003e Convert GeoJSON Polygons into Meshes for Unity with Triangle (Delaunay Triangulator)\n\n## Requirements\n\n* [Triangle](https://www.cs.cmu.edu/~quake/triangle.html)\n* node\n* bash\n\n## Usage\n\n1. Place a file `input.geo.json` which contains a GeoJSON.\n2. Run the following command:\n    ```bash\n    ./run.sh\n    ```\n3. You will find two new files\n   * `output.unity.json` which contains all triangles and vertices ready to be read into unity and\n   * `output.geo.json` which contains all triangles as a GeoJSON.\n\n## Example input\n\n```json\n{\n  \"type\": \"FeatureCollection\",\n  \"features\": [\n    {\n      \"type\": \"Feature\",\n      \"properties\": {},\n      \"geometry\": {\n        \"type\": \"Polygon\",\n        \"coordinates\": [\n          [\n            [0, 0],\n            [0, 1],\n            [1, 1],\n            [1, 0],\n            [0, 0]\n          ]\n        ]\n      }\n    }\n  ]\n}\n```\n\nAdd more features with geometry type \"Polygon\" into the \"features\" array. \n\nView the input/output on [geojson.io](https://geojson.io/) and read your output into any programming language with [quicktype](https://app.quicktype.io/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbucherfa%2Ftriangulate-polygons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbucherfa%2Ftriangulate-polygons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbucherfa%2Ftriangulate-polygons/lists"}