Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "felty.h"
- int main(int argc, char **argv) {
- char velocity_path[256], map_path[256];
- Domain domain(64,128,64,Vec3(-1,-2,-1), Vec3(1,2,1));
- VectorField map = identity();
- for(int t=0; t<200; ++t) {
- sprintf(velocity_path,argv[1], t);
- VectorField velocity = loadVectorField(velocity_path, VectorField(Vec3(0,0,0)));
- map = compose(map, identity() - .25f*velocity );
- map = writeToGrid(map, domain, identity());
- sprintf(map_path, argv[2], t);
- writeToFile(map, domain, identity(), map_path);
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment