<div dir="ltr">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 :-)</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 9, 2017 at 2:45 AM, Mathieu Westphal <span dir="ltr"><<a href="mailto:mathieu.westphal@kitware.com" target="_blank">mathieu.westphal@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"><div><div><div><div>Hi<br><br>I'm trying to have contour as polyline cells<br></div>However, somtimes the contour is separated in two parts, even though the part are definitelly connected.<br><br></div>It appears only when the contour is not complete though.<br><br></div>Is it normal ? or a bug ?<br><br></div>Attached is a ParaView example that demonstrate the bug.<span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><div><div><div><div><div><div class="m_-2007088810171415313gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div>
</div></div></div></div></div></font></span></div>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtk-<wbr>developers</a><br>
<br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_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>(518) 881-4902</div></div></div>
</div>