Text archives Help
- From: "Thiago Ize" <thiago@sci.utah.edu>
- To: manta@sci.utah.edu
- Subject: [Manta] r2230 - trunk/Model/Groups
- Date: Mon, 28 Apr 2008 02:43:19 -0600 (MDT)
Author: thiago
Date: Mon Apr 28 02:43:17 2008
New Revision: 2230
Modified:
trunk/Model/Groups/KDTree.cc
Log:
Fixed an evil bug that was causing splits at -1 offset to register as
leaves instead of actually splitting.
Modified: trunk/Model/Groups/KDTree.cc
==============================================================================
--- trunk/Model/Groups/KDTree.cc (original)
+++ trunk/Model/Groups/KDTree.cc Mon Apr 28 02:43:17 2008
@@ -272,7 +272,8 @@
}
}
DBG(cout << "node " << nodeID << " bestSplit " << bestSplit << " dim " <<
bestDim << endl);
- if (bestSplit == -1) {
+
+ if (bestDim == -1) {
// no split found ...
makeLeaf(nodeID,primitiveID);
DBG(cout << "leaf : " << nodeID << " " << primitiveID.size() << endl);
- [Manta] r2230 - trunk/Model/Groups, Thiago Ize, 04/28/2008
Archive powered by MHonArc 2.6.16.