[Paraview] Re: vtkPolyData

Berk Geveci berk.geveci at kitware.com
Sun Feb 3 15:41:59 EST 2008


I did not carefully follow this thread but it sounds like you are
trying to create streamlines from a set of vertices. VTK/ParaView do
not support this. You have to create a solid mesh from your set of
points. One good way of doing this is to use the Delaunay3D filter. I
can't remember if this is already available in ParaView. If not let me
know and I can enable it.

-berk

On 1/30/08, Alessandro Bellina <bellina at uiuc.edu> wrote:
> Kent,
> Thank you very much for your suggestion. I hadn't thought of that.
>
> 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.
>
> 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.
>
> Thank you,
>
> Alessandro
>
>
> On Jan 30, 2008 10:39 AM, Kent Eschenberg <eschenbe at psc.edu> wrote:
> > It seems you want your data to be stored as an unstructured grid with
> cells of
> > type 1 (VTK_VERTEX). At each cell you will have one attribute which is a
> vector
> > with 3 components.
> >
> > Such a grid can be run through the Glyph module to put a line or arrow at
> each
> > cell. Let Glyph do that - don't store the data as lines.
> >
> > I haven't tried it but vtkStreamTracer should be able to generate
> streamlines
> > from such a grid.
> >
> > To obtain such a grid you will need to store your data in one of the file
> > formats that can represent that type of grid. For example, both the VTK
> legacy
> > and the VTK XML file formats can do this. Their ASCII versions are easy to
> > generate.
> >
> > Kent
> > Pittsburgh Supercomputing Center
> >
> >
> >
> >
> > Alessandro Bellina wrote:
> >  > Robert,
> >  > Since last time I posted this I was able to display something close to
> what
> >  > I want to do, but not quite exactly.
> >  >
> >  > I have a 2-D vector field that changes in time. In each time step the
> vector
> >  > has six coordinates V = {(x1,y1,z1), (x2,y2,z2)}. What I was ble to do
> >  > yesterday was plot them as <Lines>. So I did 2 points per line and that
> >  > worked OK. What I am interested in doing with this field is to plot a
> stream
> >  > (stream tracer.) So at some timestep in the future I want to be able to
> see
> >  > some of the old features of the previous timeteps. I think the stream
> tracer
> >  > filter does this but I can't use it with lines. Any other filters that
> do
> >  > this?
> >  >
> >  > The file then has <Points> <Lines>. And <Lines> have a connectivity and
> >  > offset table.
> >  >
> >  > I've seen some great renderings of stream-like behavior in ParaView.
> >  >
> >  > Ultimately I'd like to be able to color the stream to imply angle of
> >  > inclination  of the vectors with respect to a normal, I think this is
> >  > secondary.
> >  >
> >  > Thanks for your help,
> >  >
> >  > Alessandro
> >
>
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
>


More information about the ParaView mailing list