<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>
double range[2];<BR>
vtkXMLUnstructuredGridReader *data_reader = vtkXMLUnstructuredGridReader::New();<BR>
data_reader->SetFileName("fire_ug.vtu");<BR>
data_reader->Update();<BR>
<BR>
data_reader->GetOutput()->GetScalarRange(range); <BR>
<BR>
vtkArrowSource *arrow = vtkArrowSource::New();<BR>
<BR>
vtkGlyph3D *glyph = vtkGlyph3D::New();<BR>
glyph->SetInputConnection(data_reader->GetOutputPort());<BR>
glyph->SetSource(arrow->GetOutput());<BR>
glyph->SetVectorModeToUseVector();<BR>
glyph->SetScaleModeToScaleByVector();<BR>
glyph->SetColorModeToColorByScalar();<BR>
glyph->SetScaleFactor(0.1);<BR>
<BR>
vtkPolyDataMapper *spikeMapper = vtkPolyDataMapper::New();<BR>
spikeMapper->SetInput(glyph->GetOutput());<BR>
spikeMapper->SetScalarRange(range);<BR>
<BR>
...............<BR>
The Usual pipeline.<BR>
<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>