[vtkusers] How to get id of cells?

David E DeMarle dave.demarle at kitware.com
Tue Dec 4 08:12:04 EST 2007

Ids should be put into the source vtkUnstructuredGrid. They should be
of type vtkIdType, have a unique value for each cell or point, and
preferably be flagged as the GLOBAL_IDS in vtkDataSetAttributes. Doing
this last step makes filters ignore them when they do interpolation.
After vtkExtractGeometry, ask for the GLOBAL_IDS array values for each
cell and or point to see where each output cell or point came from in
the input.

Dave DeMarle

On 12/4/07, czzcsc <czzcsc at 163.com> wrote:
> Hi everyone,
> I have created my vtkUnstructuredGrid dataset, and I can extract cells from
> my dataset
> by vtkAreaPicker and vtkExtractGeometry. How can I get the id of the
> extracted cells?
> Thanks
>  ________________________________
>  快乐下载,赢取大奖! 感受全新世界,感受新的生活!
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

More information about the vtkusers mailing list