[vtkusers] vtkConnectivityPolyDataFilter

David Doria daviddoria at gmail.com
Fri Jan 6 08:03:26 EST 2012


On Thu, Jan 5, 2012 at 10:58 PM, Li, Wen <wen-li at uiowa.edu> wrote:
>
> Hey all,
>
> Please tell me if i understand the filter wrong.
> This filter keeps the same number of points from input to output.
> But the point Ids are completely different for a physical point, as shown in the attachment.
>
> I will be nice if they (points) can keep the same Ids, otherwise i don't understand why the output (right) keeps the whole set of points from input (left) with it.
>
> Best,
> Wen


You mean vtkPolyDataConnectivityFilter  right?

I have not reproduced it, but that does seem like annoying behavior.
As a quick fix, you could use vtkIdFilter before the filter, and then
use this array to relabel the points.

http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PointCellIds

David



More information about the vtkusers mailing list