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: Mateus Bellomo <>
  • To:
  • Subject: Re: [cgal-discuss] Visibility_2 segmentation fault
  • Date: Wed, 23 Dec 2015 10:08:53 -0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:/UD5dBKtlgDPP6+FV9mcpTZWNBhigK39O0sv0rFitYgULvnxwZ3uMQTl6Ol3ixeRBMOAu6wC17qd6PqocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWM5DIfUi/yKRBybrysXNWC0YLrh6vpodX6WEZhunmUWftKNhK4rAHc5IE9oLBJDeIP8CbPuWZCYO9MxGlldhq5lhf44dqsrtY4q3wD86Fpy8kVWqrze+E0TKdTES89G2Ez/szi8xfZHiWV4X5Jd2wKnwdTSyLI6BX9W5C55i7zqudgwyOXOcnxSLccVjGr7qMtQxjt3nRUfwUl+X3a35QjxJlQpwis8kRy

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