diff -r e9bb83c2b8b9 -r ffe83ca074f3 src/kdtree.cc --- 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;