Guest User

Untitled

a guest
May 23rd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. #include "felty.h"
  2.  
  3. int main(int argc, char **argv) {
  4.     char velocity_path[256], map_path[256];
  5.    
  6.     Domain domain(64,128,64,Vec3(-1,-2,-1), Vec3(1,2,1));
  7.     VectorField map = identity();
  8.  
  9.     for(int t=0; t<200; ++t) {
  10.         sprintf(velocity_path,argv[1], t);
  11.         VectorField velocity = loadVectorField(velocity_path, VectorField(Vec3(0,0,0)));
  12.        
  13.         map = compose(map, identity() - .25f*velocity );
  14.         map = writeToGrid(map, domain, identity());
  15.  
  16.         sprintf(map_path, argv[2], t);
  17.         writeToFile(map, domain, identity(), map_path);
  18.     }
  19.  
  20.     return 0;
  21. }
Add Comment
Please, Sign In to add comment