<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). I'd rather let the polydata to carry the color information to the rendering class. On the other hand, I don't want to specify each point or cell in the poly data. That would be an overkill. I just want to specify one place in the polydata a color and it will be rendering accordingly. Is that possible?<BR>
<BR>
Many thank!<BR><BR>Xiaofeng Z<BR><BR><BR> <BR>> Date: Wed, 21 Apr 2010 10:05:35 -0400<BR>> Subject: Re: [vtkusers] Specify color of a vtkPolyData object<BR>> From: daviddoria+vtk@gmail.com<BR>> To: xf10036@hotmail.com<BR>> CC: vtkusers@vtk.org<BR>> <BR>> On Wed, Apr 21, 2010 at 10:02 AM, Xiaofeng Z <xf10036@hotmail.com> 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>> Do you want to color all of the cells? All of the points? The actor?<BR>> <BR>> Search for "color" on this page:<BR>> http://www.vtk.org/Wiki/VTK/Examples<BR>> <BR>> and you will mind many examples of how to color things.<BR>> <BR>> Thanks,<BR>> <BR>> 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>