<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->SetName("Coat");
<dd>iaColorPart->SetName("Part");<br><br>
<dd>... code to get data here<br><br>
<dd>fdFoo->AddArray(iaColorCoat);
<dd>fdFoo->AddArray(iaColorPart);
<dd>pdFacet->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> </x-tab>actorFoo->GetMapper()->ColorByArrayComponent("Coat",0);<br><br>
</font>How do I make this work?<br><br>
Thanks,<br>
Scott<br><br>
<br>
<font face="Courier New, Courier"> <br>
</font></html>