Correction des split() qui renvoyaient true au lieu de false.
This commit is contained in:
parent
d5bdb87560
commit
a726e13737
1
lod.cpp
1
lod.cpp
|
@ -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;
|
||||||
|
|
|
@ -26,8 +26,7 @@ void BatimentQuadJardin::getBoundingBoxPoints() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool BatimentQuadJardin::split() {
|
bool BatimentQuadJardin::split() {
|
||||||
|
return false;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void BatimentQuadJardin::triangulation() {
|
void BatimentQuadJardin::triangulation() {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,6 @@ void RouteQuadCarrefour::getBoundingBoxPoints() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RouteQuadCarrefour::split() {
|
bool RouteQuadCarrefour::split() {
|
||||||
// TODO
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,6 @@ void RouteQuadChaussee::getBoundingBoxPoints() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RouteQuadChaussee::split() {
|
bool RouteQuadChaussee::split() {
|
||||||
// TODO
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,6 @@ void TrottoirQuadNormal::getBoundingBoxPoints() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TrottoirQuadNormal::split() {
|
bool TrottoirQuadNormal::split() {
|
||||||
// TODO
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user