<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi all vtk users,</DIV>
<DIV>Can someone tell me how to modify the color of a polydata?</DIV>
<DIV>In fact, i have a polydata (a VRML object) which i should display on a window. When i read this file, the object is grey but i want to change its color on white. </DIV>
<DIV> </DIV>
<DIV>I use this the code below but i have a 'blue' object for each value of 'SetColor()':</DIV>
<DIV>vtkPolyDataMapper *mapper = vtkPolyDataMapper::New();<BR>mapper->SetInput(myPolydata);<BR>vtkActor *actor = vtkActor::New();<BR>actor->SetMapper(mapper);<BR>actor->GetProperty()->SetColor(1,1,1);</DIV>
<DIV> </DIV>
<DIV>Is there something to modify in this code or the code source of the VRML file?</DIV>
<DIV>Thank you for your help.</DIV>
<DIV> </DIV>
<DIV> </DIV></td></tr></table><br>