<div>Hello,</div>
<div> </div>
<div>I use vtkDataSetSurfaceFilter to display filled contours. But it doesn't produce the smooth contour as shown in the image below.</div>
<div> </div>
<div>Following is my piece of code:</div>
<div> </div>
<div>vtkSmartPointer<vtkThreshold> bthr = vtkSmartPointer<vtkThreshold>::New();<br>bthr->SetInputConnection( thr->GetOutputPort() );<br>bthr->ThresholdByLower( BAD_VALUE );</div>
<div> </div>
<div>vtkSmartPointer<vtkDataSetSurfaceFilter> surfFilter = vtkSmartPointer<vtkDataSetSurfaceFilter>::New();<br>surfFilter->SetInputConnection( bthr->GetOutputPort() );</div>
<div> </div>
<div>vtkSmartPointer<vtkPolyDataMapper> surfMapper = vtkSmartPointer<vtkPolyDataMapper>::New();</div>
<div>surfMapper->SetInputConnection( surfFilter->GetOutputPort() );</div>
<div> </div>
<div>fillActor = vtkActor::New();</div>
<div>fillActor->SetMapper( surfMapper );</div>
<div> </div>
<div> </div>
<div>Using the above code, I do get the filled contours but there is clear cut difference between two different shades of colors. Not like the one shown in the attachment. How can I get the output as shown in the attachment? Many be use some sort of shaders??</div>
<div> </div>
<div>Thanks in advance</div>
<div> </div>
<div>Regards</div>
<div>Rakesh Patil</div>