<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="OPENWEBMAIL" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<font size="2"><b>Ken,
<br />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).
<br />
<br /># vtk DataFile Version 3.0
<br />Spin-up velocity field
<br />ASCII
<br />DATASET POLYDATA
<br />POINTS 10000 float
<br /> 1.915706 0.753999 3.527802
<br /> 1.495156 0.089507 4.072335
<br /> 0.400480 0.453014 3.814184
<br /> 0.177201 0.131611 4.245033
<br />
<br />
<br /></b>>
<font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">You
should be able to color particles like you color any other type of data.
Simply choose the field to color by.
<br />>
<br />>
-Ken
<br />>
<br />>
On 9/28/09 12:29 PM, "Rafael Pacheco" <<a href="https://math.asu.edu/cgi-bin/openwebmail/rpacheco@math.asu.edu">rpacheco@math.asu.edu</a>> wrote:
<br />>
<br />>
</span></font><blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">Hello,
<br />>
<br />>
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
<br />>
<br />>
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.
<br />>
<br />>
Thanks!
<br />>
Rafael
<br />>
<br />>
</span></font></blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">
<br />>
</span></font><font size="2"><font face="Consolas, Courier New, Courier"><span style="font-size: 10pt;">
<br />>
**** Kenneth Moreland
<br />>
*** Sandia National
Laboratories
<br />>
***********
<br />>
*** *** *** email: <a href="https://math.asu.edu/cgi-bin/openwebmail/kmorel@sandia.gov">kmorel@sandia.gov</a>
<br />>
** *** ** phone: (505) 844-8919
<br />>
*** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a>
<br />>
</span></font></font><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">
<br />>
</span></font>
<br />
<br />
<br />-- Rafael
<br />
--------------------------------------------------------------------
<br />
Department of Mathematics and Statistics
<br />
Arizona State University
<br />
P.O. Box 871804
<br />
Tempe, Arizona 85287-1804
<br />
Email: rpacheco@asu.edu
<br />
<a target="_blank" href="http://math.la.asu.edu/~rpacheco">http://math.la.asu.edu/~rpacheco</a>
<br />
--------------------------------------------------------------------
<br />
</font>
</BODY>
</HTML>