<div>Hello,</div>
<div> </div>
<div>I use vtkDataSetSurfaceFilter to display filled contours. But it doesn&#39;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&lt;vtkThreshold&gt; bthr = vtkSmartPointer&lt;vtkThreshold&gt;::New();<br>bthr-&gt;SetInputConnection( thr-&gt;GetOutputPort() );<br>bthr-&gt;ThresholdByLower( BAD_VALUE );</div>
<div> </div>
<div>vtkSmartPointer&lt;vtkDataSetSurfaceFilter&gt; surfFilter = vtkSmartPointer&lt;vtkDataSetSurfaceFilter&gt;::New();<br>surfFilter-&gt;SetInputConnection( bthr-&gt;GetOutputPort() );</div>
<div> </div>
<div>vtkSmartPointer&lt;vtkPolyDataMapper&gt; surfMapper = vtkSmartPointer&lt;vtkPolyDataMapper&gt;::New();</div>
<div>surfMapper-&gt;SetInputConnection( surfFilter-&gt;GetOutputPort() );</div>
<div> </div>
<div>fillActor = vtkActor::New();</div>
<div>fillActor-&gt;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>