Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Bug report: Linear Cell Complex and Cell Attributes

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Bug report: Linear Cell Complex and Cell Attributes


Chronological Thread 
  • From: Guillaume Damiand <>
  • To:
  • Subject: Re: [cgal-discuss] Bug report: Linear Cell Complex and Cell Attributes
  • Date: Mon, 22 Apr 2013 22:48:26 +0200

Hi again,

Here a second patch for file Cell_attribute.h (a method protected which must be public).
The problem occurs only in debug mode as it is used in is_valid method.

Regards
Guillaume



Le 19/04/2013 15:43, jdumas a écrit :
Hi.

I'd like to report what I think is a bug in the package Linear Cell Cemplex
form CGAL (either that, or I've missed something in the documentation, which
is very much possible). It happens when you try to define your own attribute
associated to an edge or another i-cell, with Tag set to CGAL::Tag_false,
and if you want to insert a new vertex along some edge.

Here is a link to a minimal example file, and the CMakeList.txt used to
compile it:
http://pastebin.com/Uj9698Tk
http://pastebin.com/66jWdP3x

The interesting thing is that it compiles fine in 'Release' mode, but if you
change CMAKE_BUILD_TYPE to 'Debug' (i.e. when you compile without -DNDEBUG),
then you will see a bunch of errors whose meaning elude me. And if you
change the Tag to CGAL::Tag_true, then it also compiles fine.


For the sake of completeness, here are the versions that I used:
- cgal 4.2
- gcc 4.7.2
- boost 1.53.0
- cmake 2.8.9
- gmp 5.1.1 / mpfr 3.1.1
- os : ubuntu quantal



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Bug-report-Linear-Cell-Complex-and-Cell-Attributes-tp4657236.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



--
===================================================================
Guillaume DAMIAND

CNRS, LIRIS UMR 5205
Université Claude Bernard
Bâtiment Nautibus (710)
43 Boulevard du 11 Novembre 1918
69622 Villeurbanne Cedex (France)
-------------------------------------------------------------------
Phone: +33 (0)4.72.43.26.62 Fax: +33 (0)4.72.43.15.36
Mail:

===================================================================

diff --git a/Combinatorial_map/include/CGAL/Cell_attribute.h b/Combinatorial_map/include/CGAL/Cell_attribute.h
index ce35d7c..7cd6c2e 100644
--- a/Combinatorial_map/include/CGAL/Cell_attribute.h
+++ b/Combinatorial_map/include/CGAL/Cell_attribute.h
@@ -140,11 +140,11 @@ namespace CGAL {
       --mrefcounting; 
     }
 
+  public:
     /// Get the reference counting.
     unsigned int get_nb_refs() const
     { return mrefcounting; }
 
-  public:
     void * for_compact_container() const 
     { return vp; }
     void * & for_compact_container()       



Archive powered by MHonArc 2.6.18.

Top of Page