[vtkusers] Pick & delete cell

David Doria daviddoria at gmail.com
Mon Feb 25 15:27:20 EST 2013


On Mon, Feb 25, 2013 at 2:34 PM, Massinissa Bandou <
Massinissa.Bandou at usherbrooke.ca> wrote:

> Hi David,
>
> "Do you mean you're starting with a vtkPolyData and you want to end up with
> a vtkPolyData?"
>
> If it's possible, why not?  I started with a vtkPolyData (vtkPolyData*
> Data)
> and I was looking for a way to delete the selected cells, so I thought to
> do
> it with a member function called RemoveDeletedCells ().
> I have the following code to select/deselect cells with Left/Right mouse
> and
> It works. But I'm still struggling to find out how to delete selected cells
> and keep the same topology without using decimation
>

Did you try vtkExtractSelection on the vtkPolyData directly as I suggested?

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130225/8cc292d9/attachment.htm>


More information about the vtkusers mailing list