[vtkusers] vtkExtractGeometry linking to original polydata ID

David Doria daviddoria at gmail.com
Thu Apr 14 10:58:02 EDT 2011


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