www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 8ff03fb150e718249a71a4cfb42f5cd630c75380
parent 622f0ad3fc9f6a12da81568d921c6053c76bc267
Author: Yoann <yoann.b87@voila.fr>
Date:   Fri,  6 Jan 2012 10:52:10 +0100

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

Diffstat:
Mrules/batiment/batimentquadblock.cpp | 11+++++++++++
Mrules/batiment/batimentquadblock.hh | 1+
2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/rules/batiment/batimentquadblock.cpp b/rules/batiment/batimentquadblock.cpp @@ -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); } diff --git a/rules/batiment/batimentquadblock.hh b/rules/batiment/batimentquadblock.hh @@ -11,6 +11,7 @@ class BatimentQuadBlock : public Chose { public : BatimentQuadBlock(Quad c, int height); + virtual bool split(); virtual void triangulation(); virtual void getBoundingBoxPoints(); };