summaryrefslogtreecommitdiffstats
path: root/Trapezocube.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Trapezocube.cpp')
-rw-r--r--Trapezocube.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Trapezocube.cpp b/Trapezocube.cpp
index 0412413..5825efc 100644
--- a/Trapezocube.cpp
+++ b/Trapezocube.cpp
@@ -16,6 +16,7 @@ std::list<Triangle> Trapezocube::getTriangles()
triangles.push_back(Triangle(vmml::vec3f(x-widthfront/2, y-height/2, z+depth/2),
vmml::vec3f(x+widthfront/2, y-height/2, z+depth/2),
vmml::vec3f(x+widthfront/2, y+height/2, z+depth/2), color));
+
// Back face
triangles.push_back(Triangle(vmml::vec3f(x-widthback/2, y+height/2, z-depth/2),
vmml::vec3f(x+widthback/2, y+height/2, z-depth/2),