src/kdtree.cc
branchpyrit
changeset 28 ffe83ca074f3
parent 25 b8232edee786
child 29 574c34441a1c
--- a/src/kdtree.cc	Fri Dec 07 16:39:42 2007 +0100
+++ b/src/kdtree.cc	Sat Dec 08 12:37:45 2007 +0100
@@ -183,13 +183,13 @@
 		return;
 	}
 
-#if 0
+#if 1
 // export kd-tree as .obj for visualization
 // this would be hard to reconstruct later
 	static ofstream F("kdtree.obj");
 	Vector3 v;
 	static int f=0;
-	v.cell[axis] = splitpos->pos;
+	v.cell[axis] = split;
 	v.cell[(axis+1)%3] = bbox.L.cell[(axis+1)%3];
 	v.cell[(axis+2)%3] = bbox.L.cell[(axis+2)%3];
 	F << "v " << v.x << " " << v.y << " " << v.z << endl;