<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>&nbsp;</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-&gt;SetInput(myPolydata);<BR>vtkActor *actor = vtkActor::New();<BR>actor-&gt;SetMapper(mapper);<BR>actor-&gt;GetProperty()-&gt;SetColor(1,1,1);</DIV>
<DIV>&nbsp;</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>&nbsp;</DIV>
<DIV>&nbsp;</DIV></td></tr></table><br>