<P>
Thanks a lot for pointing out the mistake. I have made the changes accordingly and now files looks something like this:<BR>
<BR>
# vtk DataFile Version 2.0<BR>
Molecule points<BR>
ASCII<BR>
DATASET POLYDATA<BR>
POINTS 3 float<BR>
0.0 0.0 -0.84497583 <BR>
2.31267592 0.0 0.42248792 <BR>
-2.31267592 0.0 0.42248792 <BR>
<BR>
LINES 4 12<BR>
2 0 1 <BR>
2 0 2 <BR>
2 1 0 <BR>
2 2 0 <BR>
<BR>
POINT_DATA 3<BR>
SCALARS sample_scalar float 1<BR>
LOOKUP_TABLE radius<BR>
1.66<BR>
1.66<BR>
1.66<BR>
LOOKUP_TABLE radius 3<BR>
1.0 1.0 0.0 1.0<BR>
1.0 1.0 0.0 1.0<BR>
1.0 1.0 0.0 1.0<BR>
<BR>
but my problem is I want the resulting glyphs that will be drawn on each point, to be colored according to the lookup table. Right now the the resulting image looks like :<BR>
<BR>
http://rapidshare.com/files/50952946/atom_glyph.png.html<BR>
<BR>
The connectivity is colored according to the lookup table, but not the glyphs, even when I am .<BR>
<BR>
Please correct the mistake that I am making.<BR>
<BR>
>><BR>
>> I am drawing a glyph at each point with a sphere as a source.<BR>
>> I want the spheres to be colored according to the color specified in<BR>
>> the LOOKUP_TABLE colors. The glyphs get drawn without any problem , <BR>
>> but when I want to color them according to color in the file (by<BR>
>> changing the Dispaly property, Color by colors) nothing happens the<BR>
>> spheres are always displayed in blue, no mater what is the color in<BR>
>> the file.<BR>
>> Am I doing something wrong ? if yes please correct me.<BR>
>><BR>
<BR>
>Hmm, I would say: I guess so ;-)<BR>
<BR>
>You have to call your LUT _and_ then define it.<BR>
>Look at the VTK file formats documentation page 8.<BR>
<BR>
>This should do the trick:<BR>
># vtk DataFile Version 2.0<BR>
>Molecule points<BR>
>ASCII<BR>
>DATASET POLYDATA<BR>
>POINTS 2 float<BR>
>0.0 0.0 -1.29308565<BR>
>0.0 0.0 1.29308565<BR>
<BR>
>LINES 2 6<BR>
>2 0 1<BR>
>2 1 0<BR>
<BR>
>POINT_DATA 2<BR>
>SCALARS radius float<BR>
>LOOKUP_TABLE colors<BR>
>1.66 1.66<BR>
<BR>
>LOOKUP_TABLE colors 2<BR>
>1.0 1.0 0.0 1.0<BR>
>1.0 1.0 0.0 1.0
</P>
<br><br>
<Table border=0 Width=644 Height=57 cellspacing=0 cellpadding=0 style='font-family:Verdana;font-size:11px;line-height:15px;'><TR><td><a href='http://adworks.rediff.com/cgi-bin/AdWorks/click.cgi/www.rediff.com/signature-home.htm/1050715198@Middle5/1399271_1392787/1398744/1?PARTNER=3&OAS_QUERY=null target=new '><img src =http://imadworks.rediff.com/cgi-bin/AdWorks/adimage.cgi/1399271_1392787/creative_1398744.gif alt='jeete raho' border=0></a></td></TR></Table>