vtkExtractParticlesOverTime filter output does not change over time
The output of the vtkExtractParticlesOverTime
filter does not change over time. The extracted particles are always at first time step whatever the requested time step.
Sample code to reproduce:
vtkNew<vtkTimeSourceExample> timeSource;
timeSource->SetXAmplitude(10);
timeSource->SetYAmplitude(0);
vtkNew<vtkSphereSource> sphere;
sphere->SetCenter(10, 0, 0);
vtkNew<vtkDelaunay3D> delaunay;
delaunay->SetInputConnection(sphere->GetOutputPort());
vtkNew<vtkExtractParticlesOverTime> particleExtraction;
particleExtraction->SetInputConnection(0, timeSource->GetOutputPort());
particleExtraction->SetInputConnection(1, delaunay->GetOutputPort());
double initialTimeStep = 0.5;
particleExtraction->UpdateTimeStep(initialTimeStep);
auto* resultDataObject = particleExtraction->GetOutputDataObject(0);
auto* resultDataSet = vtkDataSet::SafeDownCast(resultDataObject);
double* firstPointCoordinates = resultDataSet->GetPoint(0);
// Expected point coordinate is [3.4202, 0, 0], whereas we get [0, 0, 0]
Introduced by !8503 (merged)