<div>Hi kiran,</div>
<div>&nbsp;</div>
<div>to my knowledge, vtkLookUpTable does not put any limit over the colors to be added.</div>
<div>&nbsp;</div>
<div>you can add as many entries to the table as you want.</div>
<div><font size="2"></font>&nbsp;</div>
<div><font size="2">vtkLookUpTable::SetNumberOfTableValues(&nbsp; );</font></div>
<p>For each table entry, you can assign any of the 24 million ( 256 red x 256 green x 256 blue&nbsp;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> &lt;<a href="mailto:kshivann@engineering.uiowa.edu">kshivann@engineering.uiowa.edu
</a>&gt; 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 &lt;<a href="mailto:cdeepakroy@gmail.com">cdeepakroy@gmail.com</a>&gt;:<br><br>&gt; Hi kiran,<br>&gt;<br>&gt; Did you try using vtkLookUpTable, it lets you define a color for each scalar
<br>&gt; value.<br>&gt;<br>&gt; Is that what you wanted.<br>&gt;<br>&gt; Let me know.<br>&gt;<br>&gt; Regards,<br>&gt;<br>&gt; Deepak<br>&gt;<br>&gt; On 2/8/06, <a href="mailto:kshivann@engineering.uiowa.edu">kshivann@engineering.uiowa.edu
</a> &lt;<a href="mailto:kshivann@engineering.uiowa.edu">kshivann@engineering.uiowa.edu</a>&gt;<br>&gt; wrote:<br>&gt;&gt;<br>&gt;&gt; hi all,<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; i would like to color each cell/point in a polydata according to my
<br>&gt;&gt; set of<br>&gt;&gt; requirements. right now vtkscalarstocolors function calculates the colors<br>&gt;&gt; of<br>&gt;&gt; the cell/point automatically given the saturation range and scalar range.<br>&gt;&gt; is
<br>&gt;&gt; there a way to input rgb values for the cell/point individually.<br>&gt;&gt;<br>&gt;&gt; thanks<br>&gt;&gt;<br>&gt;&gt; kiran<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; This is the private VTK discussion list.
<br>&gt;&gt; Please keep messages on-topic. Check the FAQ at:<br>&gt;&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt;&gt; Follow this link to subscribe/unsubscribe:<br>&gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers">
http://www.vtk.org/mailman/listinfo/vtkusers</a><br>&gt;&gt;<br>&gt;<br><br><br><br><br></blockquote></div><br>