[vtkusers] Problems getting output of vtkTemporalStreamTracer

Tijmen Klein T.R.Klein at student.rug.nl
Thu Oct 20 05:09:43 EDT 2011


I am using a vtkTemporalStreamTracer in combination with a (self
constructed) vtkTemporalDataSet. My code looks something like this:

vtkSmartPointer<vtkTemporalDataSet> temporalVectors =
vtkSmartPointer<vtkTemporalDataSet>::New();
temporalVectors->SetNumberOfTimeSteps(NUM_ANIMATION_FRAMES);
for(int i = 0; i < NUM_ANIMATION_FRAMES; ++i)
{
temporalVectors->SetTimeStep(i, readerVector[i]->GetOutput());
}
temporalStreamTracer = vtkSmartPointer<vtkTemporalStreamTracer>::New();
temporalStreamTracer->SetInput(temporalVectors);
temporalStreamTracer->SetTimeStep(2);
temporalStreamTracer->SetSource(sourceData);

I think add a standard mapper/actor to show the results on the screen.
However, I get no output at all. The polydata output of the
temporalStreamTracer seems to be emtpy. If I replace the temporal
streamtracer by a vtkStreamTracer and use readerVector[0] as the input,
everything works as expected. Is there something that I'm missing to get
the temporal streamtracer to work?

Cheers,
Tijmen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111020/8ec04841/attachment.htm>


More information about the vtkusers mailing list