summaryrefslogtreecommitdiffstats
path: root/Cubehole.cpp
blob: 03ddc2888c7ce7887a9f6ed74432ff7677ab11a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "Cubehole.h"
#include "gl.h"

std::list<Triangle> Cubehole::getTriangles()
{
  std::list<Triangle> triangles;
  // width, height, depth

  std::list<Triangle> tf = front.getTriangles();
  triangles.splice(triangles.end(), tf);
  std::list<Triangle> tr = right.getTriangles();
  triangles.splice(triangles.end(), tr);
  std::list<Triangle> tb = back.getTriangles();
  triangles.splice(triangles.end(), tb);
  std::list<Triangle> tl = left.getTriangles();
  triangles.splice(triangles.end(), tl);

  return triangles;
}