<div>Hi kiran,</div>
<div> </div>
<div>to my knowledge, vtkLookUpTable does not put any limit over the colors to be added.</div>
<div> </div>
<div>you can add as many entries to the table as you want.</div>
<div><font size="2"></font> </div>
<div><font size="2">vtkLookUpTable::SetNumberOfTableValues( );</font></div>
<p>For each table entry, you can assign any of the 24 million ( 256 red x 256 green x 256 blue rgb combinations ) colors.</p>
<p>In essence you can use all the 24 million colors to the lookup table, and refer to them using a linear color index - which would be your polydata scalars.</p>
<p>Please read the documentation of vtkLookUpTable clearly --- </p>
<p><a href="http://www.vtk.org/doc/nightly/html/classvtkLookupTable.html#45e8946b4f0c250ec9ab8236bcc20a12">http://www.vtk.org/doc/nightly/html/classvtkLookupTable.html#45e8946b4f0c250ec9ab8236bcc20a12</a></p>
<p>Regards,</p>
<p>Deepak Roy</p>
<p><span class="gmail_quote">On 2/8/06, <b class="gmail_sendername"><a href="mailto:kshivann@engineering.uiowa.edu">kshivann@engineering.uiowa.edu</a></b> <<a href="mailto:kshivann@engineering.uiowa.edu">kshivann@engineering.uiowa.edu
</a>> wrote:</span></p>
<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">hi,<br>i guess vtklookuptable lets 256 colors to be defined. is there a limit to<br>number of colors to be defined. how do i do it if i have more than 256 scalar
<br>values.<br><br>kiran<br><br>Quoting Deepak Roy <<a href="mailto:cdeepakroy@gmail.com">cdeepakroy@gmail.com</a>>:<br><br>> Hi kiran,<br>><br>> Did you try using vtkLookUpTable, it lets you define a color for each scalar
<br>> value.<br>><br>> Is that what you wanted.<br>><br>> Let me know.<br>><br>> Regards,<br>><br>> Deepak<br>><br>> On 2/8/06, <a href="mailto:kshivann@engineering.uiowa.edu">kshivann@engineering.uiowa.edu
</a> <<a href="mailto:kshivann@engineering.uiowa.edu">kshivann@engineering.uiowa.edu</a>><br>> wrote:<br>>><br>>> hi all,<br>>> i would like to color each cell/point in a polydata according to my
<br>>> set of<br>>> requirements. right now vtkscalarstocolors function calculates the colors<br>>> of<br>>> the cell/point automatically given the saturation range and scalar range.<br>>> is
<br>>> there a way to input rgb values for the cell/point individually.<br>>><br>>> thanks<br>>><br>>> kiran<br>>><br>>> _______________________________________________<br>>> This is the private VTK discussion list.
<br>>> Please keep messages on-topic. Check the FAQ at:<br>>> <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>>> Follow this link to subscribe/unsubscribe:<br>>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers">
http://www.vtk.org/mailman/listinfo/vtkusers</a><br>>><br>><br><br><br><br><br></blockquote></div><br>