tetrahedron0 :: Cube -> Tetrahedron
tetrahedron0 c =
- Tetrahedron (Cube.fv c) v0' v1' v2' v3'
+ Tetrahedron (Cube.fv c) v0' v1' v2' v3' vol
where
v0' = center c
v1' = center (front_face c)
v2' = Face.v0 (front_face c)
v3' = Face.v1 (front_face c)
+ vol = 0
tetrahedron1 :: Cube -> Tetrahedron
tetrahedron1 c =
- Tetrahedron fv' v0' v1' v2' v3'
+ Tetrahedron fv' v0' v1' v2' v3' vol
where
v0' = center c
v1' = center (front_face c)
v2' = Face.v1 (front_face c)
v3' = Face.v2 (front_face c)
fv' = rotate ccwx (Cube.fv c)
+ vol = 0
tetrahedron2 :: Cube -> Tetrahedron
tetrahedron2 c =
- Tetrahedron fv' v0' v1' v2' v3'
+ Tetrahedron fv' v0' v1' v2' v3' vol
where
v0' = center c
v1' = center (front_face c)
v2' = Face.v2 (front_face c)
v3' = Face.v3 (front_face c)
fv' = rotate ccwx $ rotate ccwx $ Cube.fv c
+ vol = 0
tetrahedron3 :: Cube -> Tetrahedron
tetrahedron3 c =
- Tetrahedron fv' v0' v1' v2' v3'
+ Tetrahedron fv' v0' v1' v2' v3' vol
where
v0' = center c
v1' = center (front_face c)
v2' = Face.v3 (front_face c)
v3' = Face.v0 (front_face c)
fv' = rotate cwx (Cube.fv c)
+ vol = 0
tetrahedron4 :: Cube -> Tetrahedron
tetrahedron4 c =
- Tetrahedron fv' v0' v1' v2' v3'
+ Tetrahedron fv' v0' v1' v2' v3' vol
where
v0' = center c
v1' = center (top_face c)
v2' = Face.v0 (top_face c)
v3' = Face.v1 (top_face c)
fv' = rotate cwy (Cube.fv c)
+ vol = 0
tetrahedron5 :: Cube -> Tetrahedron
tetrahedron5 c =
- Tetrahedron fv' v0' v1' v2' v3'
+ Tetrahedron fv' v0' v1' v2' v3' vol
where
v0' = center c
v1' = center (top_face c)
v2' = Face.v1 (top_face c)
v3' = Face.v2 (top_face c)
fv' = rotate cwy $ rotate cwz $ Tetrahedron.fv (tetrahedron0 c)
+ vol = 0
tetrahedron6 :: Cube -> Tetrahedron
tetrahedron6 c =
- Tetrahedron fv' v0' v1' v2' v3'
+ Tetrahedron fv' v0' v1' v2' v3' vol
where
v0' = center c
v1' = center (top_face c)
fv' = rotate cwy $ rotate cwz
$ rotate cwz
$ Tetrahedron.fv (tetrahedron0 c)
+ vol = 0
tetrahedron7 :: Cube -> Tetrahedron
tetrahedron7 c =
- Tetrahedron fv' v0' v1' v2' v3'
+ Tetrahedron fv' v0' v1' v2' v3' vol
where
v0' = center c
v1' = center (top_face c)
v2' = Face.v3 (top_face c)
v3' = Face.v0 (top_face c)
fv' = rotate cwy $ rotate ccwz $ Tetrahedron.fv (tetrahedron0 c)
+ vol = 0
tetrahedron8 :: Cube -> Tetrahedron
tetrahedron8 c =
- Tetrahedron fv' v0' v1' v2' v3'
+ Tetrahedron fv' v0' v1' v2' v3' vol
where
v0' = center c
v1' = center (back_face c)
v2' = Face.v0 (back_face c)
v3' = Face.v1 (back_face c)
fv' = rotate cwy $ rotate cwy $ Tetrahedron.fv (tetrahedron0 c)
+ vol = 0
tetrahedron9 :: Cube -> Tetrahedron
tetrahedron9 c =
- Tetrahedron fv' v0' v1' v2' v3'
+ Tetrahedron fv' v0' v1' v2' v3' vol
where
v0' = center c
v1' = center (back_face c)
fv' = rotate cwy $ rotate cwy
$ rotate cwx
$ Tetrahedron.fv (tetrahedron0 c)
+ vol = 0
tetrahedron10 :: Cube -> Tetrahedron
tetrahedron10 c =
- Tetrahedron fv' v0' v1' v2' v3'
+ Tetrahedron fv' v0' v1' v2' v3' vol
where
v0' = center c
v1' = center (back_face c)
$ rotate cwx
$ Tetrahedron.fv (tetrahedron0 c)
+ vol = 0
tetrahedron11 :: Cube -> Tetrahedron
tetrahedron11 c =
- Tetrahedron fv' v0' v1' v2' v3'
+ Tetrahedron fv' v0' v1' v2' v3' vol
where
v0' = center c
v1' = center (back_face c)
fv' = rotate cwy $ rotate cwy
$ rotate ccwx
$ Tetrahedron.fv (tetrahedron0 c)
+ vol = 0
tetrahedron12 :: Cube -> Tetrahedron
tetrahedron12 c =
- Tetrahedron fv' v0' v1' v2' v3'
+ Tetrahedron fv' v0' v1' v2' v3' vol
where
v0' = center c
v1' = center (down_face c)
v2' = Face.v0 (down_face c)
v3' = Face.v1 (down_face c)
fv' = rotate ccwy (Tetrahedron.fv (tetrahedron0 c))
+ vol = 0
tetrahedron13 :: Cube -> Tetrahedron
tetrahedron13 c =
- Tetrahedron fv' v0' v1' v2' v3'
+ Tetrahedron fv' v0' v1' v2' v3' vol
where
v0' = center c
v1' = center (down_face c)
v2' = Face.v1 (down_face c)
v3' = Face.v2 (down_face c)
fv' = rotate ccwy $ rotate ccwz $ Tetrahedron.fv (tetrahedron0 c)
+ vol = 0
tetrahedron14 :: Cube -> Tetrahedron
tetrahedron14 c =
- Tetrahedron fv' v0' v1' v2' v3'
+ Tetrahedron fv' v0' v1' v2' v3' vol
where
v0' = center c
v1' = center (down_face c)
fv' = rotate ccwy $ rotate ccwz
$ rotate ccwz
$ Tetrahedron.fv (tetrahedron0 c)
+ vol = 0
tetrahedron15 :: Cube -> Tetrahedron
tetrahedron15 c =
- Tetrahedron fv' v0' v1' v2' v3'
+ Tetrahedron fv' v0' v1' v2' v3' vol
where
v0' = center c
v1' = center (down_face c)
v2' = Face.v3 (down_face c)
v3' = Face.v0 (down_face c)
fv' = rotate ccwy $ rotate cwz $ Tetrahedron.fv (tetrahedron0 c)
+ vol = 0
tetrahedron16 :: Cube -> Tetrahedron
tetrahedron16 c =
- Tetrahedron fv' v0' v1' v2' v3'
+ Tetrahedron fv' v0' v1' v2' v3' vol
where
v0' = center c
v1' = center (right_face c)
v2' = Face.v0 (right_face c)
v3' = Face.v1 (right_face c)
fv' = rotate ccwz (Tetrahedron.fv (tetrahedron0 c))
+ vol = 0
tetrahedron17 :: Cube -> Tetrahedron
tetrahedron17 c =
- Tetrahedron fv' v0' v1' v2' v3'
+ Tetrahedron fv' v0' v1' v2' v3' vol
where
v0' = center c
v1' = center (right_face c)
v2' = Face.v1 (right_face c)
v3' = Face.v2 (right_face c)
fv' = rotate ccwz $ rotate cwy $ Tetrahedron.fv (tetrahedron0 c)
+ vol = 0
tetrahedron18 :: Cube -> Tetrahedron
tetrahedron18 c =
- Tetrahedron fv' v0' v1' v2' v3'
+ Tetrahedron fv' v0' v1' v2' v3' vol
where
v0' = center c
v1' = center (right_face c)
fv' = rotate ccwz $ rotate cwy
$ rotate cwy
$ Tetrahedron.fv (tetrahedron0 c)
+ vol = 0
tetrahedron19 :: Cube -> Tetrahedron
tetrahedron19 c =
- Tetrahedron fv' v0' v1' v2' v3'
+ Tetrahedron fv' v0' v1' v2' v3' vol
where
v0' = center c
v1' = center (right_face c)
v3' = Face.v0 (right_face c)
fv' = rotate ccwz $ rotate ccwy
$ Tetrahedron.fv (tetrahedron0 c)
+ vol = 0
tetrahedron20 :: Cube -> Tetrahedron
tetrahedron20 c =
- Tetrahedron fv' v0' v1' v2' v3'
+ Tetrahedron fv' v0' v1' v2' v3' vol
where
v0' = center c
v1' = center (left_face c)
v2' = Face.v0 (left_face c)
v3' = Face.v1 (left_face c)
fv' = rotate cwz (Tetrahedron.fv (tetrahedron0 c))
+ vol = 0
tetrahedron21 :: Cube -> Tetrahedron
tetrahedron21 c =
- Tetrahedron fv' v0' v1' v2' v3'
+ Tetrahedron fv' v0' v1' v2' v3' vol
where
v0' = center c
v1' = center (left_face c)
v2' = Face.v1 (left_face c)
v3' = Face.v2 (left_face c)
fv' = rotate cwz $ rotate ccwy $ Tetrahedron.fv (tetrahedron0 c)
+ vol = 0
tetrahedron22 :: Cube -> Tetrahedron
tetrahedron22 c =
- Tetrahedron fv' v0' v1' v2' v3'
+ Tetrahedron fv' v0' v1' v2' v3' vol
where
v0' = center c
v1' = center (left_face c)
fv' = rotate cwz $ rotate ccwy
$ rotate ccwy
$ Tetrahedron.fv (tetrahedron0 c)
+ vol = 0
tetrahedron23 :: Cube -> Tetrahedron
tetrahedron23 c =
- Tetrahedron fv' v0' v1' v2' v3'
+ Tetrahedron fv' v0' v1' v2' v3' vol
where
v0' = center c
v1' = center (left_face c)
v3' = Face.v0 (left_face c)
fv' = rotate cwz $ rotate cwy
$ Tetrahedron.fv (tetrahedron0 c)
+ vol = 0
tetrahedra :: Cube -> [Tetrahedron]