<div dir="ltr"><div class="gmail_extra">Casey, </div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 26, 2014 at 1:37 PM, Casey Goodlett <span dir="ltr"><<a href="mailto:casey.goodlett@kitware.com" target="_blank">casey.goodlett@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 dir="ltr"><div class=""><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><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></blockquote><div><br></div><div>In the same code Bo sent us that was the case. His problem was he was not seeing colors. </div>
<div><br></div><div>- Aashish </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"></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></blockquote><div><br></div><div>That's a good point. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">
</div><div class=""><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" target="_blank">http://www.kitware.com</a><br>
<a href="tel:%28919%29%20969-6990%20x310" value="+19199696990" target="_blank">(919) 969-6990 x310</a>
</div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>| Aashish Chaudhary <br>| R&D Engineer <br>| Kitware Inc. <br>| <a href="http://www.kitware.com">www.kitware.com</a>
</div></div>