{"id":15049272,"url":"https://github.com/karimnaaji/3d-quickhull","last_synced_at":"2025-05-09T03:34:43.976Z","repository":{"id":146459223,"uuid":"67886970","full_name":"karimnaaji/3d-quickhull","owner":"karimnaaji","description":"Header only 3d quickhull in c99","archived":false,"fork":false,"pushed_at":"2017-06-30T18:59:06.000Z","size":6477,"stargazers_count":292,"open_issues_count":2,"forks_count":21,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-03-31T21:42:26.786Z","etag":null,"topics":["c99","computer-graphics","geometry-processing","quickhull"],"latest_commit_sha":null,"homepage":"","language":"C++","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/karimnaaji.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":"2016-09-10T18:14:19.000Z","updated_at":"2025-03-24T01:55:54.000Z","dependencies_parsed_at":"2023-06-17T18:47:29.704Z","dependency_job_id":null,"html_url":"https://github.com/karimnaaji/3d-quickhull","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/karimnaaji%2F3d-quickhull","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimnaaji%2F3d-quickhull/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimnaaji%2F3d-quickhull/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimnaaji%2F3d-quickhull/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karimnaaji","download_url":"https://codeload.github.com/karimnaaji/3d-quickhull/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253183879,"owners_count":21867489,"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":["c99","computer-graphics","geometry-processing","quickhull"],"created_at":"2024-09-24T21:19:23.199Z","updated_at":"2025-05-09T03:34:43.957Z","avatar_url":"https://github.com/karimnaaji.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 3d-quickhull\n_Header only 3d quickhull in ANSI C_\n\n![](images/quickhull.png)\n\nUsage\n=====\n\nTo use this library, simply include `quickhull.h` once with the `QUICKHULL_IMPLEMENTATION` define in a `.cpp` file.\n\n```c\n#define QUICKHULL_IMPLEMENTATION\n#include \"quickhull.h\"\n```\n\nThe usage of the library is quite simple, generate or gather a set of points, and call `qh_quickhull3d`. The result is a mesh with a set of indexed normals and vertices ready to upload in a GPU.\n\n```c\nconst int n = 100;\nqh_vertex_t vertices[n];\n\nfor (int i = 0; i \u003c n; ++i) {\n    float a0 = (rand_0_1() * M_PI * 2);\n    float a1 = (rand_0_1() * M_PI * 2);\n    vertices[i].z = sin(a0) * radius;\n    vertices[i].x = cos(a1) * cos(a0) * rand_0_1();\n    vertices[i].y = sin(a1) * cos(a0) * rand_0_1();\n}\n\nqh_mesh_t mesh = qh_quickhull3d(vertices, n);\n\n// ...\n\nqh_free_mesh(mesh);\n\n```\n\nExample\n=======\n\n\n- Open Frameworks wrapper: https://github.com/satcy/ofx3DQuickHull\n- Obj to hull: https://github.com/karimnaaji/3d-quickhull/blob/master/example/command_line.cpp\n\nIf you're interested in low-polygon rendering, using quickhull as a base for mesh triangulation can give such results:\n\n![](images/mesh_quickhull.png)\n![](http://karim.naaji.fr/images/lowpoly0.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarimnaaji%2F3d-quickhull","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarimnaaji%2F3d-quickhull","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarimnaaji%2F3d-quickhull/lists"}