Skip to content

Commit

Permalink
lscm: fix sign for the area term
Browse files Browse the repository at this point in the history
  • Loading branch information
kenshi84 committed Jul 13, 2021
1 parent c60a948 commit e4611e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/igl/lscm.cpp
Expand Up @@ -43,7 +43,7 @@ IGL_INLINE bool igl::lscm(
}

// Minimize the LSCM energy
SparseMatrix<double> Q = -L_flat + 2.*A;
SparseMatrix<double> Q = -L_flat - 2.*A;
const VectorXd B_flat = VectorXd::Zero(V.rows()*2);
igl::min_quad_with_fixed_data<double> data;
if(!igl::min_quad_with_fixed_precompute(Q,b_flat,SparseMatrix<double>(),true,data))
Expand Down

0 comments on commit e4611e8

Please sign in to comment.