<div dir="ltr"><div><div><div>Hi,<br><br></div>I'm trying to get the Cells out of a PolyData. So far I've done this:<br><br>              vtkCellArray Cellarray = new vtkCellArray();<br>              Cellarray = polys.GetPolys(); //where polys is a vtkpolydata instance<br>
              int numcells = Cellarray.GetNumberOfCells(); //I get the number of cells, I want to iterate through each cell..<br><br></div>I've done this:<br>              vtkIdList idlist = new vtkIdList();<br>              <br>
              Cellarray.InitTraversal();<br><br>              for (int j = 0; j < polys.GetNumberOfPolys(); j++)<br>              {<br>                  Cellarray.GetNextCell(idlist);<br>                  <br>                  double a = idlist.GetId(0);<br>
                  double b = idlist.GetId(1);<br>                  double c = idlist.GetId(2);<br>              }<br></div>but I don't get the points in the cell, what I'm doing wrong?<br></div>