[vtkusers] conversion of unstrucuredgrid to polydata (for using the QuantizePolyDataPoints filter)
David Doria
daviddoria at gmail.com
Sun Apr 17 18:22:03 EDT 2011
On Sun, Apr 17, 2011 at 6:15 PM, luca penasa <luca.penasa at gmail.com> wrote:
> Thank you David for your answer...
> I have another problem now:
> I applied the polydata quantization filter.
> the filter works as aspected but i see that it merges duplicated points.
> Is there any way to know what are the ids of points (of the original cloud)
> that contributed to a given point of the filter's output??
> The best solution would be NOT to merge duplicated points, is this possible?
You can use the IdFilter to generate an array with the original ids
which will go along for the ride on the points which are passed
through:
http://www.itk.org/Wiki/VTK/Examples/Cxx/PolyData/PointCellIds
You might also look at the tolerance functions of the superclass of
the quantization filter:
http://www.vtk.org/doc/nightly/html/classvtkCleanPolyData.html
David
More information about the vtkusers
mailing list