Subject: CGAL users discussion list
List archive
- From: Christopher Mitchell <>
- To:
- Subject: [cgal-discuss] Unexpected Polygon_2 do_intersect() Behavior?
- Date: Sat, 10 Sep 2016 12:31:00 -0400
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:IHSNCx3x/DQdR7XesmDT+DRfVm0co7zxezQtwd8ZsegQKPad9pjvdHbS+e9qxAeQG96KsrQa1aGP6/uoGTRZp83Q6DZaKN0EfiRGoP1epxYnDs+BBB+zB9/RRAt+Iv5/UkR49WqwK0lfFZW2TVTTpnqv8WxaQU2nZkJLL+j4UrTfk96wn7jrvcaCOkMW2nHkOeg6bE3v616A7o9O2coqA51y4yOBmmFPdeVSyDEgDnOotDG42P2N+oV++T9bofMr+p0Ie6z7e6MlUe4QV2x+YChmrPHs4BLMRA/K6noHWXgNiTJJBRLE5Vf0RMTfqCz/48F9wiiBIcruTb0uERGj86xrRRvswHMMLTtirTn/jN1tyq9XvUTy9FRE34fIbdTNZ7JFdaTHcIZCSA==
I'm attempting to determine if two Polygon_2s overlap in anyway, ie, share any portion of their interiors, including one being entirely contained by the other. In most cases this works, but for a few polygon pairs, do_intersect() returns false unexpectedly. I make sure (1) all polygons are simple (2) all polygons are not oriented CGAL::CLOCKWISE (I call .reverse_orientation() on the polys if they are CGAL::CLOCKWISE), and (3) that the starting vertex is not duplicated. I have attached an example of a polygon pair for which do_intersect() returns false. Thanks in advance for any insight; I'd be happy to provide additional information as necessary.
Attachment:
do_intersect.png
Description: PNG image
- [cgal-discuss] Unexpected Polygon_2 do_intersect() Behavior?, Christopher Mitchell, 09/10/2016
- Re: [cgal-discuss] Unexpected Polygon_2 do_intersect() Behavior?, Efi Fogel, 09/11/2016
- Re: [cgal-discuss] Unexpected Polygon_2 do_intersect() Behavior?, Christopher Mitchell, 09/12/2016
- Re: [cgal-discuss] Unexpected Polygon_2 do_intersect() Behavior?, Efi Fogel, 09/12/2016
- Re: [cgal-discuss] Unexpected Polygon_2 do_intersect() Behavior?, Sebastien Loriot (GeometryFactory), 09/12/2016
- Re: [cgal-discuss] Unexpected Polygon_2 do_intersect() Behavior?, Christopher Mitchell, 09/12/2016
- Re: [cgal-discuss] Unexpected Polygon_2 do_intersect() Behavior?, Efi Fogel, 09/13/2016
- Re: [cgal-discuss] Unexpected Polygon_2 do_intersect() Behavior?, Christopher Mitchell, 09/13/2016
- Re: [cgal-discuss] Unexpected Polygon_2 do_intersect() Behavior?, Efi Fogel, 09/14/2016
- Re: [cgal-discuss] Unexpected Polygon_2 do_intersect() Behavior?, Andreas Fabri, 09/14/2016
- Re: [cgal-discuss] Unexpected Polygon_2 do_intersect() Behavior?, Efi Fogel, 09/13/2016
- Re: [cgal-discuss] Unexpected Polygon_2 do_intersect() Behavior?, Christopher Mitchell, 09/12/2016
- Re: [cgal-discuss] Unexpected Polygon_2 do_intersect() Behavior?, Sebastien Loriot (GeometryFactory), 09/12/2016
- Re: [cgal-discuss] Unexpected Polygon_2 do_intersect() Behavior?, Efi Fogel, 09/12/2016
- Re: [cgal-discuss] Unexpected Polygon_2 do_intersect() Behavior?, Christopher Mitchell, 09/12/2016
- Re: [cgal-discuss] Unexpected Polygon_2 do_intersect() Behavior?, Efi Fogel, 09/11/2016
Archive powered by MHonArc 2.6.18.