<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Bookman Old Style">Hi,</FONT></DIV>
<DIV><FONT face="Bookman Old Style">1. Firstly change you surface mesh,if not 
vtkDataSet,&nbsp;to vtkPolyData&nbsp; named as surface.</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT>&nbsp;</DIV>
<DIV><FONT face="Bookman Old Style">2. &nbsp;vtkDoubleArray *scalars = 
vtkDoubleArray::New(); Assign the deformation magnitude at each node in the 
surface mesh to this scalars.</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT>&nbsp;</DIV>
<DIV><FONT 
face="Bookman Old Style">3.&nbsp;surface-&gt;GetPointData()-&gt;SetScalars(scalars);<BR>&nbsp;</FONT><FONT 
face="Bookman Old Style"><BR>4.create the lookup table<BR>&nbsp;vtkLookupTable 
*satLut = vtkLookupTable::New();<BR>&nbsp;&nbsp;&nbsp; satLut-&gt;SetTableRange 
(0, 256);<BR>&nbsp;&nbsp;&nbsp; satLut-&gt;SetHueRange (.0, 
.0);<BR>&nbsp;&nbsp;&nbsp; satLut-&gt;SetSaturationRange (1, 
1);<BR>&nbsp;&nbsp;&nbsp; satLut-&gt;SetValueRange (0.3, 
1);<BR>&nbsp;satLut-&gt;Build();</FONT></DIV>
<DIV><FONT face="Bookman Old Style"><BR>5.mapper</DIV>
<DIV>&nbsp;map-&gt;SetLookupTable(satLut);<BR>&nbsp;map-&gt;SetColorModeToMapScalars();<BR>&nbsp;map-&gt;SetScalarModeToUsePointData();<BR>&nbsp;map-&gt;SetScalarRange(profile-&gt;GetScalarRange());</DIV>
<DIV>&nbsp;</DIV>
<DIV>6.actor</DIV>
<DIV>vtkActor *act = vtkActor::New();</DIV>
<DIV>act-&gt;SetMapper(map);</DIV>
<DIV>&nbsp;</DIV>
<DIV>Hope it help.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Yixun Liu<BR></DIV></FONT></BODY></HTML>