[vtkusers] Is there a better way to delete cells from PolyData then....

Jingyi Jin jinjingyi at yahoo.com
Fri Oct 12 21:44:36 EDT 2001


Or you can declare an IdList to keep the cellIds of
the original mesh, then delete ID from it whenever you
want to delete a cell. At the end you can call

newMesh->CopyCells(oldMesh, IdList);

This way, only the cells in the IdList will be copied
to the new mesh.

Jingyi

--- Terence Lim <tlim at mda.ca> wrote:
> Is there a better way to delete cells from PolyData?
> or is this the best
> method available?
> 
> using vtkDecimatePro:
> 
> -First do BuildCells().
> -Then mark cells to delete with DeleteCell().
> -Finally test every cell GetCellType() and copy to a
> second vtkCellArray if
> type is VTK_TRIANGLE.
> 
> I've searched through the archives and this was the
> best advice I could
> find. Does anyone have any other ideas? Thanks.
> 
> -Terence
> 
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



More information about the vtkusers mailing list