Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Visibility_2 segmentation fault

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Visibility_2 segmentation fault


Chronological Thread 
  • From: Efi Fogel <>
  • To:
  • Subject: Re: [cgal-discuss] Visibility_2 segmentation fault
  • Date: Wed, 23 Dec 2015 14:56:02 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:8ljRZhfuLchrSea2FW7Ty+xNlGMj4u6mDksu8pMizoh2WeGdxc64bR7h7PlgxGXEQZ/co6odzbGG7ea4ASQp2tWojjMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpQAbFhi3DwdpPOO9QteU1JTpkbjqs7ToICx2xxOFKYtoKxu3qQiD/uI3uqBFbpgL9x3Sv3FTcP5Xz247bXianhL7+9vitMU7q3cY6Lod8JtLXqz+Oqg5VrdFFy8OMmYv5cStuwOQYxGI4y4xXGRevB1HDgyNuBz0X5n2vSb+nuV40Siee8bxSOZnCnyZ8653RUqw2288PDkj/TSPhw==

The manual indicates that you should the other function (the one that accepts a halfedge).
Frankly, I would say that a 3rd function, which accepts a vertex, is due.
We may add it, but for now, again, it seems that you should be set.

   ____  _        ____             _
  /_____/_) o    /__________  __  //
 (____ (   (    (    (_/ (_/-(-'_(/
                         _/



On Wed, Dec 23, 2015 at 2:08 PM, Mateus Bellomo <> wrote:
An extreme point of an edge e would be e->target() or e->source().

2015-12-23 4:37 GMT-02:00 Efi Fogel <>:
On Tue, Dec 22, 2015 at 9:33 PM, Mateus Bellomo <> wrote:
Hello,

I want to compute the visibility region of a point q inside a polygon (without holes) that is an Arrangement_2 face. I'm trying to use compute_visibility(q, f, out_arr) but I'm getting segmentation fault. The manual [1] says that q must be in the interior of face f and I'm using a point that belongs to an edge (in fact it is the extreme of an edge). It is considered a point to belongs an edge to be interior of a face?

No, of course not. The geometric embedding of an edge e is an open curve c, and the endpoints of the curve c are the geometric embeddings of the 2 vertices incident to the edge e. Similarly, the geometric embedding of a face f are the points in the interior of the face, and the curves on the boundary are the geometric embeddings of the edges incident to the face f.

I also noticed that is another compute_visibility(q, e, out_arr) where q belong to edge e. But I didn't understand what happens if q is an extreme point of e.

What is an extreme point of an edge?






Archive powered by MHonArc 2.6.18.

Top of Page