[vtkusers] vtkActor Set Color Method

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Sun Jul 7 00:08:12 EDT 2002


>>>>> "CB" == Chris Boehnen <cboehnen at nd.edu> writes:

    CB> In the VTK Users guide it discusses the setcolor
    CB> (vtkActor->SetColor(1,1,1)) to set color, I'm using VTK 4.0
    CB> but I don't seem to have that function.  Anyone have any
    CB> ideas?  Thanks

try this instead:

vtkActor->GetProperty()->SetColor(1,1,1);

prabhu



More information about the vtkusers mailing list