[vtkusers] [VTKUsers] How to change the color of the contour line?

hongsongyang hongsongyang at 163.com
Sun Jul 28 23:41:00 EDT 2013


Dear all,

I have a question about the colors of the contour lines.

When I use the vtkContourFilter as follow:

 

vtkContourFilter contours

  contours SetInputConnection [extract GetOutputPort]

  contours GenerateValues 2  0  100

 

There will be 2 contour lines generated, the 1st line color will always be
BLUE, and the 

Second line color will always be RED.

 

How could I change the contour line color manually?

 

Thanks a lot.

 

Best regards,

Hongsongyang.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130729/dbc09896/attachment.htm>


More information about the vtkusers mailing list