Former-commit-id: 18b418759db2036ee19e726750a4777963c1f007
@@ -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;
@@ -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"