Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Possible bug in templating of general_polygon_set_2.h

Subject: CGAL users discussion list

List archive

[cgal-discuss] Possible bug in templating of general_polygon_set_2.h


Chronological Thread 
  • From: Ben Supnik <>
  • To:
  • Subject: [cgal-discuss] Possible bug in templating of general_polygon_set_2.h
  • Date: Tue, 21 Oct 2008 15:05:27 -0400

Hi,

Looking at CGAL/General_polygon_set_2.h line 58, in CGAL 3.3.1 I see what appears to be an omission:

The definition of "self" is templated _without_ the Dcel_ template parameter.

This means that the expected "other" GPS for a difference on self operation (e.g. gps.difference(other)) is a GPS with the default dcel, EVEN if I have instantiated the GPS with a custom dcel.

In my case, this is exactly my situation..all of my GPS's are templated with custom DCELs...adding Dcel_ to the self typedef fixes the compile problems.

(This is definitely a weird use of the general-polygon-set class! :-)

I can file a bug or send a modified source file if needed/desired.

This is the SVN info for the version of the file I have:

// $URL: svn+ssh://scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.3-branch/Boolean_set_operations_2/include/CGAL/General_polygon_set_2.h $
// $Id: General_polygon_set_2.h 37178 2007-03-17 08:50:51Z afabri $ $Date: 2007-03-17 09:50:51 +0100 (Sat, 17 Mar 2007) $

Thanks!!
Ben


--
Scenery Home Page: http://scenery.x-plane.com/
Scenery blog: http://xplanescenery.blogspot.com/
Plugin SDK: http://www.xsquawkbox.net/xpsdk/
X-Plane Wiki: http://wiki.x-plane.com/
Scenery mailing list:

Developer mailing list:



  • [cgal-discuss] Possible bug in templating of general_polygon_set_2.h, Ben Supnik, 10/21/2008

Archive powered by MHonArc 2.6.16.

Top of Page