[vtkusers] Cell Picking -> Deletion -> Updating... Problem with new id's

matheus_viana vianamp at gmail.com
Fri Jun 12 06:24:19 EDT 2015

Hi guys, I found the problem. Actually I was deleting the correct cells and
bunch of others just because I forgot to clean the vector CellsToDelete
after deleting the cells.

Correct code:


    for (int c = 0; c < CellsToDelete.size(); c++) {

      PolyData -> BuildLinks();
      PolyData -> DeleteCell(CellsToDelete[c]);
      PolyData -> RemoveDeletedCells();
      PolyData -> Modified();

*    CellsToDelete.clear();*


View this message in context: http://vtk.1045678.n5.nabble.com/Cell-Picking-Deletion-Updating-Problem-with-new-id-s-tp5732305p5732306.html
Sent from the VTK - Users mailing list archive at Nabble.com.

More information about the vtkusers mailing list