[vtkusers] interactively and really deleting cells

Goodwin Lawlor goodwin.lawlor.lists at gmail.com
Fri Sep 7 10:49:16 EDT 2012


On Wed, Sep 5, 2012 at 12:46 AM, Tasnim <hanene-jeder at hotmail.fr> wrote:

> Hi  vtkUsers,
> I have a mesh, when i pick in the mesh, i will retrieve some CellId. Now, i
> want to delete , really those cells from my mesh, i tried by using this:
>
>
> polydata= reader->GetOutput();
> for (vtkIdType i=0, i<10; i++)
> {
> polydata->RemoveCellReference(j);
>                         polydata->DeleteCell(j);
>                         polydata->Modified();
>                         polydata->Update();
>                         polydata->RemoveDeletedCells();
>                         polydata->Update();
> }
> But nothing is happening. Any Help pleaaase,
> regards,
> Tasnim
>
>
Hi Tasnim,

Have a look at this class (and its superclass):

http://vtkbioeng.cvs.sourceforge.net/viewvc/vtkbioeng/vtkbioeng/vtkRemoveCellsFilter.cxx?view=markup

http://vtkbioeng.cvs.sourceforge.net/viewvc/vtkbioeng/vtkbioeng/vtkRemoveCellsFilter.h?view=markup


In the vtkbioeng library.

Goodwin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120907/d3f80352/attachment.htm>


More information about the vtkusers mailing list