mirror of
https://github.com/3b1b/videos.git
synced 2025-08-31 21:58:59 +00:00
Minor clean up
This commit is contained in:
parent
8078388151
commit
ad5a3ac6cf
1 changed files with 3 additions and 1 deletions
|
@ -382,6 +382,8 @@ class HexagonStack(CubesAsHexagonTiling):
|
||||||
for y in range(self.n - x):
|
for y in range(self.n - x):
|
||||||
for z in range(self.n - x - y):
|
for z in range(self.n - x - y):
|
||||||
self.add_cube(self.get_new_cube(x, y))
|
self.add_cube(self.get_new_cube(x, y))
|
||||||
|
self.remove(self.base_cube)
|
||||||
|
self.cubes.set_fill(BLUE_D)
|
||||||
self.wait()
|
self.wait()
|
||||||
|
|
||||||
|
|
||||||
|
@ -1198,7 +1200,7 @@ class ShowRhombicDodecTesselation(Project4DCube):
|
||||||
N = 6
|
N = 6
|
||||||
coords = [
|
coords = [
|
||||||
coords
|
coords
|
||||||
for coords in it.product(*4 * [list(range(6))])
|
for coords in it.product(*4 * [list(range(N))])
|
||||||
if sum(coords) == 8
|
if sum(coords) == 8
|
||||||
]
|
]
|
||||||
pieces = Group(
|
pieces = Group(
|
||||||
|
|
Loading…
Add table
Reference in a new issue