Hello,<br><br>I have to display contours, for a given range, by mapping values to colours. i.e. Consider I need to display contours between 1 and 200.<br><br>I use the lookuptable as follows<br><br>vtkSmartPointer&lt;vtkLookupTable&gt; lut = vtkSmartPointer&lt;vtkLookupTable&gt;::New();<br>
<div id=":5k">lut-&gt;SetNumberOfTableValues(9);<br>lut-&gt;SetTableValue(0, 1.00, 0.00, 0.00);<br>
lut-&gt;SetTableValue(1, 1.00, 0.50, 0.00);<br>lut-&gt;SetTableValue(2, 1.00, 1.00, 0.00);<br>lut-&gt;SetTableValue(3, 0.50, 1.00, 0.00);<br>
lut-&gt;SetTableValue(4, 0.00, 1.00, 0.00);<br>
lut-&gt;SetTableValue(5, 0.00, 1.00, 0.50);<br>lut-&gt;SetTableValue(6, 0.00, 1.00, 1.00);<br>
lut-&gt;SetTableValue(7, 0.00, 0.50, 1.00);<br>
lut-&gt;SetTableValue(8, 0.00, 0.00, 1.00);<br>lut-&gt;Build();</div><br>Now suppose I want the output like show below<br><br>01 - 10     ==== (1.0, 0.0, 0.0)<br>11 - 20     ==== (1.0, 0.5, 0.0)<br>21 - 30     ==== (1.0, 1.0, 0.0)<br>
31 - 40     ==== (0.5, 1.0, 0.0)<br>
41 - 50     ==== (0.0, 1.0, 0.0)<br>
51 - 60     ==== (0.0, 1.0, 0.5)<br>61 - 80     ==== (0.0, 1.0, 1.0)<br>
81 - 100    ==== (0.0, 0.5, 1.0)<br>
101 - 200  ==== (0.0, 0.0, 1.0)<br><br>How can this be done.?? So that the values supplied should be mapped to the corresponding colour and should be displayed.<br><br>Thanks<br><br>Regards<br>Rakesh Patil<br>