<div class="moz-text-html" lang="x-western">
<div><font face="Arial" size="2">
<div><font face="Arial" size="2">Dear vtkUsers,</font></div>
<div> </div>
<div><font face="Arial" size="2">There are two types of scalar
definition, SCALARS and COLOR_SCALARS. I don't know how to
switch between these two. When it is using COLOR_SCALARS, can we
still use LookupTable to display the data? When using SCALARS, I can
use the following code to display the scalars. It does not work when using
COLOR_SCALARS. Is there any way to comvert COLOR_SCALARS to SCALARS?
</font></div>
<div> </div>
<div><font face="Arial" size="2">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>></font></div>
<div><font face="Arial" size="2">reader=vtkPolyDataReader()<br>mapper =
vtkDataSetMapper()<br>lut = make_lookupTable('jet.txt')</font></div>
<div> </div>
<div><font face="Arial" size="2">mapper.SetLookupTable(lut)<br>mapper.SetInput(reader.GetOutput())<br>actor
=
vtkActor()<br>actor.SetMapper(mapper)<br>actor.GetProperty().SetOpacity(0.8)</font></div>
<div><font face="Arial" size="2">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>></font></div>
<div> </div>
<div><font face="Arial" size="2">Thanks in advance</font></div>
<div><font face="Arial" size="2">Xiaoxu</font></div></font></div></div>