GithubHelp home page GithubHelp logo

jackzhousz / wrinkledtensionfields Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhenchen-jay/wrinkledtensionfields

0.0 0.0 0.0 880 KB

License: MIT License

C++ 91.57% C 0.12% CMake 8.30%

wrinkledtensionfields's Introduction

Wrinkled Tension Field

This code implements the paper "Fine Wrinkling on Coarsely-Meshed Thin Shells". (Only tested with Linux)

Elastic Material Model (benchmarks)

The elastic material model is wrappered from libshell, where we implement a parallel version using TBB. See the files in "ElasticShell" for details

Wrinkled Tension Field (WTF) Model

As mentioned in the paper, we seperate the solver into two parts: base mesh extraction using tension field thoery (TFT), and wrinkle variable computation. The former one is implemented inside "ElasticShell". The later is inside "WTFShell".

Dependencies

  • libigl (used as submodule)
  • Gurobi (Free for academic use).
  • NASOQ (used as submodule, which requires the MKL)
  • SuiteSparse
  • TBB
  • Json (wrappered in "external/jsoncppWrapper")
  • cppoptlib (a wrapper version is inside "external/cppoptlib", where we build our SQP solver with NASOQ)

To download and build

Compile this project using the standard cmake routine:

git clone --recurse-submodules https://github.com/csyzzkdcz/WrinkledTensionFields.git
mkdir build
cd build
cmake ..
make -j4

This procedure will build:

  • Elastic simulator program (benchmarks);
  • WTF similator program, which compute the wrinkle variables (amplitude and frequency) given the TFT base mesh.

Example Program

After build, there will be two programs (Elatic_viewer_bin, WTF_viewer_bin) inside "ElasticGui" and "WTFGui" respectively.

  • To run elastic benchmarks, try with
   ./SolverApp/ElasticGui/Elastic_viewer_bin ../Sims/disc_elastic/disc_elastic.json

This will generate libigl viewer. Then click "Optimize ElasticShell" to run the simulation process starting from the current configuration. Click "Reset ElasticShell" to reset the current state to initial state (where in the disc case, it is the simulated TFT mesh).

  • To run wrinkled tension field model, try with
   ./SolverApp/WTFGui/WTF_viewer_bin ../Sims/disc/disc_WTF.json

To see the upsample wrinkled mesh, check on the "Visualize Wrinkles" button. This will render the upsampled wrinkled mesh in red.

Compiling on Windows

Due to poor interoperation of the Eigen library with the MSVC compiler, Release mode compilation of the derivative code on Windows can take forever (over 8 hours). To solve this issue add EIGEN_STRONG_INLINE=inline to your preprocessor macros when building libshell.

More data

You can find more complicate data https://www.dropbox.com/sh/b33crodfwjbf982/AABhaIjJHhiIK4HeFMedpcgoa?dl=0

wrinkledtensionfields's People

Contributors

zhenchen-jay 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.