Skip to content

hazard-10/Shape-Targeting-with-Projective-Dynamics

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shape Targeting with Projective Dynamics

Overview

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.

Shape Targeting demo

For comparison

  • without target (i.e St matrix being identity). After turning off gravity, the bar bounces up due to elasticity. no target
  • with target After turning off gravity, bar bends downward. with target

Other Constraint types

from original implementation

  • positional
  • edge length edge length constrained cloth
  • deformation gradient deformation gradient constrained bar
  • strain limiting strain limiting constrained bar

Dependencies

libigl is included in the project using CMake's FetchContent and pulls in Eigen, glfw, Dear ImGui and TetGen with it.

Building

# 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 96.1%
  • CMake 3.9%