Giter Club home page Giter Club logo

bending-for-sm's Introduction

An Eigenanalysis of Angle-Based Deformation Energies

teaser!

This is the implementation and examples of the paper An Eigenanalysis of Angle-Based Deformation Energies. The code is based on the HOBAK project that comes with the SIGGRAPH course Dynamic Deformables: Implementation and Production Practicalities(Now With Code!) by Theodore Kim and David Eberle.

Implementation

Strand Energy Implementation

For strands, the F-based bending energies and their derivatives are implemented in src/Hyperelastic/Strand/QUADRATIC_F_BENDING.cpp and src/Hyperelastic/Strand/TAN_BENDING.cpp. In the functions STRAND_NET_MESH::computeBendingClampedHessian and STRAND_NET_MESH::computeBendingForces in src/Geometry/STRAND_NET_MESH.cpp, the F-based derivatives are converted into the position-based derivatives to be finally used for the solver.

Shell Energy Implementation

For shells, the position-based derivatives are directly given in src/Hyperelastic/Shell/QUADRATIC_F_BENDING.cpp.

Projects

There are three projects inside projects/. The simiulateShell project runs a shell simulator and shows a bending V strip as an example. The simulateStrand project runs a net simulation example. The unitTests project runs a numerical test for the energy derivatives and print out the results.

Building

Follow these steps to build a project:

  1. Choose an include_top file according to your system. Inside projects/, there are three include_top files. Choose one and copy it into include_top.mk. For example, if you are running on Linux, run

    cp include_top.linux include_top.mk

  2. To build a project, go to its directory and run make depend. Then run make. For example, to build the project simulateShell, at the root directory, run:

    cd projects/simulateShell
    make depend
    make

Running

To run a project, go to the bin/ directory and run the binary. For example, to run the project simulateShell, after building it, run the following at the root directory:

cd ./bin
./simulateShell

Pressing Esc will close the OpenGL window. Pressing a starts or stops the animation. If you have FFMPEG installed, Pressing q will close the window and write out a video of the simulation in bin/.

bending-for-sm's People

Contributors

5mss avatar chipbuster avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.