[vtkusers] question ? [fill contour]

Dr. Roman Grothausmann grothausmann.roman at mh-hannover.de
Fri Apr 4 10:24:35 EDT 2014


Dear David,


Many thanks for Your answer, that explains the behaviour.
If now the problem that vtkContourTriangulator has trouble closing nested loops, 
which I can understand isn't easy, see attached images.
I'm now banging my head around how to help vtkContourTriangulator by e.g. 
breaking the nested loops into single loops. I only can think of a way to get 
one single loop but then not all other possible single loops.
Delauney2D goes in the right direction but is not completely correct.
Is this a problem that cannot be solved?

Thanks for any help or hints
Roman

On 01/04/14 15:13, David Gobbi wrote:
> Hi Roman,
>
> That's very interesting, but not really unexpected. Take a look
> at the function vtkContourTriangulator::TriangulateContours in
> vtkContourTriangulator.cxx, and you will see that the first two
> operations are loop detection (vtkCCSMakePolysFromLines)
> followed by the creation of polygons from "incomplete" loops
> (vtkCCSJoinLooseEnds).
>
> Cheers,
>
>    David
>
> On Tue, Apr 1, 2014 at 2:38 AM, Dr. Roman Grothausmann
> <grothausmann.roman at mh-hannover.de> wrote:
>> Hi David,
>>
>>
>> Many thanks for that contribution. I just checked if this filter can also be
>> used to solve my current problem of identifying/closing loops in graphs. In
>> a way it can but not in any case. For example if the graph of a 3d skeleton
>> has loops only some are closed by vtkContourTriangulator. Additionally,
>> vtkContourTriangulator also spans triangles over Y-shaped regions. Some
>> exemplary images are attached for the tree cases.
>>
>> Best wishes
>> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 13-621_CO_LW-seg_03_05_01.png
Type: image/png
Size: 10384 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140404/5f7773cc/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 13-621_CO_LW-seg_03_05_02.png
Type: image/png
Size: 16905 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140404/5f7773cc/attachment-0001.png>


More information about the vtkusers mailing list