Hello,<br><br>I am trying to make a C++ reader for a point set file containing time steps.<br>The output of the reader is a vtkPolyData.<br><br>The file format is similar to: <br>x1,y1,z1,prop1,prop2,...,time<br><br>I would like to import the field &quot;time&quot; as time steps, in order to animate using &quot;snap to time steps&quot; mode. <br>
<br>The code looks like:<br><br>    vtkPolyData *output = vtkPolyData::SafeDownCast(outInfo-&gt;Get(vtkDataObject::DATA_OBJECT()));<br><br>    Loop:<br>            time = readTime();<br>            coords = readCoords();<br>
<br>            vtkIdType id = outPoints-&gt;InsertNextPoint(coords[0], coords[1], coords[2]);<br>            outCells-&gt;InsertNextCell(1);<br>            outCells-&gt;InsertCellPoint(id);       <br> <br>
    output-&gt;SetPoints(outPoints);<br>    output-&gt;SetVerts(outCells);<br>
    <br>Assuming time is an integer, how do I insert the time steps into the output ?<br><br>I tried to import the time as an &quot;int property&quot; instead of time steps and animate using threshold, but I can&#39;t display one time step at a time because only one slider is animated. I tried a threshold on a threshold to animate 2 sliders but couldn&#39;t get the exact effect that &quot;snap to time steps&quot; would give if I had time steps. <br>
<br>Thank you,<br><br>Nehme          <br>