Boost logo

Boost Users :

Subject: Re: [Boost-users] [BGL] Problems with planar_face_traversal
From: Ulrich Küttler (ulrich.kuettler_at_[hidden])
Date: 2011-05-22 14:39:08


>
>I'd love to help out - can you give a self-contained example that
>doesn't use read_graphviz and your dot file (e.g., construct the graph
>in the code)? Or, failing that, maybe just describe what's going wrong
>and how that differs from what you expect to see?
>

Hi Aaron,
 
thanks a lot. Here is a self-contained version of my example. The graph is the same. I used boost 1.46.1 on gcc linux to run it.
 
The graph contains 22 vertices and is supposed to look like this:
 
 0--- 4--- 6--- 8---10---12---14---16---18---20--- 1
 |    |    |    |    |    |    |    |    |    |    |
 2--- 5--- 7--- 9---11---13---15---17---19---21--- 3
 
Thus, there are 10 faces with 4 vertices each and one face with 22 vertices. At least that is what I suppose there should be.
 
However, the face traversal results in the following faces (vertices):
 
0 12 17 16 
12 0 16 18 19 17 
1 13 14 15 
13 1 15 14 11 9 8 10 
2 3 5 7 6 4 
3 2 20 18 16 17 19 21 
2 4 5 3 21 20 
5 4 6 8 9 7 
6 7 9 11 10 8 
10 11 14 13 
19 18 20 21 
 
Maybe it is a misinterpretation on my part, maybe I did make a mistake. I just don't see it.
 
Ulrich
 
PS: My first example lacked the edge index initialization. The above problem, however, occurs with an initialized edge index.
 
___________________________________________________________
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://produkte.web.de/go/toolbar




Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net