Calculate a cuboid's triangles