Red, not white ???<br><br>If so, it is just because you didn't set the proper lookuptable range that should be linked to your mapper. (You might need to update scalar range on the mapper too)<br><br><div class="gmail_quote">
On Sun, Apr 25, 2010 at 3:18 PM, nikhil singhania <span dir="ltr"><<a href="mailto:niksinghania@gmail.com">niksinghania@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Sir,<br>I am using Vtkimagedata and reading a java array.After rendering it in spite of viewing data its just viewing red slab of given dimension.<br> image = new vtkImageData();<br> image.SetExtent(0,499,0, 499,0, 49);<br>
image.SetSpacing(0.33,0.33,1.0);<br> image.SetScalarTypeToChar();<br> image.SetNumberOfScalarComponents(0);<br> image.AllocateScalars();<div class="im"><br> array = image.GetPointData().GetScalars();<br>
<br> for(int iZ = 0; iZ < 50; iZ++){<br> for(int iY= 0; iY < 500; iY++){<br> for(int iX = 0; iX < 500; iX++){<br> array.InsertNextTuple1(arr[iZ][iY][iX]);<br>
}<br> }<br> }<br><br>Please help.<br><br></div>With regards,<br><font color="#888888">Nikhil<br>
</font></blockquote></div><br>