Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Turn off CGAL assertions

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Turn off CGAL assertions


Chronological Thread 
  • From: Adam Getchell <>
  • To:
  • Subject: Re: [cgal-discuss] Turn off CGAL assertions
  • Date: Fri, 10 Nov 2017 10:03:18 -0800
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:YgQc3hEiun9Q90on4P/5rZ1GYnF86YWxBRYc798ds5kLTJ75psuwAkXT6L1XgUPTWs2DsrQf1LqQ7viocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TXhpQMUAQj1YAppOvzuSMmVlNWyz+n0+pvJYgwOiiD6eqJ3NBzxrAPfsY4djoJmb6ow0RDUuWAbR+MDzmxhIRefng33+9yr1J9l6SVZ/fw7pOBaVqCvVqgxSPR3ASgtM20x4IW/vBXKSE2A62cXUmgSljJHBgHE6FfxWZKn4XiyjfZ0xCTPZZ6+drszQzn3t6o=

Hi Marc,

Thanks for the suggestion!

Neither: 

set(CGAL_NO_ASSERTIONS TRUE CACHE BOOL “Turn off Triangulation checks” FORCE)

Nor:

set(CGAL_TRIANGULATION_NO_ASSERTIONS CACHE BOOL “Turn off Triangulation checks” FORCE)

Prevent:

CGAL error: assertion violation!
_expression_ : false
File       : /usr/local/include/CGAL/Delaunay_triangulation_3.h
Line       : 1973
Explanation: 
Refer to the bug-reporting instructions at http://www.cgal.org/bug_report.html

If I run in release mode (NDEBUG), that does work. Unfortunately, it also prevents me from interactively debugging my code.

Am I missing something?

Cheers,
Adam


On Thu, 9 Nov 2017, Adam Getchell wrote:

Hello all,

I’m trying to turn off the following:

CGAL error: assertion violation!
_expression_ : false
File       : /usr/local/include/CGAL/Delaunay_triangulation_3.h
Line       : 1973

Which, I believe, relates to the triangulation not being Delaunay after the flip.

I’ve read over https://doc.cgal.org/latest/Manual/devman_checks.html and added the following to CMakeLists in order to turn off all the checks:

set(CGAL_NDEBUG "Turn off all checks")

That hasn’t worked. Do I have to compile CGAL with this flag?

Just use NDEBUG instead? CGAL_NO_ASSERTIONS or CGAL_TRIANGULATION_NO_ASSERTIONS should work as well.

--
Marc Glisse

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss






Archive powered by MHonArc 2.6.18.

Top of Page