[vtkusers] Find closest point

Jothy jothybasu at gmail.com
Tue Sep 20 04:58:19 EDT 2011


As David said, the pipeline looks fine. There must be some problem with your
polydata.

Jothy

On Mon, Sep 19, 2011 at 10:46 PM, nuno.jf <nunofernandes7 at gmail.com> wrote:

> I tried passing the polydata through vtkTriangleFilter before applying
> smoothing, but I got the same error.
> I attached the source file I'm using:
> http://vtk.1045678.n5.nabble.com/file/n4820603/test.txt test.txt
> I don't understand why does happens.
>
> //Read polydata
> vtkPolyDataReader * imp1 = vtkPolyDataReader::New();
> imp1 -> SetFileName(argv[1]);
> imp1 -> Update();
> I tried
>
> vtkPolyData * polydata= vtkPolyData::New();
> polydata= imp1 -> GetOutput();
> polydata-> Update();
>
> //vtkTriangleFilter
> vtkTriangleFilter * teste = vtkTriangleFilter::New();
> teste -> SetInput(polydata);
> teste -> Update();
>
> //WindowedSincPolyDataFilter
> vtkWindowedSincPolyDataFilter * smoother =
> vtkWindowedSincPolyDataFilter::New();
>
> smoother->SetInput(teste->GetOutput());
> smoother->SetNumberOfIterations(20);
> smoother->SetPassBand(0.1);
> smoother->Update();
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Find-closest-point-tp4816065p4820603.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
Jothybasu K Selvaraj
PhD Student
University of Liverpool
Liverpool,UK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110920/8a111d1b/attachment.htm>


More information about the vtkusers mailing list