<!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, to vtkPolyData named as surface.</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT> </DIV>
<DIV><FONT face="Bookman Old Style">2. 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> </DIV>
<DIV><FONT
face="Bookman Old Style">3. surface->GetPointData()->SetScalars(scalars);<BR> </FONT><FONT
face="Bookman Old Style"><BR>4.create the lookup table<BR> vtkLookupTable
*satLut = vtkLookupTable::New();<BR> satLut->SetTableRange
(0, 256);<BR> satLut->SetHueRange (.0,
.0);<BR> satLut->SetSaturationRange (1,
1);<BR> satLut->SetValueRange (0.3,
1);<BR> satLut->Build();</FONT></DIV>
<DIV><FONT face="Bookman Old Style"><BR>5.mapper</DIV>
<DIV> map->SetLookupTable(satLut);<BR> map->SetColorModeToMapScalars();<BR> map->SetScalarModeToUsePointData();<BR> map->SetScalarRange(profile->GetScalarRange());</DIV>
<DIV> </DIV>
<DIV>6.actor</DIV>
<DIV>vtkActor *act = vtkActor::New();</DIV>
<DIV>act->SetMapper(map);</DIV>
<DIV> </DIV>
<DIV>Hope it help.</DIV>
<DIV> </DIV>
<DIV>Yixun Liu<BR></DIV></FONT></BODY></HTML>