<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1126" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=264290512-30122002><FONT face=Arial color=#0000ff size=2>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?</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
vtkusers-admin@public.kitware.com
[mailto:vtkusers-admin@public.kitware.com]<B>On Behalf Of </B>sebastien
MARAUX<BR><B>Sent:</B> Monday, December 30, 2002 5:51 AM<BR><B>To:</B>
vtkusers<BR><B>Subject:</B> [vtkusers] Argh ! vtkClipPolyData put to the end
the Traversal of a polydata cell array<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I use a vtkClipPolydata on a polydata, in a loop
"for each </FONT></DIV>
<DIV><FONT face=Arial size=2>cell of this polydata" </FONT><FONT face=Arial
size=2>that I initialized with initTraversal().</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>The issue is that vtkClipPolyData seems to use
the same </FONT></DIV>
<DIV><FONT face=Arial size=2>method, and then bring to the end of the
traversal at the first </FONT></DIV>
<DIV><FONT face=Arial size=2>call. T</FONT><FONT face=Arial size=2>his "cut"
my loop, and only first cell of polydata is </FONT></DIV>
<DIV><FONT face=Arial size=2>processed.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I would like to avoid using
vtkCellArray->GetCell(i) for speed </FONT></DIV>
<DIV><FONT face=Arial size=2>issue, is this the only work around
?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Seb.</FONT></DIV></BLOCKQUOTE></BODY></HTML>