Subject: CGAL users discussion list
List archive
- From: Sherif Ghali <>
- To:
- Subject: Re: [cgal-discuss] Visibility Graph
- Date: Tue, 15 May 2007 08:35:29 -0600
The right way is to write two brief classes for a spherical (circular)
point and a spherical (circular) segment on S^1. A spherical point can
be a standalone class or a wrapper for Direction_2. You would represent
the set of "forbidden" directions (those in a polygon's interior) using
a spherical segment and confirm that two spherical points at both
vertices are outside the two spherical segments before declaring
the vertices mutually visible.
Sherif
On Thu, May 10, 2007 at 01:18:15PM -0400, Dave Ceddia wrote:
> Hello CGAL experts,
>
> I am trying to compute the visibility graph among a set of polygons, and
> there are a couple things I can't think of how to do nicely using CGAL. For
> now, I'm trying to figure out how to do segment-polygon intersection. Some
> of the lines of the visibility graph need to connect from a polygon back to
> itself (since the polygons are non-convex), but I want to avoid introducing
> lines that are internal to the polygon. I can't seem to think of a way of
> testing for intersection of a segment with a polygon, is there a simple way
> to do this in CGAL?
>
> Thanks,
> Dave
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss
- Visibility Graph, Dave Ceddia, 05/10/2007
- Re: [cgal-discuss] Visibility Graph, Sherif Ghali, 05/15/2007
Archive powered by MHonArc 2.6.16.