<div>Hi Luca and Fritz,</div>
<div> </div>
<div>Thanks for pointing out the input to smooth->SetInput(). I just tried to input the polydata object directly to the smoother, but I got an error from the vtkOutputWindow:</div>
<div> </div>
<div>C:\VTK\VTK\Common\vtkObject.cxx, line 131<br>vtkObject: Destructing!<br> </div>
<div>Then the program stopped running. Could anybody spot what is going wrong? </div>
<div> </div>
<div>Thanks,</div>
<div>Ming<br><br> </div>
<div><span class="gmail_quote">On 11/21/06, <b class="gmail_sendername">Fritz Mielert</b> <<a href="mailto:fritz.mielert@napshell.com">fritz.mielert@napshell.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Ming!<br>> vtkSmoothPolyDataFilter* smooth = vtkSmoothPolyDataFilter::New();<br>> smooth->SetInput( ????? ->GetOutput()); // what to replace with
<br>> ????? is it my vtkPolyData object?<br>If you've got the pure object you don't need GetOutput.<br>You only need GetOutput if the pdata comes from a function you've uses<br>before<br>i.e.<br>vtkPolyDataReader* reader = vtkPolyDataReader::New();
<br>reader->SetSomeKindOfPath("myString");<br>vtkSmoothPolyDataFilter* smooth = vtkSmoothPolyDataFilter::New();<br>smooth->SetInput(reader->GetOutput());<br><br>Otherwise it goes like this:<br>vtkSmoothPolyDataFilter* smooth = vtkSmoothPolyDataFilter::New();
<br>smooth->SetInput(myPolyDataObject);<br><br>bye<br><br>fritz<br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br>