<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. But I creates poly data in a class other than the class that creates actors. I would like to let poly data object to carry the color information. Is it possible to specify one color for the entire poly data? I don't need to specify color for each point or cell, etc.<BR>
<BR>
Thanks!<BR><BR>Xiaofeng Z<BR><BR><BR> <BR>> Date: Wed, 21 Apr 2010 15:06:16 +0100<BR>> From: jballesteros@motivando.me<BR>> To: xf10036@hotmail.com<BR>> CC: vtkusers@vtk.org<BR>> Subject: Re: [vtkusers] Specify color of a vtkPolyData object<BR>> <BR>> Hi,<BR>> <BR>> The easiest way is by setting the associated actor color, e.g. <BR>> Actor->GetProperty()->SetColor(r,g,b);<BR>> <BR>> Take a look in the doxygen doc:<BR>> <BR>> http://www.vtk.org/doc/release/5.4/html/a01322.html<BR>> <BR>> <BR>> <BR>> Xiaofeng Z wrote:<BR>> > Hello,<BR>> > <BR>> > I'd like to know what's an easy way to specify the color of a vtkPolyData.<BR>> > <BR>> > Thanks!<BR>> > <BR>> > Xiaofeng Z<BR>> > <BR>> > <BR>> > <BR>> > ------------------------------------------------------------------------<BR>> > The New Busy think 9 to 5 is a cute idea. Combine multiple calendars <BR>> > with Hotmail. Get busy. <BR>> > <http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5><BR>> > <BR>> > <BR>> > ------------------------------------------------------------------------<BR>> > <BR>> > _______________________________________________<BR>> > Powered by www.kitware.com<BR>> > <BR>> > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<BR>> > <BR>> > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<BR>> > <BR>> > Follow this link to subscribe/unsubscribe:<BR>> > 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>