--- a/include/kdtree.h Thu Apr 24 18:12:32 2008 +0200
+++ b/include/kdtree.h Sun Apr 27 09:44:49 2008 +0200
@@ -53,10 +53,10 @@
~KdNode();
void setLeaf() { flags |= 3; };
- const bool isLeaf() const { return (flags & 3) == 3; };
+ bool isLeaf() const { return (flags & 3) == 3; };
void setAxis(int aAxis) { flags &= ~3; flags |= aAxis; };
- const int getAxis() const { return flags & 3; };
+ int getAxis() const { return flags & 3; };
void setSplit(Float aSplit) { split = aSplit; };
const Float& getSplit() const { return split; };
@@ -86,9 +86,11 @@
void addShape(Shape* aShape) { Container::addShape(aShape); built = false; };
Shape *nearest_intersection(const Shape *origin_shape, const Ray &ray,
Float &nearest_distance);
+ void packet_intersection(const Shape **origin_shapes, const RayPacket &rays,
+ Float *nearest_distances, Shape **nearest_shapes);
void optimize() { build(); };
void build();
- const bool isBuilt() const { return built; };
+ bool isBuilt() const { return built; };
KdNode *getRootNode() const { return root; };
void setMaxDepth(int md) { max_depth = md; };