<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
I like to have an effect of coloring the actor, except I don't want to carry the color information seperately (to the class that creates the actor).&nbsp; I'd rather let the polydata to carry the color information to the rendering class.&nbsp; On the other hand, I don't want to specify each point or cell in the poly data.&nbsp; That&nbsp;would be&nbsp;an overkill.&nbsp; I just want to specify one place in the polydata a color and it will be rendering accordingly.&nbsp; Is that possible?<BR>
&nbsp;<BR>
Many thank!<BR><BR>Xiaofeng Z<BR><BR><BR>&nbsp;<BR>&gt; Date: Wed, 21 Apr 2010 10:05:35 -0400<BR>&gt; Subject: Re: [vtkusers] Specify color of a vtkPolyData object<BR>&gt; From: daviddoria+vtk@gmail.com<BR>&gt; To: xf10036@hotmail.com<BR>&gt; CC: vtkusers@vtk.org<BR>&gt; <BR>&gt; On Wed, Apr 21, 2010 at 10:02 AM, Xiaofeng Z &lt;xf10036@hotmail.com&gt; wrote:<BR>&gt; &gt; Hello,<BR>&gt; &gt;<BR>&gt; &gt; I'd like to know what's&nbsp;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; <BR>&gt; Do you want to color all of the cells? All of the points? The actor?<BR>&gt; <BR>&gt; Search for "color" on this page:<BR>&gt; http://www.vtk.org/Wiki/VTK/Examples<BR>&gt; <BR>&gt; and you will mind many examples of how to color things.<BR>&gt; <BR>&gt; Thanks,<BR>&gt; <BR>&gt; David<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>