This repo contains an implementatoin of Shape Targeting: A Versatile Active Elasticity Constitutive Model [ paper link] with Projective Dynamics Framework.
Main PD framework modified from Q-Minh's implementation with PD.
For comparison
- without target
(i.e St matrix being identity). After turning off gravity, the bar bounces up due to elasticity.

- with target
After turning off gravity, bar bends downward.

from original implementation
- C++17 compiler
- libigl
libigl is included in the project using CMake's FetchContent and pulls in Eigen, glfw, Dear ImGui and TetGen with it.
# Download repository
$ cd projective-dynamics
# Configure and build project
$ cmake -S . -B build
$ cmake --build build --target pd --config Release
# Run the program
$ ./build/Release/pd.exe


