Correction d'un passage de valeur non initialisée.

This commit is contained in:
Yoann 2012-01-11 09:48:20 +01:00
parent 2b97bdd309
commit 3f4674803e
2 changed files with 6 additions and 5 deletions

View File

@ -12,7 +12,8 @@ void BatimentQuadMur::getBoundingBoxPoints() {
}
void BatimentQuadMur::setWindow(bool val) {
this->window = val;
val = val;
/*this->window = val;
Quad q = Quad(ch[SE],c[SE],c[SW],ch[SW]);
int lr = (q.length(S) - 100)/40;
std::cout << q.inset(E,60).surface() << std::endl;
@ -20,7 +21,7 @@ void BatimentQuadMur::setWindow(bool val) {
Quad wBack = wFront.offsetNormal(28);
windowPos = Quad(wBack[SE],wFront[SE],wFront[SW],wBack[SW]);
windowPosh = Quad(wBack[NE],wFront[NE],wFront[NW],wBack[NW]);
*/
//std::cout << "lr" << lr << std::endl;
//std::cout << wFront[NE] << std::endl;
//std::cout << q[SE] << std::endl;
@ -38,9 +39,9 @@ bool BatimentQuadMur::split() {
Quad bottom = c;
addChild(new BatimentQuadMur(c,windowPos));
/*addChild(new BatimentQuadMur(c,windowPos));
addChild(new BatimentQuadMur(windowPosh,ch));
*/
return true;
}

View File

@ -6,7 +6,7 @@ BatimentQuadToit::BatimentQuadToit(Quad _c, int _type) : Chose(), c(_c), type(_t
void BatimentQuadToit::getBoundingBoxPoints() {
addBBPoints(c);
addBBPoints(c + Vertex(0,0,height)); // TODO
addBBPoints(c + Vertex(0,0,200)); // TODO
}
void BatimentQuadToit::triangulation() {