[vtkusers] color and vtkFeatureEdges

Kevin Wright krw at viz-solutions.com
Tue Mar 5 14:51:27 EST 2002


At 11:48 AM 3/5/2002 -0800, you wrote:
>Hi,
>
>I'm trying to give the edges of my actors a different color, so to do this
>I'm using vtkFeatureEdges.  I select only the boundary edges, and set the
>color of the edges in the actor.  However, the color only appears on one
>side of the edges -- when I rotate the object, the other side is black.
>Has anyone encountered this problem?  Any idea what is happening?

I believe that if you have the default lighting on a set of lines, that the 
backside can end up black.  If you turn diffuse lighting on the actor to 
0.0 and ambient lighting to 1.0, you should get both sides of the line 
showing up fine.

Kevin.





More information about the vtkusers mailing list