<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-15"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello World.<br>
<br>
I have seen many different and beautifil slides on scalar
visualization, but they lack one major point: the code.<br>
I'm really confused between actors, lookup tables and legend-box-actors.<br>
<br>
What I need is the basic understanding of how to get my (unstructured
grid) cell data visualized with a cutting plane.<br>
<br>
Scalar Values exist:<br>
<br>
<font face="Courier New, Courier, monospace">vtkDoubleArray *T =
vtkDoubleArray::New();<br>
for (unsigned i = 0; i &lt; noCells; i++){<br>
    T-&gt;InsertNextValue(i);<br>
}</font><br>
<br>
Even at the cells:<br>
<br>
<font face="Courier New, Courier, monospace">sGrid-&gt;GetCellData()-&gt;SetScalars(T);</font><br>
<br>
The cutting plane is there, too. But it is not colored:<br>
<br>
<font face="Courier New, Courier, monospace">vtkCutter *planeCut =
vtkCutter::New();<br>
planeCut-&gt;SetInput(sGrid);<br>
planeCut-&gt;SetCutFunction(plane);</font><br>
<br>
So my quetions remain:<br>
<ul>
  <li><b>How do I color the cutting plane corresponding to the cell
values?</b></li>
  <li><b>How do I even add a color legend to the scene?</b></li>
</ul>
I have allready looked at the example at
<a class="moz-txt-link-freetext" href="http://www.itk.org/Wiki/VTK/Examples/Legend">http://www.itk.org/Wiki/VTK/Examples/Legend</a> but I'm not getting it.<br>
There are two color legend entries, but I centainly need more for a
grid containing 16000 cells?<br>
Or do I misunderstand the difference between the legend and a
color-legend?<br>
Does a lookup-table come into play here?!<br>
<br>
Have a nice day.<br>
Sebastian<br>
<br>
<br>
<br>
</body>
</html>