[Paraview] [vtkusers] vtkStripper/TriangleStrips not working on this particular data, why?

Dr. Roman Grothausmann grothausmann.roman at mh-hannover.de
Tue Apr 22 05:33:46 EDT 2014


Thanks Bill, Goodwin and Des for Your answers.
I see, perhaps this should be given as a hint in the docs. The patch seems to be 
doing something similar to my new approach. However, since my polylines 
originate from a vtkGraph, I decided to reorder the nodes/vertices with BFS.

Many thanks again for Your help
Roman

On 11/04/14 17:13, Bill Lorensen wrote:
> If this were a closed contour, I believe you would get one polyline.
> But for a open contour you are not guaranteed to get a single
> polyline. The algorithm starts with a point (looks like it is the
> first point in the first line segment) and collects as many points as
> it can for the first polyline. This completes the first polyline. If
> the first point of the first line is not one of the end points of your
> original data, then it will generate two polylines. At least that is
> what I recall.
>
> Bill
>
>
> On Fri, Apr 11, 2014 at 10:43 AM, Dr. Roman Grothausmann
> <grothausmann.roman at mh-hannover.de> wrote:
>> Dear mailing list members,
>>
>>
>> Attached is a very simple test.vtp (see *_01.png) which for some reason
>> cannot be converted into a single vtkPolyLine with vtkStripper. Even if I
>> use paraview with Clean+Triangulate+TriangleStrip the result still consists
>> of two vtkPolyLine (see extracted cell 0 (thicker line) and green cell
>> labels in *_03.png).
>> Why does vtkStripper not yield a single vtkPolyLine from this particular
>> dataset? Is it the odd order of the points and lines?
>> Is this a bug?
>> If not, how can I achieve what I need, i.e. getting a single vtkPolyLine?
>>
>> Any help or hints are very much appreciated
>> Roman
>>
>> --
>> Dr. Roman Grothausmann
>>
>> Tomographie und Digitale Bildverarbeitung
>> Tomography and Digital Image Analysis
>>
>> Institut für Funktionelle und Angewandte Anatomie, OE 4120
>> Medizinische Hochschule Hannover
>> Carl-Neuberg-Str. 1
>> D-30625 Hannover
>>
>> Tel. +49 511 532-9574
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>
>
>

-- 
Dr. Roman Grothausmann

Tomographie und Digitale Bildverarbeitung
Tomography and Digital Image Analysis

Institut für Funktionelle und Angewandte Anatomie, OE 4120
Medizinische Hochschule Hannover
Carl-Neuberg-Str. 1
D-30625 Hannover

Tel. +49 511 532-9574


More information about the ParaView mailing list