Skip to content
Snippets Groups Projects
Commit 610447b1 authored by Emilie Marchandise's avatar Emilie Marchandise
Browse files

corrected meshMetric::HESSIAN (oups)

parent 581c0eb6
No related branches found
No related tags found
No related merge requests found
......@@ -155,6 +155,7 @@ void meshMetric::computeHessian( v2t_cont adj){
double gr2 = result(2);
double gr3 = (_dim==2) ? 0.0:result(3);
double norm = sqrt(gr1*gr1+gr2*gr2+gr3*gr3);
if (norm == 0.0 || _technique == meshMetric::HESSIAN) norm = 1.0;
grads[ver] = SVector3(gr1/norm,gr2/norm,gr3/norm);
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment