Skip to content

ioannaMitropoulou/RibbonSim

 
 

Repository files navigation

libigl example physics project

A blank project example showing how to set up a simple physical simulation using libigl and cmake. Based on Alec Jacobson's libigl example project. This project contains some boilerplate that sets up a physical simulation to run in its own thread, with rendering provided by libigl.

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/.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 97.1%
  • CMake 1.6%
  • C 1.3%