A reference implementation of the Siggraph 2025 paper Geometric Contact Potential based on PolyFEM.
All the C++ dependencies required to build the code are included. It should work on Windows, macOS, and Linux, and it should build out-of-the-box with CMake:
mkdir build
cd build
cmake ..
make -j4
The main executable, ./PolyFEM_bin
, can be called with a GUI or through a command-line interface. Simply run:
./PolyFEM_bin
A more detailed documentation can be found on the website.
Examples of running simulations using the Geometric Contact Potential can be found under contact-tests. More examples on the paper will be added.