<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Thank you Amy for your help.</DIV>
<DIV>I tried this code line but that doesn't work: the polydata is not 'blue' but it stills with its original color (no modification was applied)<BR><BR>--- En date de&nbsp;: <B>Mer 19.11.08, Amy Squillacote <I>&lt;ahs@cfdrc.com&gt;</I></B> a écrit&nbsp;:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">De: Amy Squillacote &lt;ahs@cfdrc.com&gt;<BR>Objet: Re: [vtkusers] Can't modify the color of the actor even with 'SetColor' fucntion<BR>À: nourmestiri@yahoo.fr<BR>Cc: "vtk" &lt;vtkusers@vtk.org&gt;<BR>Date: Mercredi 19 Novembre 2008, 19h22<BR><BR><PRE>Try calling mapper-&gt;ScalarVisibilityOff();

- Amy

Nour Mestiri wrote:
&gt; Hi all vtk users,
&gt; Can someone tell me how to modify the color of a polydata?
&gt; 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.
&gt;  I use this the code below but i have a 'blue' object for each
value of 'SetColor()':
&gt; vtkPolyDataMapper *mapper = vtkPolyDataMapper::New();
&gt; mapper-&gt;SetInput(myPolydata);
&gt; vtkActor *actor = vtkActor::New();
&gt; actor-&gt;SetMapper(mapper);
&gt; actor-&gt;GetProperty()-&gt;SetColor(1,1,1);
&gt;  Is there something to modify in this code or the code source of the VRML
file?
&gt; Thank you for your help.
&gt;   
&gt; 
&gt; ------------------------------------------------------------------------
&gt; 
&gt; _______________________________________________
&gt; This is the private VTK discussion list.
&gt; Please keep messages on-topic. Check the FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
&gt; Follow this link to subscribe/unsubscribe:
&gt; http://www.vtk.org/mailman/listinfo/vtkusers
&gt;   

-- Amy Squillacote                    Phone: (256) 726-4839
Computer Scientist                 Fax: (256) 726-4806
CFD Research Corporation           Web: http://www.cfdrc.com
215 Wynn Drive, Suite 501
Huntsville, AL  35805


</PRE></BLOCKQUOTE></td></tr></table><br>