(sorry If I posted this twice).<div><br></div><div>Turn the scalar visibility off of the mapper objects.</div><div>(The color value set in actors property only takes effect when where is no scalar data available to the actors mapper.)</div>
<div><br></div><div>tileMapper-&gt;ScalarVisibilityOff();</div><div><br></div><div>best regards.</div><div><br></div><div><br><div class="gmail_quote">On 7 October 2010 15:01, Gib Bogle <span dir="ltr">&lt;<a href="mailto:g.bogle@auckland.ac.nz">g.bogle@auckland.ac.nz</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">This must have a very simple answer.  I am creating a mapper (tileMapper) to render a polygon, using the same code as in the Wiki example polygon.cxx.  I expect to be able to set the color when I create an actor:<br>

<br>
double tileColor[] = {0.5, 0.5, 0.0};<br>
actor = vtkActor::New();<br>
actor-&gt;SetMapper(tileMapper);<br>
actor-&gt;GetProperty()-&gt;SetColor(tileColor);<br>
<br>
but it doesn&#39;t work.  The tile always displays with the color that was set when the PolyData used by tileMapper was created:<br>
<br>
polygonPolyData-&gt;GetCellData()-&gt;SetScalars(colors);<br>
<br>
The method I&#39;m using (unsuccessfully) to set the color is the same I use with other mappers, created using vtkSphereSource, for example.<br>
<br>
How should I be doing it?<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>