-tetrahedra c =
- [ tetrahedron c n | n <- [0..23] ]
-
--- | All completely contained in the front half of the cube.
-front_half_tetrahedra :: Cube -> [Tetrahedron]
-front_half_tetrahedra c =
- [ tetrahedron c n | n <- [0,1,2,3,6,12,19,21] ]
-
--- | All tetrahedra completely contained in the top half of the cube.
-top_half_tetrahedra :: Cube -> [Tetrahedron]
-top_half_tetrahedra c =
- [ tetrahedron c n | n <- [4,5,6,7,0,10,16,20] ]
-
--- | All tetrahedra completely contained in the back half of the cube.
-back_half_tetrahedra :: Cube -> [Tetrahedron]
-back_half_tetrahedra c =
- [ tetrahedron c n | n <- [8,9,10,11,4,14,17,23] ]
-
--- | All tetrahedra completely contained in the down half of the cube.
-down_half_tetrahedra :: Cube -> [Tetrahedron]
-down_half_tetrahedra c =
- [ tetrahedron c n | n <- [12,13,14,15,2,8,18,22] ]
-
--- | All tetrahedra completely contained in the right half of the cube.
-right_half_tetrahedra :: Cube -> [Tetrahedron]
-right_half_tetrahedra c =
- [ tetrahedron c n | n <- [16,17,18,19,1,5,9,13] ]
-
--- | All tetrahedra completely contained in the left half of the cube.
-left_half_tetrahedra :: Cube -> [Tetrahedron]
-left_half_tetrahedra c =
- [ tetrahedron c n | n <- [20,21,22,23,3,7,11,15] ]
+tetrahedra c = [ tetrahedron c n | n <- [0..23] ]
+
+front_left_top_tetrahedra :: Cube -> V.Vector Tetrahedron
+front_left_top_tetrahedra c =
+ V.singleton (tetrahedron c 0) `V.snoc`
+ (tetrahedron c 3) `V.snoc`
+ (tetrahedron c 6) `V.snoc`
+ (tetrahedron c 7) `V.snoc`
+ (tetrahedron c 20) `V.snoc`
+ (tetrahedron c 21)
+
+front_left_down_tetrahedra :: Cube -> V.Vector Tetrahedron
+front_left_down_tetrahedra c =
+ V.singleton (tetrahedron c 0) `V.snoc`
+ (tetrahedron c 2) `V.snoc`
+ (tetrahedron c 3) `V.snoc`
+ (tetrahedron c 12) `V.snoc`
+ (tetrahedron c 15) `V.snoc`
+ (tetrahedron c 21)
+
+front_right_top_tetrahedra :: Cube -> V.Vector Tetrahedron
+front_right_top_tetrahedra c =
+ V.singleton (tetrahedron c 0) `V.snoc`
+ (tetrahedron c 1) `V.snoc`
+ (tetrahedron c 5) `V.snoc`
+ (tetrahedron c 6) `V.snoc`
+ (tetrahedron c 16) `V.snoc`
+ (tetrahedron c 19)
+
+front_right_down_tetrahedra :: Cube -> V.Vector Tetrahedron
+front_right_down_tetrahedra c =
+ V.singleton (tetrahedron c 1) `V.snoc`
+ (tetrahedron c 2) `V.snoc`
+ (tetrahedron c 12) `V.snoc`
+ (tetrahedron c 13) `V.snoc`
+ (tetrahedron c 18) `V.snoc`
+ (tetrahedron c 19)
+
+back_left_top_tetrahedra :: Cube -> V.Vector Tetrahedron
+back_left_top_tetrahedra c =
+ V.singleton (tetrahedron c 0) `V.snoc`
+ (tetrahedron c 3) `V.snoc`
+ (tetrahedron c 6) `V.snoc`
+ (tetrahedron c 7) `V.snoc`
+ (tetrahedron c 20) `V.snoc`
+ (tetrahedron c 21)
+
+back_left_down_tetrahedra :: Cube -> V.Vector Tetrahedron
+back_left_down_tetrahedra c =
+ V.singleton (tetrahedron c 8) `V.snoc`
+ (tetrahedron c 11) `V.snoc`
+ (tetrahedron c 14) `V.snoc`
+ (tetrahedron c 15) `V.snoc`
+ (tetrahedron c 22) `V.snoc`
+ (tetrahedron c 23)
+
+back_right_top_tetrahedra :: Cube -> V.Vector Tetrahedron
+back_right_top_tetrahedra c =
+ V.singleton (tetrahedron c 4) `V.snoc`
+ (tetrahedron c 5) `V.snoc`
+ (tetrahedron c 9) `V.snoc`
+ (tetrahedron c 10) `V.snoc`
+ (tetrahedron c 16) `V.snoc`
+ (tetrahedron c 17)
+
+back_right_down_tetrahedra :: Cube -> V.Vector Tetrahedron
+back_right_down_tetrahedra c =
+ V.singleton (tetrahedron c 8) `V.snoc`
+ (tetrahedron c 9) `V.snoc`
+ (tetrahedron c 13) `V.snoc`
+ (tetrahedron c 14) `V.snoc`
+ (tetrahedron c 17) `V.snoc`
+ (tetrahedron c 18)