<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Thanks for your response.&nbsp; But I creates poly data in a class other than the class that creates actors.&nbsp; I would like to let poly data object to carry the color information.&nbsp; Is it possible to specify one color for the entire poly data?&nbsp; I don't need to specify color for each point or cell, etc.<BR>
&nbsp;<BR>
Thanks!<BR><BR>Xiaofeng Z<BR><BR><BR>&nbsp;<BR>&gt; Date: Wed, 21 Apr 2010 15:06:16 +0100<BR>&gt; From: jballesteros@motivando.me<BR>&gt; To: xf10036@hotmail.com<BR>&gt; CC: vtkusers@vtk.org<BR>&gt; Subject: Re: [vtkusers] Specify color of a vtkPolyData object<BR>&gt; <BR>&gt; Hi,<BR>&gt; <BR>&gt; The easiest way is by setting the associated actor color, e.g. <BR>&gt; Actor-&gt;GetProperty()-&gt;SetColor(r,g,b);<BR>&gt; <BR>&gt; Take a look in the doxygen doc:<BR>&gt; <BR>&gt; http://www.vtk.org/doc/release/5.4/html/a01322.html<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; Xiaofeng Z wrote:<BR>&gt; &gt; Hello,<BR>&gt; &gt; <BR>&gt; &gt; I'd like to know what's an easy way to specify the color of a vtkPolyData.<BR>&gt; &gt; <BR>&gt; &gt; Thanks!<BR>&gt; &gt; <BR>&gt; &gt; Xiaofeng Z<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; ------------------------------------------------------------------------<BR>&gt; &gt; The New Busy think 9 to 5 is a cute idea. Combine multiple calendars <BR>&gt; &gt; with Hotmail. Get busy. <BR>&gt; &gt; &lt;http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&amp;ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5&gt;<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; ------------------------------------------------------------------------<BR>&gt; &gt; <BR>&gt; &gt; _______________________________________________<BR>&gt; &gt; Powered by www.kitware.com<BR>&gt; &gt; <BR>&gt; &gt; Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<BR>&gt; &gt; <BR>&gt; &gt; Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<BR>&gt; &gt; <BR>&gt; &gt; Follow this link to subscribe/unsubscribe:<BR>&gt; &gt; http://www.vtk.org/mailman/listinfo/vtkusers<BR>                                               <br /><hr />The New Busy is not the old busy. Search, chat and e-mail from your inbox. <a href='http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3' target='_new'>Get started.</a></body>
</html>