<html>
VTK Gurus:<br><br>
I want to color the polygons in a vtkActor using the
ColorByArrayComponent method. My code looks something like this:<br>

<dl><font face="Courier New, Courier">
<dd>vtkIntArray *iaColorCoat, *iaColorPart;
<dd>vtkFieldData *fdFoo;
<dd>vtkPolyData *pdFacet;<br><br>

<dd>iaColorCoat-&gt;SetName(&quot;Coat&quot;);
<dd>iaColorPart-&gt;SetName(&quot;Part&quot;);<br><br>

<dd>... code to get data here<br><br>

<dd>fdFoo-&gt;AddArray(iaColorCoat);
<dd>fdFoo-&gt;AddArray(iaColorPart);
<dd>pdFacet-&gt;SetFieldData(fdFoo);<br><br>

<dd>... code to step through the PolyDataCollection, add mappers, and add
actors to ActorCollection<br><br>
</font>
</dl>Later I want to do something like this:<br><br>
<font face="Courier New, Courier"><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>actorFoo-&gt;GetMapper()-&gt;ColorByArrayComponent(&quot;Coat&quot;,0);<br><br>
</font>How do I make this work?<br><br>
Thanks,<br>
Scott<br><br>
<br>
<font face="Courier New, Courier">&nbsp; <br>
</font></html>