[vtkusers] vtkPolyDataConnectivityFilter

David Doria daviddoria at gmail.com
Fri Jan 6 09:45:20 EST 2012


Please keep the discussion on the mailing list.

David



On Fri, Jan 6, 2012 at 9:44 AM, Li, Wen <wen-li at uiowa.edu> wrote:
> Yes. Sorry for the typo.
>
> vtkIdFilter sounds like a good solution to this.
> Thank you, David.
>
> Wen
>
> On Jan 6, 2012, at 7:03 AM, David Doria wrote:
>
>> 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