Re: [Paraview] Creating cells

2011-12-13 Thread Fred Fred
Ok I understand, many thanks. Date: Tue, 13 Dec 2011 08:04:16 +0100 From: jerome.ve...@kitware.com To: stan1...@hotmail.fr CC: paraview@paraview.org Subject: Re: [Paraview] Creating cells Hi, GetCell(...) is intended for internal use (see the doxygen

Re: [Paraview] Creating cells

2011-12-12 Thread Jerome Velut
Hi, GetCell(...) is intended for internal use (see the doxygen documentation) where loc is not the cell id, but an offset in the internal array. Using InitTraversal together with GetNextCell instead would be easier. HTH Jerome On 12/12/2011 06:19 PM, Fred Fred wrote: Hello, I have been rea

[Paraview] Creating cells

2011-12-12 Thread Fred Fred
Hello,I have been reading and reading this piece of code but cannot figure out what is wrong!I create a couple of cells of 4 ids and get...anything but what is expected.Please tell me where I am wrong! vtkCellArray *faces = vtkCellArray::New(); vtkIdList *fIds = vtkIdList::New(); for (int i