[vtkusers] Argh ! vtkClipPolyData put to the end the Traversal of a polydata cell array

Christopher R. Volpe crv2002 at nycap.rr.com
Mon Dec 30 07:09:11 EST 2002


Hmmm. How about a ShallowCopy on the PolyData, and then you iterate over the
cells in the copy while the clipper iterates over the cells in the original?
  -----Original Message-----
  From: vtkusers-admin at public.kitware.com
[mailto:vtkusers-admin at public.kitware.com]On Behalf Of sebastien MARAUX
  Sent: Monday, December 30, 2002 5:51 AM
  To: vtkusers
  Subject: [vtkusers] Argh ! vtkClipPolyData put to the end the Traversal of
a polydata cell array


  Hello,

  I use a vtkClipPolydata on a polydata, in a loop "for each
  cell of this polydata" that I initialized with initTraversal().

  The issue is that vtkClipPolyData seems to use the same
  method, and then bring to the end of the traversal at the first
  call. This "cut" my loop, and only first cell of polydata is
  processed.

  I would like to avoid using vtkCellArray->GetCell(i) for speed
  issue, is this the only work around ?

  Seb.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20021230/7ecbabf6/attachment.htm>


More information about the vtkusers mailing list