<div dir="ltr">Hi All,<br><br>I&#39;m new to vtk and would like to represent some specific colors on my vtkPolyData by vtkFloatArray. <br>Until
 now, I managed to do that in the following way but more colors have 
been represented than I wanted (actually, four colors).<br>
<br>//calculating my vtkFloatArray<br>  myVtkFloatArray-&gt;<div dir="ltr">SetNumberOfComponents(1);<br><div dir="ltr">  myVtkFloatArray-&gt;SetNumberOfValues(numPoints);<br>  myVtkFloatArray-&gt;SetValue(ind, someVal);<br>

<br>//setting this array on mySurface scalars<br>

mySurface-&gt;GetPointData()-&gt;SetScalars(myVtkFloatArray);<br> <br>In that way I visualize the colored surface on the 3d window (of Mitk) without the need to use the vtkRendererWindow. <br>Now,
 I&#39;d like to set a specific color for each range of values from 
myVtkFloatArray and represent less colors then are being represented now
 (remove one color from the middle so it will be represented just three colors, not four). <br>
<br>I searched in web and found out that look up table can satisfy my 
needs, but I haven&#39;t found a method without the use of vtkRendererWindow
 (which I don&#39;t need, I already have a window, as I mentioned above).<br><br>
How should I do that?<br><br>Any help would be very appreciated.</div></div><div style="display:inline" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup {  position:absolute;  z-index:9999;  padding: 0px 0px;  margin-left: 0px;  margin-top: 0px;  width: 240px;  overflow: hidden;  word-wrap: break-word;  color: black;  font-size: 10px;  text-align: left;  line-height: 13px;}</style></div>