Subject: CGAL users discussion list
List archive
- From: Efi Fogel <>
- To:
- Subject: Re: [cgal-discuss] Computing visibility polygon from a point in the boundary
- Date: Tue, 17 Sep 2019 21:57:11 +0300
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:mGTqVh1mBgCidD9esmDT+DRfVm0co7zxezQtwd8Zse0eKfad9pjvdHbS+e9qxAeQG9mCsLQd1aGI7OigATVGvc/b9ihaMdRlbFwssY0uhQsuAcqIWwXQDcXBSGgEJvlET0Jv5HqhMEJYS47UblzWpWCuv3ZJQk2sfQV6Kf7oFYHMks+5y/69+4HJYwVPmTGxfa5+IA+5oAnMuMQam5ZuJ6c+xhbIoHZDZuBayX91KV6JkBvw+9m88IR//yhMvv4q6tJNX7j9c6kkV7JTES4oM3oy5M3ltBnDSRWA634BWWgIkRRGHhbI4gjiUpj+riX1uOx92DKHPcLtVrA7RS6i76ZwRxD2jioMKiM0/3vWisx0i6JbvQ6hqhliyIPafI2ZKPxzdb7bcNgHR2ROQ9xRWjRODYOybYQBD+QPM+VFoYfju1QDtgGxCRW2Ce711jNEmn370Ksn2OohCwHG2wkgEsoBvnTardX+KaccUee6zKbWyTXIcvRb1inz6IjJfBAhpv6MUqx0ccfKxkkvEhnKjlSUqYD/IzyV0eENvnGd4uF9W+yvjGsnpBtwojip3soskpTGhowPxlDF8yV12Ik1JdykSE57fN6rC4FcuD2dN4tzRM4pXmJmuD4ix7EYpZK2eDIGxZcnyhLFdvCKcomF7gjsWeuQJzpzmWhrd6ilhxmo9Eit0u38Wdew0FZNtidFl8PDtnEJ1xDK68iHTeZx8l6v2TuA1g3f8O5EIUczlarUL54u3KQ8mYYUsUTGBiP2mUP2g7GKdkg85OSk9+Dqbq/lq5KcLYN4lwDzP6U0lsGwAOk0Kg0OUHKa+eS42r3j50r5QLBSg/IonKnZsZ7aJcMUpqGnBw9YyYkj6xOlADen1NQUh2UILFVAeB6flYjmJ0nOIOzkDfe4m1mjjDhryOrCPrH4H5rNL2PDn6v8fbZm8E5R0xEzzNBa55JMEL4NOvPzWknrtNzZFBA1KQK0w/y0QOl6g4gRUGbKDq6CO77JqneJ4PguKq+Cftw7ojH4ftUr5rbAinA0nRdJcKeo05wYZXSQEfFvIkHfan3p1IRSWVwWtxYzGbS5wGaJViReMi7rA/AMowojAYfjNr/tA5i3ieXYjii+F5xSIGtBDwLUSCa6R8C/Q/4JLRmqDIpkmz0AW6KmTtZ4hx6rvQ7+jbFgK7iNo3BKhdfYzNFwotbru1Qy+DhzVZnP1miMSyR1mTpNSWNomq94pkN5xxGI1q0q2/E=
Hi Natanel,
It does look like a bug.
Please attach a simple program that reproduces this issue.
Alternatively, you can go ahead an create an issue at https://github.com/CGAL/cgal/issues
To do that, you first need to (have an account and) sign in to GitHub
Regards,
Efi
____ _ ____ _
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/
Hello all,My name is Natanael Ramos. I'm using the CGAL library to compute Visibility Polygons from a point p within a simple polygon P, where p is in the boundary of P.I'm using the class "Simple_polygon_visibility_2" and when the visibility polygon is computed, the results seem to be wrong. I'm send in the attachment both the polygon P (poly.pdf) and the resulting visibility polygon (vis.pdf).In this example, I'm interested in finding the visibility polygon from the vertex labeled "7". As you can see, the resulting visibility polygon has the edge from "4" to "5" (and consequently, the triangle "7-4-5") which is not valid, since this triangle is not part of P.I've read the paper from Joe and Simpson, and they mention:I think that maybe this is the issue, because I'm not sure if CGAL's implementation tests whether the query point is on the boundary or not and if so, treats it as an especial case."For a boundary viewpoint z, we orient the vertices of P in counterclockwise order and label them z, v_0, v_1, ..., v_{n-1}, v_n and z, wherev_0 is the successor vertex of z and v_n is the predecessor vertex of z. We also assume that the coordinate system is translated and rotated so that z is at theorigin and v_0 is on the positive x-axis"If so, do I have to do this translation/rotation a priori?Best Regards,Natanael Ramos
- [cgal-discuss] Computing visibility polygon from a point in the boundary, Natanael Ramos, 09/16/2019
- Re: [cgal-discuss] Computing visibility polygon from a point in the boundary, Efi Fogel, 09/17/2019
- Re: [cgal-discuss] Computing visibility polygon from a point in the boundary, Natanael Ramos, 09/17/2019
- Re: [cgal-discuss] Computing visibility polygon from a point in the boundary, Efi Fogel, 09/17/2019
Archive powered by MHonArc 2.6.18.