A blank project example showing how to use libigl and cmake.
CMake C++
Latest commit 19a62b4 Jun 9, 2016 @alecjacobson alecjacobson Merge
Permalink
Failed to load latest commit information.
cmake reformat cmake May 16, 2016
.gitignore ignroes Dec 2, 2015
CMakeLists.txt reformat cmake May 16, 2016
LICENSE Initial commit Dec 2, 2015
README.md updated example to new build system Mar 3, 2016
main.cpp torus --> cube Dec 2, 2015

README.md

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

Compile this project using the standard cmake routine:

mkdir build
cd build
cmake ..
make

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

Run

From within the build directory just issue:

./example_bin

A glfw app should launch displaying a 3D cube.

Dependencies

The only dependencies are stl, eigen, libigl and the dependencies of the igl::viewer::Viewer (mandatory: glfw and opengl, optional: nanogui and nanovg).

We recommend you to install libigl using git via:

git clone --recursive https://github.com/libigl/libigl.git

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