浏览代码

unused variable warning

Former-commit-id: 9c9453fc5e1fa22f76ff12a5283057adb4282ce4
Alec Jacobson 9 年之前
父节点
当前提交
492362aaa1
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      include/igl/cgal/remesh_intersections.cpp

+ 2 - 2
include/igl/cgal/remesh_intersections.cpp

@@ -73,13 +73,13 @@ IGL_INLINE void igl::cgal::remesh_intersections(
   vector<Plane_3> P(offending.size());
   // Use map for *all* faces
   map<typename CDT_plus_2::Vertex_handle,Index> v2i;
-  // Loop over offending triangles
-  const size_t noff = offending.size();
 #ifdef IGL_SELFINTERSECTMESH_DEBUG
   double t_proj_del = 0;
 #endif
   // Unfortunately it looks like CGAL has trouble allocating memory when
   // multiple openmp threads are running. Crashes durring CDT...
+  //// Loop over offending triangles
+  //const size_t noff = offending.size();
 //# pragma omp parallel for if (noff>1000)
   for(const auto & okv : offending)
   {