Browse Source

debug prints

Former-commit-id: 5211f40fa704631327b61190f036c822a2161043
Alec Jacobson 9 years ago
parent
commit
d3753082dc
1 changed files with 7 additions and 1 deletions
  1. 7 1
      include/igl/boolean/mesh_boolean.cpp

+ 7 - 1
include/igl/boolean/mesh_boolean.cpp

@@ -203,6 +203,12 @@ IGL_INLINE void igl::boolean::mesh_boolean(
   VectorXi I;
   Matrix<bool,Dynamic,1> flip;
   peel_outer_hull_layers(EV,CF,CN,I,flip);
+#ifdef IGL_MESH_BOOLEAN_DEBUG
+  for(int f = 0;f<I.size();f++)
+  {
+    cout<<I(f)<<"\t"<<flip(f)<<endl;
+  }
+#endif
   // 0 is "first" iteration, so it's odd
   Array<bool,Dynamic,1> odd = igl::mod(I,2).array()==0;
 
@@ -293,7 +299,7 @@ IGL_INLINE void igl::boolean::mesh_boolean(
 #ifdef IGL_MESH_BOOLEAN_DEBUG
       else
       {
-        cout<<"Skipping "<<uG2G.size()<<" facets..."<<endl;
+        cout<<"Skipping "<<uG2G[ug].size()<<" facets..."<<endl;
       }
 #endif
     }