ソースを参照

Another template fix

Former-commit-id: 77dacf79aa1b4900cc68d49bfa15a119834c2d48
Joe Graus 8 年 前
コミット
0edc80345b
4 ファイル変更8 行追加8 行削除
  1. 2 2
      include/igl/inferno.cpp
  2. 2 2
      include/igl/magma.cpp
  3. 2 2
      include/igl/plasma.cpp
  4. 2 2
      include/igl/viridis.cpp

+ 2 - 2
include/igl/inferno.cpp

@@ -305,8 +305,8 @@ IGL_INLINE void igl::inferno(
   const bool normalize,
   Eigen::PlainObjectBase<DerivedC> & C)
 {
-  const double min_z = (normalize ? Z.minCoeff()) :  0;
-  const double max_z = (normalize ? Z.maxCoeff()) : -1;
+  const double min_z = normalize ? Z.minCoeff() : 0;
+  const double max_z = normalize ? Z.maxCoeff() : -1;
   return inferno(Z, min_z, max_z, C);
 }
 

+ 2 - 2
include/igl/magma.cpp

@@ -305,8 +305,8 @@ IGL_INLINE void igl::magma(
   const bool normalize,
   Eigen::PlainObjectBase<DerivedC> & C)
 {
-  const double min_z = (normalize ? Z.minCoeff()) :  0;
-  const double max_z = (normalize ? Z.maxCoeff()) : -1;
+  const double min_z = normalize ? Z.minCoeff() : 0;
+  const double max_z = normalize ? Z.maxCoeff() : -1;
   return magma(Z, min_z, max_z, C);
 }
 

+ 2 - 2
include/igl/plasma.cpp

@@ -305,8 +305,8 @@ IGL_INLINE void igl::plasma(
   const bool normalize,
   Eigen::PlainObjectBase<DerivedC> & C)
 {
-  const double min_z = (normalize ? Z.minCoeff()) :  0;
-  const double max_z = (normalize ? Z.maxCoeff()) : -1;
+  const double min_z = normalize ? Z.minCoeff() : 0;
+  const double max_z = normalize ? Z.maxCoeff() : -1;
   return plasma(Z, min_z, max_z, C);
 }
 

+ 2 - 2
include/igl/viridis.cpp

@@ -305,8 +305,8 @@ IGL_INLINE void igl::viridis(
   const bool normalize,
   Eigen::PlainObjectBase<DerivedC> & C)
 {
-  const double min_z = (normalize ? Z.minCoeff()) :  0;
-  const double max_z = (normalize ? Z.maxCoeff()) : -1;
+  const double min_z = normalize ? Z.minCoeff() :  0;
+  const double max_z = normalize ? Z.maxCoeff() : -1;
   return viridis(Z, min_z, max_z, C);
 }