Subject: CGAL users discussion list
List archive
- From: Bulls Eye <>
- To:
- Subject: Re: [cgal-discuss] Help needed
- Date: Fri, 8 Apr 2016 11:24:24 +0530
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:Vyx6WRV/2FLGO8Zf+vRZyYreoRnV8LGtZVwlr6E/grcLSJyIuqrYZhCGt8tkgFKBZ4jH8fUM07OQ6PCwHzBcqs/Z7jgrS99laVwssY0uhQsuAcqIWwXQDcXBSGgEJvlET0Jv5HqhMEJYS47UblzWpWCuv3ZJQk2sfTR8Kum9IIPOlcP/j7n0oM2DJVkUz2PlP/tbF1afk0b4joEum4xsK6I8mFPig0BjXKBo/15uPk+ZhB3m5829r9ZJ+iVUvO89pYYbCf2pN/dwcbsNBzsvNyU55dbgqALYZQqJ/HoVFGsMwTRSBA2Qxgz+Woy5nzr3/r53xS2eJsDnQLcsVDKK4KJiSRuugyACYW1quFrLg9B92foI6CmqoAZyltbZ
exactly what the doctor ordered.
Thank you very much :).
On Sat, Apr 2, 2016 at 1:32 PM, Efi Fogel <> wrote:
There is no equality operator for Polygon_with_holes_2 nor General_polygon_with_holes_2.
However, you can compute their symmetric difference.
If you care about performance, you can compare the outer boundaries (if exists); then, obtain, say the left vertex of every hole of both polygons with holes and place them in two sequences, sort, and compare, respectively.
If you care a lot about performance, you can precede the full comparisons with comparisons of the bounding boxes.
Notice, that Polygon_2 though has an equality ('=='), left(), and bbox() operators.____ _ ____ _
/_____/_) o /__________ __ //
(____ ( ( ( (_/ (_/-(-'_(/
_/On Fri, Apr 1, 2016 at 3:21 AM, Bulls Eye <> wrote:How to check for equality of two polygons with holes in CGAL?
I am completely new to the CGAL. I am sure there is something in the library that I could use to compare two polygons with holes but I couldn`t find any. Please help with how should I proceed with it. Also, is there any demo available online or any source, I can read.Thanks.
- [cgal-discuss] Help needed, Bulls Eye, 04/01/2016
- Re: [cgal-discuss] Help needed, Efi Fogel, 04/02/2016
- Re: [cgal-discuss] Help needed, Bulls Eye, 04/08/2016
- Re: [cgal-discuss] Help needed, Efi Fogel, 04/02/2016
Archive powered by MHonArc 2.6.18.