Эх сурвалжийг харах

(\!SV) doesn't compile on old eigen

Former-commit-id: 522279649951a8cd89631cbb98e4d181c3dbc8b5
Alec Jacobson 8 жил өмнө
parent
commit
71cf65b14c

+ 9 - 1
include/igl/straighten_seams.cpp

@@ -12,6 +12,8 @@
 #include "components.h"
 #include "ears.h"
 #include "slice.h"
+#include "sum.h"
+#include "find.h"
 
 template <
   typename DerivedV,
@@ -169,7 +171,9 @@ IGL_INLINE void igl::straighten_seams(
   int nc;
   ArrayXi C;
   {
-    SparseMatrix<bool> A = OTVT * (!SV).matrix().asDiagonal() * VTOT;
+    // Doesn't Compile on older Eigen:
+    //SparseMatrix<bool> A = OTVT * (!SV).matrix().asDiagonal() * VTOT;
+    SparseMatrix<bool> A = OTVT * (SV!=true).matrix().asDiagonal() * VTOT;
     components(A,C);
     nc = C.maxCoeff()+1;
   }
@@ -329,3 +333,7 @@ IGL_INLINE void igl::straighten_seams(
   }
   list_to_matrix(vUE,UE);
 }
+
+#ifdef IGL_STATIC_LIBRARY
+// Explicit template specialization
+#endif