src/kdtree.cc
branchpyrit
changeset 25 b8232edee786
parent 24 d0d76e8a5203
child 28 ffe83ca074f3
--- a/src/kdtree.cc	Wed Dec 05 18:54:23 2007 +0100
+++ b/src/kdtree.cc	Fri Dec 07 14:56:39 2007 +0100
@@ -357,9 +357,9 @@
 
 			/* setup the new exit point and push it onto stack */
 			exPt = new StackElem(farchild, t, Vector3());
-			exPt->pb[axis] = splitVal;
-			exPt->pb[(axis+1)%3] = ray.o.cell[(axis+1)%3] + t * ray.dir.cell[(axis+1)%3];
-			exPt->pb[(axis+2)%3] = ray.o.cell[(axis+2)%3] + t * ray.dir.cell[(axis+2)%3];
+			exPt->pb.cell[axis] = splitVal;
+			exPt->pb.cell[(axis+1)%3] = ray.o.cell[(axis+1)%3] + t * ray.dir.cell[(axis+1)%3];
+			exPt->pb.cell[(axis+2)%3] = ray.o.cell[(axis+2)%3] + t * ray.dir.cell[(axis+2)%3];
 			st.push_back(exPt);
 		} /* while */