feat: beaching of particles
This commit is contained in:
1 parent
e674dde67b
commit
0bde78ee7d
4 files changed
+92
-22
No files matched your search
@@ -42,9 +42,11 @@ void SpawnPointCallback::Execute(vtkObject *caller, unsigned long evId, void *ca
|
||||
inverseCartographicProjection->MultiplyPoint(worldPos, worldPos);
|
||||
|
||||
points->InsertNextPoint(worldPos[0], worldPos[1], 0);
|
||||
this->particlesBeached->InsertNextValue(0);
|
||||
|
||||
// FIXME: The below lines cause some weird interaction with our vtkTimer.
|
||||
// see github issue https://github.com/MakeNEnjoy/interactive-track-and-trace/issues/28
|
||||
this->particlesBeached->Modified();
|
||||
this->points->Modified();
|
||||
ren->GetRenderWindow()->Render();
|
||||
}
|
||||
@@ -76,3 +78,7 @@ void SpawnPointCallback::setUVGrid(const std::shared_ptr<UVGrid> &uvGrid) {
|
||||
inverseCartographicProjection = getCartographicTransformMatrix(uvGrid);
|
||||
inverseCartographicProjection->Invert();
|
||||
}
|
||||
|
||||
void SpawnPointCallback::setBeached(const vtkSmartPointer<vtkIntArray> &ints) {
|
||||
this->particlesBeached = ints;
|
||||
}
|
||||