All Projects → libigl → libigl-examples

libigl / libigl-examples

Licence: MPL-2.0 license
This repository contains examples applications that use libigl. They only work on MacOSX and they should be converted to tutorials.

Programming Languages

C++
36643 projects - #6 most used programming language
CMake
9771 projects
Makefile
30231 projects
c
50402 projects - #5 most used programming language
Brainfuck
56 projects
PHP
23972 projects - #3 most used programming language
matlab
3953 projects

libigl-examples

This repository contains examples applications that use libigl. They've been tested on Mac OS X. Most are too involved or special purpose to be part of the libigl tutorial.

Dependencies

All:

  • libigl
  • std
  • Eigen
  • C++11

Most:

  • OpenGL v2
  • GLUT
  • AntTweakBar

Some:

  • embree
    • ispc
    • tbb
  • mosek (optional)
  • tetgen
  • matlab
  • cgal

GLUT

Nearly all of these examples depend on GLUT. On Mac OS X, glut is deprecated but still included. However, I'd recommend replacing it with a modified glut that supports scroll wheel and the command ⌘ key.

AntTweakBar

I'd recommend installing AntTweakBar as a static library. You can do this from with then libigl/external/AntTweakBar directory using:

make -C [libigl]/external/AntTweakBar/src -f Makefile.osx.igl

Embree

I'd recommend installing Embree via the libigl/external/embree submodule. Travel there and follow the usual cmake build:

cd [libigl]/external/embree
mkdir build
cd build
cmake ..
make

Compilation

Make

This is hopefully subject to change as I update examples to be built with cmake.

Each example directory is independent and be compiled using:

make -C [example-dir]

You can also try to compile all examples by simply issuing:

make

Cmake

Some examples now use cmake to build. Compile the dependencies above and then issue:

cd [example] mkdir build cd build cmake .. make

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].