Skip to content
A blank project example showing how to use libigl and cmake.
Branch: master
Clone or download
alecjacobson Update CMakeLists.txt
option doesn't exist anymore
Latest commit 6860585 Dec 17, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmake update libigl cmake config file path Oct 15, 2018
.gitignore ignroes Dec 2, 2015
.gitmodules Update README to include a commit hash. Feb 18, 2018
CMakeLists.txt Update CMakeLists.txt Dec 17, 2018
LICENSE Initial commit Dec 2, 2015 update readme and cmakelists Oct 15, 2018
main.cpp Update example to match new Viewer + add libigl as a submodule. Feb 17, 2018

libigl example project

A blank project example showing how to use libigl and cmake. Feel free and encouraged to copy or fork this project as a way of starting a new personal project using libigl.

See the tutorial first

Then build, run and understand the libigl tutorial.


Compile this project using the standard cmake routine:

mkdir build
cd build
cmake ..

This should find and build the dependencies and create a example_bin binary.


From within the build directory just issue:


A glfw app should launch displaying a 3D cube.


The only dependencies are stl, eigen, libigl and the dependencies of the igl::opengl::glfw::Viewer.

We recommend you to install libigl using git via:

git clone
cd libigl/
git submodule update --init --recursive
cd ..

If you have installed libigl at /path/to/libigl/ then a good place to clone this library is /path/to/libigl-example-project/.

You can’t perform that action at this time.