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

hongsongyang hongsongyang at 163.com
Mon Jul 29 03:16:51 EDT 2013


Oh, I have got the solution for this issue. 

Thanks a lot.

 

  _____  

发件人: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] 代表
hongsongyang
发送时间: Monday, July 29, 2013 11:41 AM
收件人: vtkusers at vtk.org
主题: [vtkusers] [VTKUsers] How to change the color of the contour line?

 

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/bbdcb0cb/attachment.htm>


More information about the vtkusers mailing list