[vtk-developers] vtkStripper bug ?

Will Schroeder will.schroeder at kitware.com
Thu Feb 9 08:02:00 EST 2017


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 :-)

On Thu, Feb 9, 2017 at 2:45 AM, Mathieu Westphal <
mathieu.westphal at kitware.com> wrote:

> Hi
>
> I'm trying to have contour as polyline cells
> However, somtimes the contour is separated in two parts, even though the
> part are definitelly connected.
>
> It appears only when the contour is not complete though.
>
> Is it normal ? or a bug ?
>
> Attached is a ParaView example that demonstrate the bug.
>
> Mathieu Westphal
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtk-developers
>
>
>


-- 
William J. Schroeder, PhD
Kitware, Inc. - Building the World's Technical Computing Software
28 Corporate Drive
Clifton Park, NY 12065
will.schroeder at kitware.com
http://www.kitware.com
(518) 881-4902
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20170209/c4589c91/attachment.html>


More information about the vtk-developers mailing list