diff --git a/particle-track-and-trace/src/commands/SpawnPointCallback.cpp b/particle-track-and-trace/src/commands/SpawnPointCallback.cpp index 860bb06..2db89c0 100644 --- a/particle-track-and-trace/src/commands/SpawnPointCallback.cpp +++ b/particle-track-and-trace/src/commands/SpawnPointCallback.cpp @@ -38,7 +38,6 @@ void SpawnPointCallback::Execute(vtkObject *caller, unsigned long evId, void *ca ren->SetDisplayPoint(displayPos); ren->DisplayToWorld(); ren->GetWorldPoint(worldPos); - cout << "clicked on " << worldPos[1] << ", " << worldPos[0] << endl; inverseCartographicProjection->TransformPoint(worldPos, worldPos); points->InsertNextPoint(worldPos[0], worldPos[1], 0); diff --git a/particle-track-and-trace/src/commands/TimerCallbackCommand.cpp b/particle-track-and-trace/src/commands/TimerCallbackCommand.cpp index 86c9c6b..67ae185 100644 --- a/particle-track-and-trace/src/commands/TimerCallbackCommand.cpp +++ b/particle-track-and-trace/src/commands/TimerCallbackCommand.cpp @@ -21,8 +21,7 @@ void TimerCallbackCommand::Execute(vtkObject* caller, unsigned long eventId, voi this->time += this->dt; if (this->time >= this->maxTime) { - return; - // TODO: how do we deal with reaching the end of the simulated dataset? Do we just stop simulating, loop back around? What about the location of the particles in this case? Just some ideas to consider, but we should iron this out pretty soon. + this->time = 0; } this->program->updateData(this->time);