Correction des split() qui renvoyaient true au lieu de false.

This commit is contained in:
Georges Dupéron 2011-12-22 12:46:56 +01:00
parent d5bdb87560
commit a726e13737
7 changed files with 3 additions and 7 deletions

View File

@ -32,7 +32,6 @@ void Lod::setCamera(Vertex newCamera) {
Chose* c; Chose* c;
int pos = NegateOdd(camera[i>>1], i); int pos = NegateOdd(camera[i>>1], i);
while((c = split[2*i+1].popIfLessThan(pos))) { while((c = split[2*i+1].popIfLessThan(pos))) {
std::cout << "soi " << (int)(c) << std::endl;
if(c->lod.inCounter == 5) { if(c->lod.inCounter == 5) {
for(int j = 0; j < 6; j++) { for(int j = 0; j < 6; j++) {
if(i == j) continue; if(i == j) continue;

View File

@ -26,8 +26,7 @@ void BatimentQuadJardin::getBoundingBoxPoints() {
} }
bool BatimentQuadJardin::split() { bool BatimentQuadJardin::split() {
return false;
return true;
} }
void BatimentQuadJardin::triangulation() { void BatimentQuadJardin::triangulation() {

View File

@ -19,7 +19,7 @@ void BatimentQuadPont::getBoundingBoxPoints() {
} }
bool BatimentQuadPont::split() { bool BatimentQuadPont::split() {
return true; return false;
} }
float ct(float x) { float ct(float x) {

View File

@ -50,6 +50,7 @@ Chose* QuartierQuad::factory(int seed, int n, Vertex ne, Vertex se, Vertex sw, V
} }
bool QuartierQuad::split() { bool QuartierQuad::split() {
std::cout << "ERROR : QuartierQuad cannot be split." << std::endl;
return false; return false;
} }

View File

@ -25,7 +25,6 @@ void RouteQuadCarrefour::getBoundingBoxPoints() {
} }
bool RouteQuadCarrefour::split() { bool RouteQuadCarrefour::split() {
// TODO
return false; return false;
} }

View File

@ -25,7 +25,6 @@ void RouteQuadChaussee::getBoundingBoxPoints() {
} }
bool RouteQuadChaussee::split() { bool RouteQuadChaussee::split() {
// TODO
return false; return false;
} }

View File

@ -28,7 +28,6 @@ void TrottoirQuadNormal::getBoundingBoxPoints() {
} }
bool TrottoirQuadNormal::split() { bool TrottoirQuadNormal::split() {
// TODO
return false; return false;
} }