Procházet zdrojové kódy

bug in procrustes templating

Former-commit-id: e52db77e3e07f78be0793fcb9f2389a607c43d5b
Alec Jacobson před 10 roky
rodič
revize
6e2c0ff218
1 změnil soubory, kde provedl 4 přidání a 3 odebrání
  1. 4 3
      include/igl/procrustes.h

+ 4 - 3
include/igl/procrustes.h

@@ -78,13 +78,14 @@ namespace igl
   //   igl::procrustes(X,Y,true,false,T);
   //   MatrixXd Xprime = (X * T.linear()).rowwise() + T.translation().transpose();
   template <
-    typename DerivedV, 
+    typename DerivedX, 
+    typename DerivedY, 
     typename Scalar, 
     int DIM, 
     int TType>
   IGL_INLINE void procrustes(
-    const Eigen::PlainObjectBase<DerivedV>& X,
-    const Eigen::PlainObjectBase<DerivedV>& Y,
+    const Eigen::PlainObjectBase<DerivedX>& X,
+    const Eigen::PlainObjectBase<DerivedY>& Y,
     bool includeScaling,
     bool includeReflections,
     Eigen::Transform<Scalar,DIM,TType>& T);