Sfoglia il codice sorgente

cgal bug

Former-commit-id: 31625e41878854e72848210b2ea85ef0ac4f2548
Alec Jacobson 10 anni fa
parent
commit
d4f31c542c
1 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 5 2
      include/igl/cgal/CGAL_includes.hpp

+ 5 - 2
include/igl/cgal/CGAL_includes.hpp

@@ -8,8 +8,11 @@
 #ifndef IGL_CGAL_INCLUDES_H
 #ifndef IGL_CGAL_INCLUDES_H
 #define IGL_CGAL_INCLUDES_H
 #define IGL_CGAL_INCLUDES_H
 
 
-// http://www.alecjacobson.com/weblog/?p=4291
-#define CGAL_INTERSECTION_VERSION 1
+// This causes unknown bugs during intersection meshing:
+//// http://www.alecjacobson.com/weblog/?p=4291
+//#define CGAL_INTERSECTION_VERSION 1
+// Use this instead to mute errors resulting from bad CGAL assertions
+#define CGAL_KERNEL_NO_ASSERTIONS
 // Triangle triangle intersection
 // Triangle triangle intersection
 #include <CGAL/intersections.h>
 #include <CGAL/intersections.h>
 // THIS CANNOT BE INCLUDED IN THE SAME FILE AS <CGAL/intersections.h>
 // THIS CANNOT BE INCLUDED IN THE SAME FILE AS <CGAL/intersections.h>