Stash
This commit is contained in:
parent
0ae7892998
commit
323e821344
@ -19,19 +19,6 @@ bool DLASystem::Update() {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!lastParticleIsActive) {
|
||||
for (int i = 0; i < numParticles; ++i) {
|
||||
this->csv_out << this->particleList[i]->pos[0] << "," << this->particleList[i]->pos[1];
|
||||
if (i != numParticles - 1) {
|
||||
this->csv_out << ",";
|
||||
}
|
||||
}
|
||||
|
||||
this->csv_out << "\n";
|
||||
|
||||
this->csv_out.flush();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -211,6 +198,9 @@ void DLASystem::moveLastParticle() {
|
||||
|
||||
// check if we stick
|
||||
if (checkStick()) {
|
||||
this->csv_out << newpos[0] << "," << newpos[1] << "\n";
|
||||
this->csv_out.flush();
|
||||
|
||||
//cout << "stick" << endl;
|
||||
setParticleInactive(); // make the particle inactive (stuck)
|
||||
updateClusterRadius(lastP->pos); // update the cluster radius, addCircle, etc.
|
||||
|
||||
3086
seed-2.csv
3086
seed-2.csv
File diff suppressed because one or more lines are too long
1
seed-2.json
Normal file
1
seed-2.json
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user