<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.38">
<TITLE>Re: [vtkusers] vtkTemporalData</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hi Erik,<BR>
I asked the very same question a couple of months back. John Biddiscombe was<BR>
very helpful in getting me up and running. Check out this thread for more<BR>
info (more towards the end of the thread will have the info you're<BR>
interested in):<BR>
<A HREF="http://www.nabble.com/TemporalDataSet-examples-td18096276.html">http://www.nabble.com/TemporalDataSet-examples-td18096276.html</A><BR>
<BR>
Basically, it is recommended to write a reader for your original data that<BR>
handles the temporal information keys (I looked at vtkEnSightReader.cxx for<BR>
an example) in RequestData and RequestInformation or use the<BR>
vtkFileSeriesReader interface in paraview.<BR>
&nbsp;Gerrick<BR>
<BR>
<BR>
On 4/20/09 2:22 PM, &quot;Erik Anderson&quot; &lt;eranders@sci.utah.edu&gt; wrote:<BR>
<BR>
&gt; Hi Everyone,<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; I am trying to get some visualizations of pathlines/streaklines/etc<BR>
&gt; out of VTK.&nbsp; I have some time-varying data that I have created a<BR>
&gt; vtkTemporalDataSet out of.&nbsp; To do this, I use something like the<BR>
&gt; following (in Python):<BR>
&gt;<BR>
&gt; ds = vtk.vtkTemporalDataSet()<BR>
&gt; ds.SetNumberOfTimeSteps(5)<BR>
&gt; for i in range(num_time_steps):<BR>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; ds.SetTimeStep(i, data[i])&nbsp;&nbsp; #&nbsp; data is a list of vtkStructuredPoints<BR>
&gt;<BR>
&gt;<BR>
&gt; After the vtkTemporalDataSet is constructed, I would like to use the<BR>
&gt; vtkTemporalDataSetAlgorithms using the new data as input.&nbsp; For instance,<BR>
&gt; I would like to use the vtkTemporalStreamTracer in conjuction with<BR>
&gt; vtkTemporalPathLineFilter to take advantage of the time-varying vector<BR>
&gt; field.&nbsp; If I print out the vtkTemporalDataSet I generate, I get exactly<BR>
&gt; the dataset I would expect - 5 children with the appropriate fields<BR>
&gt; attached.&nbsp; However, when I use a vtkTemporalStreamTracer, with the data<BR>
&gt; as an input and a plane used to seed the lines in the source connection,<BR>
&gt; I get the following error:<BR>
&gt;<BR>
&gt; vtkCompositeDataPipeline (0x6bb3890): Algorithm<BR>
&gt; vtkTemporalStreamTracer(0x7066260) returned failure for request:<BR>
&gt; vtkInformation (0x723ab10)<BR>
&gt;&nbsp;&nbsp; Debug: Off<BR>
&gt;&nbsp;&nbsp; Modified Time: 1281919<BR>
&gt;&nbsp;&nbsp; Reference Count: 1<BR>
&gt;&nbsp;&nbsp; Registered Events: (none)<BR>
&gt;&nbsp;&nbsp; Request: REQUEST_UPDATE_EXTENT<BR>
&gt;&nbsp;&nbsp; ALGORITHM_BEFORE_FORWARD: 1<BR>
&gt;&nbsp;&nbsp; FORWARD_DIRECTION: 0<BR>
&gt;&nbsp;&nbsp; FROM_OUTPUT_PORT: 0<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt; ERROR: In /home/eranders/env/VTK/Parallel/vtkTemporalStreamTracer.cxx,<BR>
&gt; line 803<BR>
&gt; vtkTemporalStreamTracer (0x7066260): No time step info<BR>
&gt;<BR>
&gt;<BR>
&gt; Am I forming the dataset incorrectly?&nbsp; I'm relatively confident that my<BR>
&gt; pipeline is correct:<BR>
&gt;<BR>
&gt; s = vtk.vtkTemporalStreamTracer()<BR>
&gt; s.SetInput(ds)<BR>
&gt; s.SetSourceConnection(seeds)<BR>
&gt;<BR>
&gt; where seeds is a vtkPlane<BR>
&gt;<BR>
&gt; Thanks in advance for any help!<BR>
&gt; Erik Anderson<BR>
&gt;<BR>
&gt; _______________________________________________<BR>
&gt; Powered by www.kitware.com<BR>
&gt;<BR>
&gt; Visit other Kitware open-source projects at<BR>
&gt; <A HREF="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</A><BR>
&gt;<BR>
&gt; Please keep messages on-topic and check the VTK FAQ at:<BR>
&gt; <A HREF="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</A><BR>
&gt;<BR>
&gt; Follow this link to subscribe/unsubscribe:<BR>
&gt; <A HREF="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</A><BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>