summaryrefslogtreecommitdiff
path: root/src/dxftess-cgal.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-12-06 00:43:44 (GMT)
committerMarius Kintel <marius@kintel.net>2011-12-06 00:43:44 (GMT)
commitbb0ec94290733835df0716531c30460fc5b5210a (patch)
tree97e0c552ac7d7a19d9819a89c9277e461ff7c074 /src/dxftess-cgal.cc
parent65a5aa23bfd78718972082f82eb7366d01a968a6 (diff)
#undef NDEBUG before including any CGAL headers
Diffstat (limited to 'src/dxftess-cgal.cc')
-rw-r--r--src/dxftess-cgal.cc13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/dxftess-cgal.cc b/src/dxftess-cgal.cc
index cf5b75d..5b4e953 100644
--- a/src/dxftess-cgal.cc
+++ b/src/dxftess-cgal.cc
@@ -3,15 +3,22 @@
#include "dxfdata.h"
#include "polyset.h"
#include "grid.h"
+#include "cgal.h"
+#ifdef NDEBUG
+#define PREV_NDEBUG NDEBUG
+#undef NDEBUG
+#endif
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Constrained_Delaunay_triangulation_2.h>
#include <CGAL/Delaunay_mesher_2.h>
#include <CGAL/Delaunay_mesher_no_edge_refinement_2.h>
#include <CGAL/Delaunay_mesh_face_base_2.h>
#include <CGAL/Delaunay_mesh_criteria_2.h>
-#include <CGAL/assertions_behaviour.h>
-#include <CGAL/exceptions.h>
+#include <CGAL/Mesh_2/Face_badness.h>
+#ifdef PREV_NDEBUG
+#define NDEBUG PREV_NDEBUG
+#endif
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Triangulation_vertex_base_2<K> Vb;
@@ -23,8 +30,6 @@ typedef CGAL::Constrained_Delaunay_triangulation_2<K, Tds> CDT;
typedef CDT::Vertex_handle Vertex_handle;
typedef CDT::Point CDTPoint;
-#include <CGAL/Mesh_2/Face_badness.h>
-
#include <boost/unordered_map.hpp>
template <class T> class DummyCriteria {
contact: Jan Huwald // Impressum