Robust, intersection-free, simulations of rigid bodies.
This is the open-source reference implementation of the SIGGRAPH 2021 paper Intersection-free Rigid Body Dynamics.
src/
: source codecmake/
andCMakeLists.txt
: CMake filesfixtures/
: input scripts to rerun all examples in our papermeshes/
: input meshes used by the fixturestests/
: unit-teststools/
: Python and Bash scripts for generating and processing resultscomparisons/
: files used in comparisons with other rigid body simulatorspython/
: Python binding filesnotebooks/
: Jupyter notebooks
To build the project, use the following commands from the root directory of the project:
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j4
Most dependancies are downloaded through CMake depending on the build options. The only exceptions to this are:
- Boost: We currently use the interval arithmetic library for interval root finding
We take as input a single JSON file that specifies the mesh and initial
conditions for each body. The fixtures
directory contains example scenes.
We expose some functionality of Rigid IPC through Python. This is still in development and lacks the ability to script many features available in the full simulator.
To build the Python bindings use the setup.py
script:
python setup.py install