<BR>
<P><FONT face="'PrimaSans BT,Verdana,sans-serif'">Hello John,<BR> <BR>1.) How to set cell scalars into vtkPolyData object?<BR>With vtk you often have to look at the base classes to find what you need. vtkPolyData is derived from vtkDataSet. This has a function GetCellData() returning a pointer to an object of vtkCellData. To find all the functions in vtkCellData you again have to look at the base class (vtkDataSetAttributes) where you will find a lot of functions to access or add the data arrays (vtkDataArray) that contain the data on the cells.<BR> <BR>2.) How to associate vtkLookUpTable with vtkPolyData object?<BR>This association is done vial the vtkPolyDataMapper.<BR> <BR>Hope that helps and kind regards,<BR>Bjoern<BR><BR>----- Ursprüngliche Nachricht -----<BR>Von: John Hsieh <cthsieh2001@yahoo.com><BR>Datum: Montag, 16. März 2009, 4:06<BR>Betreff: [vtkusers] About VTK colormap problem<BR>An: vtkusers@vtk.org<BR><BR>> <BR>> Hello,<BR>> I am a new VTK user. <BR>> Currently, I am working on two surface registration.<BR>> In order to svae time on coding, I had used VTK to read and <BR>> register two<BR>> surfaces successfully.<BR>> But I have problem to display the distance devaition between two <BR>> surfaces.I have tried to surf web sites for looking the example <BR>> codes or tutorials<BR>> about vtkLookUpTable, but ...<BR>> Do anyone can answer my following questions? or give me any <BR>> sugguestions.Thanks<BR>> 1. How to set cell scalars into vtkPolyData object?<BR>> 2. How to associate vtkLookUpTable with vtkPolyData object?<BR>> <BR>> -- <BR>> View this message in context: http://www.nabble.com/About-VTK-<BR>> colormap-problem-tp22531277p22531277.html<BR>> Sent from the VTK - Users mailing list archive at Nabble.com.<BR>> <BR>> _______________________________________________<BR>> Powered by www.kitware.com<BR>> <BR>> Visit other Kitware open-source projects at <BR>> http://www.kitware.com/opensource/opensource.html<BR>> Please keep messages on-topic and check the VTK FAQ at: <BR>> http://www.vtk.org/Wiki/VTK_FAQ<BR>> Follow this link to subscribe/unsubscribe:<BR>> http://www.vtk.org/mailman/listinfo/vtkusers<BR><BR>------------------------------------------------------------------------- <BR>Dr. Bjoern Zehner <BR>UFZ Centre for Environmental Research Leipzig-Halle <BR>Permoserstrasse 15 <BR>04318 Leipzig <BR>Germany <BR>http://www.ufz.de/index.php?en=5673 <BR>Tel: ++49 (341) 235 1979 <BR>Fax: ++49 (341) 235 1939<BR><BR></FONT></P>