Browse Source

miq fix to compensate for the flipping of orientation in local_basis.h

Former-commit-id: 18b418759db2036ee19e726750a4777963c1f007
Daniele Panozzo 11 years ago
parent
commit
4f24137650
2 changed files with 5 additions and 5 deletions
  1. 1 1
      include/igl/comiso/miq.cpp
  2. 4 4
      include/igl/local_basis.cpp

+ 1 - 1
include/igl/comiso/miq.cpp

@@ -1284,7 +1284,7 @@ IGL_INLINE void igl::PoissonSolver<DerivedV, DerivedF>::perElementRHS(int f,
 
   Eigen::Matrix<typename DerivedV::Scalar, 3, 1> K1,K2;
   K1 = PD1.row(f);
-  K2 = PD2.row(f);
+  K2 = -PD2.row(f); // TODO: the "-" accounts for the orientation of local_basis.h, adapt the code before and remove the "-"
 
   scaled_Kreal = K1*(vector_field_scale)/2;
   scaled_Kimag = K2*(vector_field_scale)/2;

+ 4 - 4
include/igl/local_basis.cpp

@@ -1,9 +1,9 @@
 // This file is part of libigl, a simple c++ geometry processing library.
-// 
+//
 // Copyright (C) 2014 Alec Jacobson <alecjacobson@gmail.com>
-// 
-// This Source Code Form is subject to the terms of the Mozilla Public License 
-// v. 2.0. If a copy of the MPL was not distributed with this file, You can 
+//
+// This Source Code Form is subject to the terms of the Mozilla Public License
+// v. 2.0. If a copy of the MPL was not distributed with this file, You can
 // obtain one at http://mozilla.org/MPL/2.0/.
 #include "local_basis.h"