Commit 2cb88145 authored by Jan Möbius's avatar Jan Möbius

More warnings fixed

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16351 383ad7c9-94d9-4d36-a494-682f7c89f535
parent a13e24e5
......@@ -384,10 +384,9 @@ void MeshComparePlugin::compare(int _sourceId,int _targetId,bool _computeDist, b
if (meanCurvature) {
TriMesh::Scalar curvature = 0.0;
curvature = compMesh->property(meanComp, v0) * projectedPoint[0];
curvature += compMesh->property(meanComp, v1) * projectedPoint[1];
curvature += compMesh->property(meanComp, v2) * projectedPoint[2];
TriMesh::Scalar curvature = compMesh->property(meanComp, v0) * projectedPoint[0] +
compMesh->property(meanComp, v1) * projectedPoint[1] +
compMesh->property(meanComp, v2) * projectedPoint[2];
const double curvatureDev = fabs(refMesh->property(meanRef, v_it) - curvature);
......@@ -399,10 +398,9 @@ void MeshComparePlugin::compare(int _sourceId,int _targetId,bool _computeDist, b
if (gaussCurvature) {
TriMesh::Scalar curvature = 0.0;
curvature = compMesh->property(gaussComp, v0) * projectedPoint[0];
curvature += compMesh->property(gaussComp, v1) * projectedPoint[1];
curvature += compMesh->property(gaussComp, v2) * projectedPoint[2];
TriMesh::Scalar curvature = compMesh->property(gaussComp, v0) * projectedPoint[0] +
compMesh->property(gaussComp, v1) * projectedPoint[1] +
compMesh->property(gaussComp, v2) * projectedPoint[2];
const double curvatureDev = fabs(refMesh->property(gaussRef, v_it) - curvature);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment