[vtkusers] vtkExtractGeometry linking to original polydata ID

Hong Yi hongyi at renci.org
Thu Apr 14 11:23:06 EDT 2011


Thanks for the helpful tip and pointer, David. It works like a champ now. 

Thanks again,

Hong 

-----Original Message-----
From: David Doria [mailto:daviddoria at gmail.com] 
Sent: Thursday, April 14, 2011 10:58 AM
To: Hong Yi
Cc: VTK Users
Subject: Re: [vtkusers] vtkExtractGeometry linking to original polydata ID

On Thu, Apr 14, 2011 at 10:55 AM, Hong Yi <hongyi at renci.org> wrote:
> Hello,
>
>
>
> I have used vtkExtractGeometry class to extract a portion of polydata 
> within a cube successfully. I am currently investigating to get the 
> original IDs of extracted points to display to the user so that the 
> user can link the extracted points to original data. Could someone 
> give me a hint on how to do this?

You can use the IdFilter to generate an array with the IDs which will go along for the ride in the ExtractGeometry filter.

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

David



More information about the vtkusers mailing list