@@ -185,7 +185,13 @@ IGL_INLINE bool igl::decimate(
cost_and_placement(e,V,F,E,EMAP,EF,EI,cost,p);
C.row(e) = p;
costs(e) = cost;
- },10000);
+ },
+#ifndef NDEBUG
+ SIZE_MAX
+#else
+ 10000
+#endif
+ );
for(int e = 0;e<E.rows();e++)
{
Q.emplace(costs(e),e,0);