[vtkusers] Delete Cell

Vinayak Datir vinayakd at sungrace-group.com
Tue Jul 24 00:04:51 EDT 2007


Thanks Vladimir. vtkExtractCells filter works out for me.

Thanks.
Vinayak.

-----Original Message-----
From: vtkusers-bounces+vinayakd=sungrace-group.com at vtk.org
[mailto:vtkusers-bounces+vinayakd=sungrace-group.com at vtk.org] On Behalf Of
Vladimir Lazunin
Sent: Monday, July 23, 2007 5:58 AM
To: vtkusers at vtk.org
Subject: Re: [vtkusers] Delete Cell

I think there's no way to do that directly. The reason is, probably, that
all the cells are enumerated, so if you remove a particular single cell,  
you
have to re-index all cells after it in the data structure.

The easiest way I've found so far is to use vtkExtractCells filter to  
extract
all cells, except those you want to remove, into a new dataset.

Alternatively, you can apply a dirty hack by edge-collapsing your cell  
first, so
it disappears visually, then use some cleaning filter to actually remove  
it.

On Fri, 20 Jul 2007 18:17:42 +0900, Vinayak Datir  
<vinayakd at sungrace-group.com> wrote:

> Hi All,
>
>           Is there any method to delete particular cell from data set.
>
>
> Thanks.
>
> Vinayak
>


_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list