Kent,<br>Thank you very much for your suggestion. I hadn't thought of that.<br><br>I tried it with VTK_VERTEX and I am able to see the data. I am also able to use the Glypth module to add arrows.<br><br>Now the StreamTracer filter just doesn't makes everything disappear. I am not sure if it works for this datatype. I am not sure if anybody has dealt with the filter. I add it after Glyph, or even before I add Glyph, and everything disappears. <br>
<br>Thank you,<br><br>Alessandro<br><br><div class="gmail_quote">On Jan 30, 2008 10:39 AM, Kent Eschenberg <<a href="mailto:eschenbe@psc.edu">eschenbe@psc.edu</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It seems you want your data to be stored as an unstructured grid with cells of<br>type 1 (VTK_VERTEX). At each cell you will have one attribute which is a vector<br>with 3 components.<br><br>Such a grid can be run through the Glyph module to put a line or arrow at each<br>
cell. Let Glyph do that - don't store the data as lines.<br><br>I haven't tried it but vtkStreamTracer should be able to generate streamlines<br>from such a grid.<br><br>To obtain such a grid you will need to store your data in one of the file<br>
formats that can represent that type of grid. For example, both the VTK legacy<br>and the VTK XML file formats can do this. Their ASCII versions are easy to<br>generate.<br><br>Kent<br>Pittsburgh Supercomputing Center<br>
<div><div></div><div class="Wj3C7c"><br>Alessandro Bellina wrote:<br> > Robert,<br> > Since last time I posted this I was able to display something close to what<br> > I want to do, but not quite exactly.<br> ><br>
> I have a 2-D vector field that changes in time. In each time step the vector<br> > has six coordinates V = {(x1,y1,z1), (x2,y2,z2)}. What I was ble to do<br> > yesterday was plot them as <Lines>. So I did 2 points per line and that<br>
> worked OK. What I am interested in doing with this field is to plot a stream<br> > (stream tracer.) So at some timestep in the future I want to be able to see<br> > some of the old features of the previous timeteps. I think the stream tracer<br>
> filter does this but I can't use it with lines. Any other filters that do<br> > this?<br> ><br> > The file then has <Points> <Lines>. And <Lines> have a connectivity and<br> > offset table.<br>
><br> > I've seen some great renderings of stream-like behavior in ParaView.<br> ><br> > Ultimately I'd like to be able to color the stream to imply angle of<br> > inclination of the vectors with respect to a normal, I think this is<br>
> secondary.<br> ><br> > Thanks for your help,<br> ><br> > Alessandro<br></div></div></blockquote></div><br>