summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiles Bathgate <gilesbathgate@gmail.com>2011-04-09 05:47:24 (GMT)
committerGiles Bathgate <gilesbathgate@gmail.com>2011-04-09 05:47:24 (GMT)
commitae8cda73a83d8b4e55eb87eb1df225d3d62e1320 (patch)
tree802484189a66d8ad40b3e6dd87378e5f01b84bb1
parent1d510e0870cfc4e458820a6cc01740ee17b8fbeb (diff)
Removed the remaining crud.
-rw-r--r--src/mainwin.cc28
1 files changed, 3 insertions, 25 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc
index 3abcb88..d5da7aa 100644
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -75,30 +75,10 @@
#ifdef ENABLE_CGAL
-#if 1
#include "CGAL_renderer.h"
using OpenSCAD::OGL::Polyhedron;
using CGAL::OGL::Nef3_Converter;
-#else
-// a little hackish: we need access to default-private members of
-// CGAL::OGL::Nef3_Converter so we can implement our own draw function
-// that does not scale the model. so we define 'class' to 'struct'
-// for this header..
-//
-// theoretically there could be two problems:
-// 1.) defining language keyword with the pre processor is illegal afair
-// 2.) the compiler could use a different memory layout or name mangling for structs
-//
-// both does not seam to be the case with todays compilers...
-//
-#define class struct
-#include <CGAL/Nef_3/OGL_helper.h>
-#undef class
-using CGAL::OGL::Polyhedron;
-using CGAL::OGL::SNC_BOUNDARY;
-using CGAL::OGL::SNC_SKELETON;
-using CGAL::OGL::Nef3_Converter;
-#endif
+
#endif // ENABLE_CGAL
#define QUOTE(x__) # x__
@@ -1509,11 +1489,9 @@ static void renderGLviaCGAL(void *vp)
p->set_style(SNC_BOUNDARY);
if (m->viewActionCGALGrid->isChecked())
p->set_style(SNC_SKELETON);
-#if 0
- p->draw();
-#else
+
p->draw(m->viewActionShowEdges->isChecked());
-#endif
+
}
}
contact: Jan Huwald // Impressum