[vtkusers] vtkCellArray in python

David Gobbi david.gobbi at gmail.com
Thu Jan 20 09:41:34 EST 2011


On Thu, Jan 20, 2011 at 5:50 AM, igorznt <igorznt at gmail.com> wrote:
>
> Thanks. Do you know another way  i can acess this data? I am developing a
> polydata algorithm, without that is really difficult.

You can call GetData() on the cell array to access the IDs as a
regular vtkDataArray.  The layout of the data array will be:

[cell0_npts cell0_pt0 cell0_pt1 ... cell1_npts cell1_pt0 cell1_pt1 ...
cell2_npts ... ]

It won't be as convenient as a cell array, but you will still be able
to access all the informatiion.

 - David



More information about the vtkusers mailing list