<P>
I have a vtk_XML Unstructured file, with 6 scalars and 1 Vector value<BR>
associated with each node point.<BR>
<BR>
After reading the file, I create glyphs as follows :<BR>
<BR>
&nbsp; double range[2];<BR>
&nbsp; vtkXMLUnstructuredGridReader *data_reader = vtkXMLUnstructuredGridReader::New();<BR>
&nbsp; data_reader-&gt;SetFileName(&quot;fire_ug.vtu&quot;);<BR>
&nbsp; data_reader-&gt;Update();<BR>
&nbsp;  <BR>
&nbsp; data_reader-&gt;GetOutput()-&gt;GetScalarRange(range); <BR>
<BR>
&nbsp; vtkArrowSource *arrow = vtkArrowSource::New();<BR>
<BR>
&nbsp; vtkGlyph3D *glyph = vtkGlyph3D::New();<BR>
&nbsp; glyph-&gt;SetInputConnection(data_reader-&gt;GetOutputPort());<BR>
&nbsp; glyph-&gt;SetSource(arrow-&gt;GetOutput());<BR>
&nbsp; glyph-&gt;SetVectorModeToUseVector();<BR>
&nbsp; glyph-&gt;SetScaleModeToScaleByVector();<BR>
&nbsp; glyph-&gt;SetColorModeToColorByScalar();<BR>
&nbsp; glyph-&gt;SetScaleFactor(0.1);<BR>
<BR>
&nbsp; vtkPolyDataMapper *spikeMapper = vtkPolyDataMapper::New();<BR>
&nbsp; spikeMapper-&gt;SetInput(glyph-&gt;GetOutput());<BR>
&nbsp; spikeMapper-&gt;SetScalarRange(range);<BR>
<BR>
&nbsp; ...............<BR>
&nbsp; The Usual pipeline.<BR>
&nbsp; <BR>
I observer that the glpyhs are colored according to the first scalar<BR>
associated with the points. Also the range is determined for the<BR>
first scalar value associated with the points.<BR>
<BR>
How can I select a particular scalar value for coloring the data or<BR>
to obtain it's range ?
</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/2047758_2040452/2047768/1?PARTNER=3&OAS_QUERY=null' target=new ><img src ='http://imadworks.rediff.com/cgi-bin/AdWorks/adimage.cgi/2047758_2040452/creative_2047768.gif'  alt='Monster'  border=0></a></td></TR></Table>