<div dir="ltr">As David said, the pipeline looks fine. There must be some problem with your polydata.<br><br>Jothy<br><br><div class="gmail_quote">On Mon, Sep 19, 2011 at 10:46 PM, nuno.jf <span dir="ltr"><<a href="mailto:nunofernandes7@gmail.com">nunofernandes7@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I tried passing the polydata through vtkTriangleFilter before applying<br>
smoothing, but I got the same error.<br>
I attached the source file I'm using:<br>
<a href="http://vtk.1045678.n5.nabble.com/file/n4820603/test.txt" target="_blank">http://vtk.1045678.n5.nabble.com/file/n4820603/test.txt</a> test.txt<br>
I don't understand why does happens.<br>
<br>
//Read polydata<br>
vtkPolyDataReader * imp1 = vtkPolyDataReader::New();<br>
imp1 -> SetFileName(argv[1]);<br>
imp1 -> Update();<br>
I tried<br>
<br>
vtkPolyData * polydata= vtkPolyData::New();<br>
polydata= imp1 -> GetOutput();<br>
polydata-> Update();<br>
<br>
//vtkTriangleFilter<br>
vtkTriangleFilter * teste = vtkTriangleFilter::New();<br>
teste -> SetInput(polydata);<br>
teste -> Update();<br>
<br>
//WindowedSincPolyDataFilter<br>
vtkWindowedSincPolyDataFilter * smoother =<br>
vtkWindowedSincPolyDataFilter::New();<br>
<br>
smoother->SetInput(teste->GetOutput());<br>
smoother->SetNumberOfIterations(20);<br>
smoother->SetPassBand(0.1);<br>
smoother->Update();<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Find-closest-point-tp4816065p4820603.html" target="_blank">http://vtk.1045678.n5.nabble.com/Find-closest-point-tp4816065p4820603.html</a><br>
</font><div><div></div><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Jothybasu K Selvaraj<br>PhD Student<br>University of Liverpool<br>Liverpool,UK<br></div><br>
</div>