Début de la décomposition des blocks de maison en murs.

This commit is contained in:
Yoann 2012-01-06 10:52:10 +01:00
parent 622f0ad3fc
commit 8ff03fb150
2 changed files with 12 additions and 0 deletions

View File

@ -9,6 +9,17 @@ void BatimentQuadBlock::getBoundingBoxPoints() {
addBBPoints(c + Vertex(0,0,height)); // TODO
}
bool BatimentQuadBlock::split() {
Quad me = c;
Quad ms = c;
Quad mw = c;
Quad mn = c;
me[NW] = me[NE] + ((me[NW] - me[NW]) / me.length(N))*150;
//TODO les autres côtés.
return false;
}
void BatimentQuadBlock::triangulation() {
addGPUOcto(c, c + Vertex(0,0,height), 0xF1, 0xE0, 0xE0);
}

View File

@ -11,6 +11,7 @@ class BatimentQuadBlock : public Chose {
public :
BatimentQuadBlock(Quad c, int height);
virtual bool split();
virtual void triangulation();
virtual void getBoundingBoxPoints();
};