summaryrefslogtreecommitdiffstats
path: root/Cubehole.cpp
diff options
context:
space:
mode:
authorConstantin Riß <constantin.riss@dre.de>2010-01-13 21:07:04 +0100
committerConstantin Riß <constantin.riss@dre.de>2010-01-13 21:07:04 +0100
commitd493571a6cd6a3adfce5a572ab451dd7c95197ac (patch)
treec8440c782dfc4faec99f737c9619336480e756be /Cubehole.cpp
parent1bcde14162e469919c16042f50b5d48f5fd9896e (diff)
downloadc3d-d493571a6cd6a3adfce5a572ab451dd7c95197ac.tar
c3d-d493571a6cd6a3adfce5a572ab451dd7c95197ac.zip
Das Programm läuft jetzt und die Cubeholes wurden verbessert.
Diffstat (limited to 'Cubehole.cpp')
-rw-r--r--Cubehole.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Cubehole.cpp b/Cubehole.cpp
index 03ddc28..0fc32ae 100644
--- a/Cubehole.cpp
+++ b/Cubehole.cpp
@@ -3,6 +3,11 @@
std::list<Triangle> Cubehole::getTriangles()
{
+ front.setPos(x, y, z+(depth/2-(depth-innerdepth)/4));
+ right.setPos(-z, y, x-(width/2-(width-innerwidth)/4));
+ back.setPos(-x, y, -z+(depth/2-(depth-innerdepth)/4));
+ left.setPos(z, y, -x-(width/2-(width-innerwidth)/4));
+
std::list<Triangle> triangles;
// width, height, depth