[vtkusers] Getting the original cell id'sfrom vtkExtractUnstructuredGrid
Sarah Macumber
S.Macumber at QuestReliability.com
Wed Jul 23 11:14:49 EDT 2008
Hey Bryn,
I tried to use that filter but it was unclear how to extract the actual ID's as the GetPointIds( ) function enables or disables the setting of point ID's but does not return an actual vtkIDList.
I was able to accomplish what I wanted by setting the Pedgree ID's of my unstructured grid, those ID's hang around even after you've run algorithms and filters.
Cheers,
Sarah
________________________________
From: vtkusers-bounces at vtk.org on behalf of Bryn Lloyd
Sent: Wed 7/23/2008 2:14 AM
To: vtkusers at vtk.org
Subject: Re: [vtkusers] Getting the original cell id'sfrom vtkExtractUnstructuredGrid
Hi Sarah,
A simple method is to use the vtkIdFilter before you extract a
region/surface/whatever.
http://www.vtk.org/doc/nightly/html/classvtkIdFilter.html
Cheers, Bryn
Sarah Macumber wrote:
> Hi all,
>
> Is there anyway to get the original cell & point ID's from vtkExtractUnstructuredGrid which returns a new vtkUnstructuredGrid? For example if you extract the cells using extents in the middle of your dataset how can you find out what those cell & point ID's are? They get re-ordered in the new grid. I am not doing extraction via graphical selection so I need to use global cordinates to do my extraction & then get back an ID list of the cells.
>
> Any help is appreciated, Sarah
> _______________________________________________
> 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
>
--
-------------------------------------------------
Bryn Lloyd
Computer Vision Laboratory
ETH Zürich, Sternwartstrasse 7
CH - 8092 Zürich, Switzerland
Tel: +41 44 63 27690
Fax: +41 44 63 21199
-------------------------------------------------
_______________________________________________
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