From 3eb4489245578e99c5053ae760c8d3846fd6dfa2 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Sun, 26 Jan 2014 21:52:46 -0500 Subject: [PATCH] Use GEN_SURFACE_DEBUG instead of DEBUG for verbose debug output --- src/cgalutils.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/cgalutils.cc b/src/cgalutils.cc index 8a924af6..9094b18c 100644 --- a/src/cgalutils.cc +++ b/src/cgalutils.cc @@ -804,7 +804,7 @@ public: } } -#ifdef DEBUG +#ifdef GEN_SURFACE_DEBUG printf("polyhedron(faces=["); int pidx = 0; #endif @@ -813,7 +813,7 @@ public: B.add_vertex(p); } BOOST_FOREACH(const PolySet::Polygon &p, ps.polygons) { -#ifdef DEBUG +#ifdef GEN_SURFACE_DEBUG if (pidx++ > 0) printf(","); #endif indices.clear(); @@ -837,7 +837,7 @@ public: if (!err && B.test_facet(indices.begin(), indices.end())) { B.add_facet(indices.begin(), indices.end()); } -#ifdef DEBUG +#ifdef GEN_SURFACE_DEBUG printf("["); int fidx = 0; BOOST_FOREACH(size_t i, indices) { @@ -848,10 +848,10 @@ public: #endif } B.end_surface(); -#ifdef DEBUG +#ifdef GEN_SURFACE_DEBUG printf("],\n"); #endif -#ifdef DEBUG +#ifdef GEN_SURFACE_DEBUG printf("points=["); for (int i=0;i 0) printf(","); @@ -872,11 +872,11 @@ public: // Estimating same # of vertices as polygons (very rough) B.begin_surface(ps.polygons.size(), ps.polygons.size()); int pidx = 0; -#ifdef DEBUG +#ifdef GEN_SURFACE_DEBUG printf("polyhedron(faces=["); #endif BOOST_FOREACH(const PolySet::Polygon &p, ps.polygons) { -#ifdef DEBUG +#ifdef GEN_SURFACE_DEBUG if (pidx++ > 0) printf(","); #endif indices.clear(); @@ -902,7 +902,7 @@ public: } if (!err && B.test_facet(indices.begin(), indices.end())) { B.add_facet(indices.begin(), indices.end()); -#ifdef DEBUG +#ifdef GEN_SURFACE_DEBUG printf("["); int fidx = 0; BOOST_FOREACH(size_t i, indices) { @@ -914,7 +914,7 @@ public: } } B.end_surface(); -#ifdef DEBUG +#ifdef GEN_SURFACE_DEBUG printf("],\n"); printf("points=[");