<div dir="ltr">Thanks for this usefull information.<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div>
<br><div class="gmail_quote">On Thu, Feb 9, 2017 at 4:40 PM, Will Schroeder <span dir="ltr"><<a href="mailto:will.schroeder@kitware.com" target="_blank">will.schroeder@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">This is good to hear :-) I think what may be happening, and this is a guess, is that if the contours are manifold and *closed" then they will traverse and then join to form a closed loop. However if they are open (e.g., intersect the boundary) then they may be separated into pieces, typically two pieces. This is because a starting point is somewhat arbitrarily selected and the loop traversed until it comes back to the starting point, or ends at a boundary.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 9, 2017 at 10:14 AM, Andras Lasso <span dir="ltr"><<a href="mailto:lasso@queensu.ca" target="_blank">lasso@queensu.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-US">
<div class="m_2760747737918214987m_-5448264622662650223WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">We use vtkStripper extensively for creating closed contours from surface mesh/image slice intersections of medical images and it works very well. It rarely fails,
 even for complex geometry. We just had to set MaximumLength to 10000 to avoid splitting of contours.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Andras<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> vtk-developers [mailto:<a href="mailto:vtk-developers-bounces@vtk.org" target="_blank">vtk-developers-bounces<wbr>@vtk.org</a>]
<b>On Behalf Of </b>Will Schroeder<br>
<b>Sent:</b> February 9, 2017 8:02<br>
<b>To:</b> Mathieu Westphal <<a href="mailto:mathieu.westphal@kitware.com" target="_blank">mathieu.westphal@kitware.com</a>><br>
<b>Cc:</b> VTK Developers <<a href="mailto:vtk-developers@vtk.org" target="_blank">vtk-developers@vtk.org</a>><br>
<b>Subject:</b> Re: [vtk-developers] vtkStripper bug ?<u></u><u></u></span></p><div><div class="m_2760747737918214987h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">I do not believe that the filter makes any guarantee that segments are connected into a single polyline (i.e., an optimality condition). It's a very simple algorithm and to do that, you'd probably have to do a multi-pass, graph analysis...
 there are situations in the general case where polylines could meet at multiple points etc and to extract the fewest number of polylines containing the maximal number of segments is non-trivial. If you assume manifold conditions, you could simplify the algorithm,
 but it would then require a backward and forward tracing of connected line segments, followed by a restart of the joining algorithm. This is left as an exercise for the user :-)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Thu, Feb 9, 2017 at 2:45 AM, Mathieu Westphal <<a href="mailto:mathieu.westphal@kitware.com" target="_blank">mathieu.westphal@kitware.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Hi<br>
<br>
I'm trying to have contour as polyline cells<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">However, somtimes the contour is separated in two parts, even though the part are definitelly connected.<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">It appears only when the contour is not complete though.<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Is it normal ? or a bug ?<u></u><u></u></p>
</div>
<p class="MsoNormal">Attached is a ParaView example that demonstrate the bug.<span style="color:#888888"><br>
<br clear="all">
<span class="m_2760747737918214987m_-5448264622662650223hoenzb"><u></u><u></u></span></span></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="color:#888888">Mathieu Westphal</span><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" target="_blank">
http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/vtk-developers</a><br>
<br>
<u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">William J. Schroeder, PhD<br>
Kitware, Inc. - Building the World's Technical Computing Software<br>
28 Corporate Drive<br>
Clifton Park, NY 12065<br>
<a href="mailto:will.schroeder@kitware.com" target="_blank">will.schroeder@kitware.com</a><br>
<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a><br>
<a href="tel:(518)%20881-4902" value="+15188814902" target="_blank">(518) 881-4902</a><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div></div></div>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_2760747737918214987gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>William J. Schroeder, PhD<br>Kitware, Inc. - Building the World's Technical Computing Software<br>28 Corporate Drive<br>Clifton Park, NY 12065<br><a href="mailto:will.schroeder@kitware.com" target="_blank">will.schroeder@kitware.com</a><br><a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a><br><a href="tel:(518)%20881-4902" value="+15188814902" target="_blank">(518) 881-4902</a></div></div></div>
</div>
</div></div></blockquote></div><br></div>