{"id":21494282,"url":"https://github.com/hellfire01/fortuneline_voronoi","last_synced_at":"2026-04-17T06:33:39.812Z","repository":{"id":77329565,"uuid":"202020741","full_name":"Hellfire01/FortuneLine_voronoi","owner":"Hellfire01","description":"A fortune line voronoi for Unity3D also compatible C#. Allows you to get a complete graph with edges / cellcores / vertices and their relations","archived":false,"fork":false,"pushed_at":"2019-08-13T21:55:57.000Z","size":42,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-15T14:55:23.469Z","etag":null,"topics":["csharp","fortune-line","unity3d","voronoi","voronoi-generator"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hellfire01.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-08-12T22:50:55.000Z","updated_at":"2019-08-20T16:52:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1429324-28be-44c3-834e-b792e3aa5a3d","html_url":"https://github.com/Hellfire01/FortuneLine_voronoi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Hellfire01/FortuneLine_voronoi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hellfire01%2FFortuneLine_voronoi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hellfire01%2FFortuneLine_voronoi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hellfire01%2FFortuneLine_voronoi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hellfire01%2FFortuneLine_voronoi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hellfire01","download_url":"https://codeload.github.com/Hellfire01/FortuneLine_voronoi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hellfire01%2FFortuneLine_voronoi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31918607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["csharp","fortune-line","unity3d","voronoi","voronoi-generator"],"created_at":"2024-11-23T15:49:41.097Z","updated_at":"2026-04-17T06:33:39.768Z","avatar_url":"https://github.com/Hellfire01.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FortuneLine_voronoi\nThis is an implementation of a C# fortune line of witch you can find the source code \u003ca href=\"https://www.codeproject.com/Tips/797123/Fast-Voronoi-Diagram-in-Csharp\"\u003ehere\u003c/a\u003e\n\nThis code is intended to work with Unity3d projects but will also work on C# projects\n\n## Voronoi data structure\nWhen using this program, a `VoronoiData` class is returned such as follows :\n\n    public class VoronoiData {\n        public List\u003cCellCore\u003e cores;\n        public List\u003cNode\u003e nodes;\n        public List\u003cEdge\u003e edges;\n    }\n\nThe `CellCore` class contains all of the data on the cell, it also references it's edges, vertices and neighbour cells\u003cbr/\u003e\nThe `Node` class represents the vertices of the diagram, each one references it's cellcore parents, neighbour vertices and related edges\u003cbr/\u003e\nThe `Edge` class references both related cells and vertices\u003cbr/\u003e\n\n## API\n\nThe file getVoronoï.cs contains all of the API methods needed to get your voronoï diagram, the prototypes are as follow :\n\n    public static VoronoiData getVoronoi(double[] xVal, double[] yVal, int mapSize);\n    public static VoronoiData getVoronoi(float[] xVal, float[] yVal, int mapSize);\n    public static VoronoiData getVoronoi(List\u003cCellCore\u003e cells, int mapSize);\n    public static VoronoiData getVoronoi(List\u003cVector2\u003e cellPos, int mapSize);\n\nThe programm needs the coordinates of the cellcores in order to be able to work, they can be given as doubles, floats, Vector2 or directly as CellCore.\u003cbr/\u003e\nThe coordinates of the cellcores should always range from 0 to `mapSize` for a correct generation\u003cbr/\u003e\n\n## Note on the architechture of this code\n\nThis code is an encapsulation of an already working fortune line made by \u003ca href=\"https://www.codeproject.com/script/Membership/View.aspx?mid=10947831\"\u003eBurhan Joukhadar\u003c/a\u003e\u003cbr/\u003e\nThis project encapsulates his code witch only returns a graph made of edges and adds the classes for the vertices and the cellcores in order to have the relations of these different elements.\n\n## Possible uses of this programm\n\nThis project was first intended to be used for procedural generation ( hence all of the different relations between the classes ) but could be used wherever a Voronoï diagram is needed.\u003cbr /\u003e\nI will however add that should you only need the edge graph, you are better of using the \u003ca href=\"https://www.codeproject.com/Tips/797123/Fast-Voronoi-Diagram-in-Csharp\"\u003eoriginal code\u003c/a\u003e as you will not have all of the extra features slowing down your programm.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellfire01%2Ffortuneline_voronoi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellfire01%2Ffortuneline_voronoi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellfire01%2Ffortuneline_voronoi/lists"}