[vtkusers] delete a cell (or point)

David Doria daviddoria at gmail.com
Tue Nov 16 07:52:48 EST 2010


On Tue, Nov 16, 2010 at 4:50 AM, Bill Chivas <billno123 at hotmail.com> wrote:
> Hello all,
>
> is there an efficient way to delete an element from a grid? One could say
> "just rebuild a new grid with the rest of the cells".
> Imagine i have a very large grid, for example 5 million cells. It's very
> inefficient.
> So, is there any other way to delete a cell (or a point) from a grid apart
> from building a new grid with the remaining cells (or points)?
> If not, any tricks for optimization the current "solution" of re-building
> the grid?
>
> Thanks

Did you try ExtractSelection with the inverse of the selection of the
points to delete?

http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ExtractCellsUsingPoints

David



More information about the vtkusers mailing list