summaryrefslogtreecommitdiff
path: root/quadtree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quadtree.cpp')
-rw-r--r--quadtree.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/quadtree.cpp b/quadtree.cpp
index 1f2dd4a..8bc366c 100644
--- a/quadtree.cpp
+++ b/quadtree.cpp
@@ -1,9 +1,6 @@
#include "quadtree.h"
#include "vector.h"
-#include <boost/format.hpp>
-#include <boost/timer.hpp>
-
#include "gl.h"
#include <cmath>
@@ -333,7 +330,6 @@ Quadtree::Quadtree(int width, int height, float *heightmap) {
root = new QuadChunk(this, 0, 0, width-1, height-1);
- boost::timer t;
normals = new Vector3[width*height];
for(int x = 0; x < width; x++) {
for(int y = 0; y < height; y++) {
@@ -362,12 +358,9 @@ Quadtree::Quadtree(int width, int height, float *heightmap) {
N += V.cross(U);
}
}
- if(N.y < 0)
- std::cout << N.str() << std::endl;
normals[x*height + y] = N / N.length();
}
}
- std::cout << "normal time: " << t.elapsed() << std::endl;
}
Quadtree::~Quadtree() {