<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 26, 2014 at 1:30 PM, Aashish Chaudhary <span dir="ltr"><<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></div><div>Do this in your code </div><div><br></div><div>polydata->GetPointData()->SetScalars(colors);</div>
</blockquote></div><br></div><div class="gmail_extra">You would also need to update the colors array to contain the same number of tuples as vertices (3).<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">
If your data is raw RGB tuples as unsigned char rather than something that needs to pass through a lookup table, you might need to use<br><br>colorByRGBArray()<br><br></div><div class="gmail_extra">rather than<br><br>colorByScalars()<br clear="all">
</div><div class="gmail_extra"><br>-- <br>Casey B. Goodlett, Ph.D.<br>R&D Engineer<br>Kitware, Inc. - North Carolina Office<br><a href="http://www.kitware.com">http://www.kitware.com</a><br>(919) 969-6990 x310
</div></div>