[vtkusers] deleting cells

Goodwin Lawlor goodwin.lawlor at ucd.ie
Sun Dec 21 10:35:07 EST 2003


I've got a class that probably does what you want... its here:

http://www.bioengineering-research.com/vtk/vtkRemoveCellsFilter.htm

HTH

Goodwin
University College Dublin
> Date: Thu, 18 Dec 2003 17:36:12 -0800
> To: vtkusers at vtk.org
> From: Michael Bonner <bonner10 at llnl.gov>
> Subject: [vtkusers] deleting cells
>
>
> users,
>
> I am trying to delete a cell w/ picking (i.e. based on the cell id); what
> is the best way to do this? I would like to save the information that is
> deleted so I can later restore it.
>
> Currently I am trying to create a new vtkUnstructuredGrid object, and
> inserting (InsertNextCell) only the cells that I want to save from the old
> obj. into this new instance. This seems to be a lot of work, especially
> because their is no sequential access to the vtkUnstructuredGrid obj.
(i.e.
> GetCell(int cellid) is random access) that matches InsertNextCell (which
is
> sequential). Is their an efficient way to remove a single cell from an
> unstructured grid? If their isnt is their an efficient way (not DeepCopy
> since I dont want everything) to copy the cells of one unstructured grid
to
> another?
>
> Thanks for you time
> mike bonner
>
> any & all response[s] appreciated.
>
>
>
>
> --__--__--
>
> _______________________________________________
> vtkusers mailing list
> vtkusers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
> End of vtkusers Digest
>




More information about the vtkusers mailing list