From 48f65697f018566b2a3c906ee528bb8dbf4d22ff Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 24 Sep 2015 16:41:58 +0000 Subject: [PATCH] removed unused var --- vcg/space/index/kdtree/kdtree.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/vcg/space/index/kdtree/kdtree.h b/vcg/space/index/kdtree/kdtree.h index cdbe19eb..edb22279 100755 --- a/vcg/space/index/kdtree/kdtree.h +++ b/vcg/space/index/kdtree/kdtree.h @@ -157,7 +157,7 @@ namespace vcg { // compute the AABB of the input mPoints[0] = points[0]; mAABB.Set(mPoints[0]); - for (unsigned int i=1 ; i @@ -469,7 +470,7 @@ namespace vcg { node.firstChildId = mNodes.size(); mNodes.resize(mNodes.size()+2); - int leftLevel, rightLevel; + int leftLevel, rightLevel; { // left child @@ -480,7 +481,7 @@ namespace vcg { child.leaf = 1; child.start = start; child.size = midId - start; - leftLevel = level; + leftLevel = level; } else { @@ -498,7 +499,7 @@ namespace vcg { child.leaf = 1; child.start = midId; child.size = end - midId; - rightLevel = level; + rightLevel = level; } else { @@ -506,9 +507,9 @@ namespace vcg { rightLevel = createTree(childId, midId, end, level+1, targetCellSize, targetMaxDepth); } } - if (leftLevel > rightLevel) - return leftLevel; - return rightLevel; + if (leftLevel > rightLevel) + return leftLevel; + return rightLevel; } }