Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fix cube

Grant Sanderson26b977febef0
diff --git a/mobject/three_dimensions.py b/mobject/three_dimensions.py
index 91954352a..e9f31bc5a 100644
--- a/mobject/three_dimensions.py
+++ b/mobject/three_dimensions.py
@@ -96,7 +96,7 @@ class ParametricSurface(VGroup):
class Sphere(ParametricSurface):
CONFIG = {
"resolution": (12, 24),
- "radius": 3,
+ "radius": 1,
"u_min": 0.001,
"u_max": PI - 0.001,
"v_min": 0,
@@ -128,8 +128,9 @@ class Cube(VGroup):
def generate_points(self):
for vect in IN, OUT, LEFT, RIGHT, UP, DOWN:
- face = ThreeDVMobject(
- Square(side_length=self.side_length)
+ face = Square(
+ side_length=self.side_length,
+ shade_in_3d=True,
)
face.make_jagged()
face.flip()