{"id":25059917,"url":"https://github.com/stla/hcdt","last_synced_at":"2026-02-13T11:57:43.256Z","repository":{"id":47166071,"uuid":"515921729","full_name":"stla/hcdt","owner":"stla","description":"Constrained and unconstrained Delaunay triangulation.","archived":false,"fork":false,"pushed_at":"2023-11-01T17:03:38.000Z","size":162,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T03:25:51.195Z","etag":null,"topics":["cdt","delaunay-triangulation","haskell"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stla.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-07-20T09:44:04.000Z","updated_at":"2023-01-10T13:11:00.000Z","dependencies_parsed_at":"2025-02-06T15:55:53.391Z","dependency_job_id":"e2a7359c-6310-4465-bf43-8aa3f648c436","html_url":"https://github.com/stla/hcdt","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/stla%2Fhcdt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stla%2Fhcdt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stla%2Fhcdt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stla%2Fhcdt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stla","download_url":"https://codeload.github.com/stla/hcdt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248895518,"owners_count":21179250,"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":["cdt","delaunay-triangulation","haskell"],"created_at":"2025-02-06T15:55:46.591Z","updated_at":"2026-02-13T11:57:38.203Z","avatar_url":"https://github.com/stla.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hcdt\n\n\u003c!-- badges: start --\u003e\n[![Stack-lts](https://github.com/stla/hcdt/actions/workflows/Stack-lts.yml/badge.svg)](https://github.com/stla/hcdt/actions/workflows/Stack-lts.yml)\n[![Stack-lts-Mac](https://github.com/stla/hcdt/actions/workflows/Stack-lts-Mac.yml/badge.svg)](https://github.com/stla/hcdt/actions/workflows/Stack-lts-Mac.yml)\n[![Stack-nightly](https://github.com/stla/hcdt/actions/workflows/Stack-nightly.yml/badge.svg)](https://github.com/stla/hcdt/actions/workflows/Stack-nightly.yml)\n\u003c!-- badges: end --\u003e\n\n\n### Delaunay triangulation \n\n```haskell\nghci\u003e import Text.Show.Pretty\nghci\u003e import Geometry.HCDT\nghci\u003e vertices = [Vertex 0 0, Vertex 0 1, Vertex 1 1, Vertex 1 0]\nghci\u003e triangulation \u003c- delaunay vertices\nghci\u003e pPrint triangulation\nTriangulation\n  { _vertices =\n      fromList\n        [ ( 0 , Vertex 0.0 0.0 )\n        , ( 1 , Vertex 0.0 1.0 )\n        , ( 2 , Vertex 1.0 1.0 )\n        , ( 3 , Vertex 1.0 0.0 )\n        ]\n  , _triangles = [ Triangle 1 0 2 , Triangle 2 0 3 ]\n  , _edges = [ Edge 2 3 , Edge 0 3 , Edge 1 2 , Edge 0 2 , Edge 0 1 ]\n  }\nghci\u003e pPrint $ borderEdges triangulation\nfromList [ Edge 1 0 , Edge 1 2 , Edge 0 3 , Edge 2 3 ]\n```\n\n\n### Constrained Delaunay triangulation \n\n```haskell\nghci\u003e import Text.Show.Pretty\nghci\u003e import Geometry.HCDT\nghci\u003e vertices = [Vertex 1 1, Vertex 3 1, Vertex 2 2, Vertex 0 0, Vertex 4 0, Vertex 2 5]\nghci\u003e edges = [Edge 0 1, Edge 0 2, Edge 1 2, Edge 3 4, Edge 3 5, Edge 4 5]\nghci\u003e triangulation \u003c- cdelaunay vertices edges\nntriangles: 6\nghci\u003e pPrint triangulation\nConstrainedTriangulation\n  { _triangulation =\n      Triangulation\n        { _vertices =\n            fromList\n              [ ( 0 , Vertex 1.0 1.0 )\n              , ( 1 , Vertex 3.0 1.0 )\n              , ( 2 , Vertex 2.0 2.0 )\n              , ( 3 , Vertex 0.0 0.0 )\n              , ( 4 , Vertex 4.0 0.0 )\n              , ( 5 , Vertex 2.0 5.0 )\n              ]\n        , _triangles =\n            [ Triangle 1 0 3\n            , Triangle 2 1 5\n            , Triangle 2 5 0\n            , Triangle 0 5 3\n            , Triangle 1 4 5\n            , Triangle 1 3 4\n            ]\n        , _edges =\n            [ Edge 3 4\n            , Edge 1 4\n            , Edge 3 5\n            , Edge 0 5\n            , Edge 2 5\n            , Edge 0 2\n            , Edge 1 5\n            , Edge 1 2\n            , Edge 1 3\n            , Edge 4 5\n            , Edge 0 3\n            , Edge 0 1\n            ]\n        }\n  , _fixedEdges =\n      [ Edge 0 1 , Edge 0 2 , Edge 4 5 , Edge 1 2 , Edge 3 4 , Edge 3 5 ]\n  }\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstla%2Fhcdt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstla%2Fhcdt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstla%2Fhcdt/lists"}