1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Grid *grid[1] = new Grid(0,0,0,2,2);
GridLayer gr(1,1,0);
Particle p(1,1,1,1,1,0,1,1,0,1);
gr.addParticle(p);
grid[0]->addGridLayer(gr);
GridLayer gr2(1,2,0);
Particle p2(1,1,1,1,2,0,1,2,0,1);
gr.addParticle(p2);
grid[0]->addGridLayer(gr2);
GridLayer gr3(2,1,0);
Particle p3(1,1,1,2,1,0,2,1,0,1);
gr.addParticle(p3);
grid[0]->addGridLayer(gr3);
GridLayer gr4(2,2,0);
Particle p4(1,1,1,2,2,0,2,2,0,1);
gr.addParticle(p4);
grid[0]->addGridLayer(gr4);
| |