Hi David,<br>
<br>
Thanks for your reply. <br>
<br>
Actually, I tried vtkStripper, but as you said it just generated a 
polyline consists of the same line segments in the same wrong order, 
which is kind of useless here.<br>
<br>
I don&#39;t know but it looks to me that no filter will be able to get the 
correct (&quot;expected&quot;) order of the line segments except the cutter object
 itself. After cutting, the result is just some scattered lines.<br>
<br>
What do you think? Am I missing something??<br>
<br>
Thanks,<br>
Dan<br><br><br><div class="gmail_quote">On Tue, Aug 16, 2011 at 11:05 AM, David Gobbi <span dir="ltr">&lt;<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Dan,<br>
<br>
The fact that your surface is non-convex is not what is causing the problem.<br>
<br>
The problem is that vtkCutter generates a whole bunch of independent<br>
line segments, but what you want is a single polyline.  The filter to join<br>
the line segments to create a polyline in vtkStripper.<br>
<br>
Also note that vtkStripper will _not_ put the points in the correct order.<br>
What it does is generate a polyline cell array that contains the correct<br>
ordering of the PointIDs.<br>
<font color="#888888"><br>
 - David<br>
</font><div><div></div><div class="h5"><br>
<br>
On Tue, Aug 16, 2011 at 8:38 AM, Dan Asimov &lt;<a href="mailto:dan.asimov@gmail.com">dan.asimov@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Any idea anyone? Is there a way to cut non-convex surfaces?<br>
&gt;<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Dan<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Fri, Aug 12, 2011 at 2:47 PM, Dan Asimov &lt;<a href="mailto:dan.asimov@gmail.com">dan.asimov@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;ve a non-convex shape that I need to cut through. The user draws two<br>
&gt;&gt; contours parallel X-Y plane, then I generate the surface using<br>
&gt;&gt; vtkVoxelContoursToSurfaceFilter. However, when I cut with a plane parallel<br>
&gt;&gt; to x-y using vtkCutter, the order of the points of the generated result is<br>
&gt;&gt; messed up (pls see the attachments). I tried to run many filters on this<br>
&gt;&gt; result to get the expected one without success.<br>
&gt;&gt;<br>
&gt;&gt; Can anyone help me on how to cut this surface to get the expected result?<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; Dan<br>
</div></div></blockquote></div><br>