<div dir="ltr">Hi All,<br><br>I'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->SetNumberOfComponents(1);<br>  myVtkFloatArray->SetNumberOfValues(numPoints);<br>  myVtkFloatArray->SetValue(ind, someVal);<br><br>//setting this array on mySurface scalars<br>

mySurface->GetPointData()->SetScalars(myVtkFloatArray);<br> <br>Now, I'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 range). <br>

<br>I searched in web and found out that look up table can satisfy my needs, but I haven't found a method without the use of rendering (mapper, render window etc). I'd like that the result image would be represented on orthogonal planes, thus the use of rendering isn't an option. <br>

<br>Any help would be very appreciated.<br>Miri<br><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>