GithubHelp home page GithubHelp logo

purvigoel / simulation-stencil Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brown-cs-224/fem-stencil

0.0 1.0 0.0 5.31 MB

QMake 0.08% Shell 0.20% Perl 0.33% HTML 2.39% C 24.51% CSS 0.03% CMake 0.13% C++ 71.19% GLSL 0.01% Cuda 1.14%

simulation-stencil's Introduction

Simulation-Stencil

Starter code for CS 224 Assignment 4

This starter code provides a simple 3D viewer for tetrahedral mesh simulations. As given, it will load up and visualize a single tetrahedron. Your job is to modify the code to load arbitrary meshes (e.g. the ones in /example-meshes), extract their surface meshes for visualization, and to compute simulation time step updates to the vertex positions of the mesh.

You'll want to look at src/simulation.cpp to get started, as that's the only file you need to change (although you'll probably make several of your own new files, too). You also might want to look at src/view.cpp, if you're interested in adding new interactivity/controls to the program.

Speaking of controls: the controls offered by the starter code are:

  • Move Camera: WASD
  • Look around: Click and hold mouse and drag
  • Toggle orbit mode: C (changes the camera from a first-person view to an orbiting camera a la what the Maya editor does)
  • Toggle between displaying the surface mesh and a wireframe of the full tet mesh: T

When the program first loads, you should see a ground plane and a single tet floating in space, against a gray background. If the tet does not display: check the console output. Most likely the .mesh file failed to load because the file couldn't be found. You'll need to set the working directory in Qt Creator to be the root directory of this repository. To do that, select "Projects" on the left-hand sidebar in Qt Creator, select "Run" under the "Build & Run options", and enter the path to the repo root in the "Working directory" field.

simulation-stencil's People

Contributors

dritchie avatar purvigoel avatar tschicke-brown avatar

Watchers

 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.