<span style>Hi David,</span><div style> Interesting, I just checked this out using ParaView and you are correct if a transform filter is applied. However in the display tab of ParaView if you transform there then the colouring is unaffected. Never noticed this because we have been just transforming using the transform in the display tab of ParaView.<div>
<br></div><div>I agree with you is will be safer to prefer<br>p->GetPointData()->SetScalars(rgb); </div><div><br></div><div><br></div><div>Thanks</div><div><br></div><div>Andrew</div><div><br></div></div><br><div class="gmail_quote">
On Sat, Mar 3, 2012 at 4:43 AM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Andrew,<br>
<br>
I may have missed something in the discussion, but you typically do<br>
not want to set colors via SetVectors as you mentioned (<br>
p->GetPointData()->SetVectors(rgb); )<br>
<br>
My understanding is that whatever is set with SetVectors will be<br>
transformed when the data set is transformed. I.e. if you rotate the<br>
data set, the colors will change (not typically what you'd want).<br>
<br>
I think you should prefer<br>
p->GetPointData()->SetScalars(rgb);<br>
<br>
David<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________<br>