[vtkusers] Getting cell ids that build surface of an unstructured grid
Marcus Stojek
stojek at part-gmbh.de
Tue Jun 3 08:30:55 EDT 2003
Hi,
I'm using vtk 4.0 with python.
>From an unstructured grid I need the cell ids of the cells that
build the surface of the grid.
I have:
self.grid = vtkUnstructuredGrid()
blabla...
self.gfilter=vtkGeometryFilter()
self.gfilter.SetInput(self.grid)
self.gfilter.Update()
test=vtkFloatArray()
self.gfilter.GetOutput().GetPolys().GetData().GetData(0,300,0,0,test)
giving me a list of the surface triangles and quads using node ids.
But I need the CELL ids. I have played with BuildLinks and vtkCellLinks
but somehow I can't make it work.
Any help?
Thanks in advance,
Marcus
More information about the vtkusers
mailing list