Here's a sample: # vtk DataFile Version 3.0 vtk output ASCII DATASET POLYDATA POINTS 4 float -0.5 -0.5 0 0.5 -0.5 0 -0.5 0.5 0 0.5 0.5 0
POINT_DATA 4 VECTORS Velocity double 0 0 1 0 1 1 1 0 1 1 1 1 On Mon, Sep 28, 2009 at 2:50 PM, Rafael Pacheco <[email protected]> wrote: > Ken, > many thanks, maybe what I need is a very simple example on how to do this > using vtk legacy file? Here is a sample of what I have (I do not have the > velocity field there, as I do not know how to put it there). > > # vtk DataFile Version 3.0 > Spin-up velocity field > ASCII > DATASET POLYDATA > POINTS 10000 float > 1.915706 0.753999 3.527802 > 1.495156 0.089507 4.072335 > 0.400480 0.453014 3.814184 > 0.177201 0.131611 4.245033 > > >> You should be able to color particles like you color any other type of >> data. Simply choose the field to color by. >> >> -Ken >> >> On 9/28/09 12:29 PM, "Rafael Pacheco" <[email protected]> wrote: >> >> > > Hello, >> >> I have a set of particles that I can visualize using unstructured data and >> the gliph 'sphere', i.e. I have their position x,y,z. Is it possible to >> color the particles using a velocity field? The magnitude of the velocity >> (which I have on a structured grid) can be attached to the particle, for >> example, for any particle I can have the position and velocity, x,y,z,v >> >> The questions are:(1) can I color the particles using their velocity, and >> (2) if the previous comment is true, what type of format should I use? I am >> currently using asci vtk legacy. >> >> Thanks! >> Rafael >> >> > >> >> **** Kenneth Moreland >> *** Sandia National Laboratories >> *********** >> *** *** *** email: [email protected] >> ** *** ** phone: (505) 844-8919 >> *** web: http://www.cs.unm.edu/~kmorel >> >> > > > -- Rafael > -------------------------------------------------------------------- > Department of Mathematics and Statistics > Arizona State University > P.O. Box 871804 > Tempe, Arizona 85287-1804 > Email: [email protected] > http://math.la.asu.edu/~rpacheco > -------------------------------------------------------------------- > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Follow this link to subscribe/unsubscribe: > http://www.paraview.org/mailman/listinfo/paraview > > _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
