{"id":20804507,"url":"https://github.com/libigl/libigl-example-project","last_synced_at":"2026-01-27T17:38:38.229Z","repository":{"id":45550622,"uuid":"47289893","full_name":"libigl/libigl-example-project","owner":"libigl","description":"A blank project example showing how to use libigl and cmake.","archived":false,"fork":false,"pushed_at":"2025-08-22T13:40:34.000Z","size":65,"stargazers_count":154,"open_issues_count":12,"forks_count":128,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-08-22T15:40:53.040Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/libigl.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":"2015-12-02T21:33:39.000Z","updated_at":"2025-08-22T13:40:37.000Z","dependencies_parsed_at":"2023-09-27T07:18:07.471Z","dependency_job_id":null,"html_url":"https://github.com/libigl/libigl-example-project","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/libigl/libigl-example-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libigl%2Flibigl-example-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libigl%2Flibigl-example-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libigl%2Flibigl-example-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libigl%2Flibigl-example-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libigl","download_url":"https://codeload.github.com/libigl/libigl-example-project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libigl%2Flibigl-example-project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28817127,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-17T19:09:43.172Z","updated_at":"2026-01-27T17:38:38.209Z","avatar_url":"https://github.com/libigl.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libigl example project\n\nA blank project example showing how to use libigl and cmake. Feel free and\nencouraged to copy or fork this project as a way of starting a new personal\nproject using libigl.\n\n## Compile\n\nCompile this project using the standard cmake routine:\n\n    mkdir build\n    cd build\n    cmake ..\n    make\n\nThis should find and build the dependencies and create a `example` binary.\n\n## Run\n\nFrom within the `build` directory just issue:\n\n    ./example\n\nA glfw app should launch displaying a 3D cube.\n\n## Using other modules of libigl\n\nThis example project uses the `igl::opengl::glfw::Viewer`, therefore it requires\nthe glfw module of libigl. This shows up in the CMakeLists.txt \n\n```cmake\nigl_include(glfw)\n…\ntarget_link_libraries(${PROJECT_NAME} PUBLIC igl::glfw)\n```\n\nSuppose you also wanted to use the triangle module in libigl. Then you would\nchange these to\n\n```cmake\nigl_include(glfw)\nigl_include(restricted triangle)\n…\ntarget_link_libraries(${PROJECT_NAME} PUBLIC igl::glfw igl_restricted::triangle)\n```\n\nThe \"restricted\" appears in this case because the triangle library has a more\nrestricted license than libigl. See other examples commented out in\nCMakeLists.txt.\n\n\n## Dependencies\n\nThe only dependencies are STL, Eigen, [libigl](http://libigl.github.io/libigl/) and the dependencies\nof the `igl::opengl::glfw::Viewer` (OpenGL, glad and GLFW).\n\nThe CMake build system will automatically download libigl and its dependencies using\n[CMake FetchContent](https://cmake.org/cmake/help/latest/module/FetchContent.html),\nthus requiring no setup on your part.\n\n### Use a local copy of libigl\nYou can use the CMake cache variable `FETCHCONTENT_SOURCE_DIR_LIBIGL` when configuring your CMake project for\nthe first time to aim it at a local copy of libigl instead.\n```\ncmake -DFETCHCONTENT_SOURCE_DIR_LIBIGL=\u003cpath-to-libigl\u003e ..\n```\nWhen changing this value, do not forget to clear your `CMakeCache.txt`, or to update the cache variable\nvia `cmake-gui` or `ccmake`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibigl%2Flibigl-example-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibigl%2Flibigl-example-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibigl%2Flibigl-example-project/lists"}