Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Reduced default resolution of :class:`~.Dot3D` (#1841)

Joy Bhallae4de8b728f96
diff --git a/manim/mobject/three_dimensions.py b/manim/mobject/three_dimensions.py
index cf1e0e6bd..87f09c152 100644
--- a/manim/mobject/three_dimensions.py
+++ b/manim/mobject/three_dimensions.py
@@ -339,8 +339,15 @@ class Dot3D(Sphere):
self.add(axes, dot_1, dot_2,dot_3)
"""
- def __init__(self, point=ORIGIN, radius=DEFAULT_DOT_RADIUS, color=WHITE, **kwargs):
- Sphere.__init__(self, center=point, radius=radius, **kwargs)
+ def __init__(
+ self,
+ point=ORIGIN,
+ radius=DEFAULT_DOT_RADIUS,
+ color=WHITE,
+ resolution=(8, 8),
+ **kwargs
+ ):
+ super().__init__(center=point, radius=radius, resolution=resolution, **kwargs)
self.set_color(color)
diff --git a/tests/control_data/graphical_units_data/polyhedra/Dodecahedron.npz b/tests/control_data/graphical_units_data/polyhedra/Dodecahedron.npz
index 4ad5cdc2a..feedc4f16 100644
Binary files a/tests/control_data/graphical_units_data/polyhedra/Dodecahedron.npz and b/tests/control_data/graphical_units_data/polyhedra/Dodecahedron.npz differ
diff --git a/tests/control_data/graphical_units_data/polyhedra/Icosahedron.npz b/tests/control_data/graphical_units_data/polyhedra/Icosahedron.npz
index d46cf664d..26feec1ec 100644
Binary files a/tests/control_data/graphical_units_data/polyhedra/Icosahedron.npz and b/tests/control_data/graphical_units_data/polyhedra/Icosahedron.npz differ
diff --git a/tests/control_data/graphical_units_data/polyhedra/Octahedron.npz b/tests/control_data/graphical_units_data/polyhedra/Octahedron.npz
index 417644aaa..d75ed1f6a 100644
Binary files a/tests/control_data/graphical_units_data/polyhedra/Octahedron.npz and b/tests/control_data/graphical_units_data/polyhedra/Octahedron.npz differ
diff --git a/tests/control_data/graphical_units_data/polyhedra/Tetrahedron.npz b/tests/control_data/graphical_units_data/polyhedra/Tetrahedron.npz
index 0e7f4da14..375ca897a 100644
Binary files a/tests/control_data/graphical_units_data/polyhedra/Tetrahedron.npz and b/tests/control_data/graphical_units_data/polyhedra/Tetrahedron.npz differ
diff --git a/tests/control_data/graphical_units_data/threed/Dot3D.npz b/tests/control_data/graphical_units_data/threed/Dot3D.npz
index 3db9daf0c..d562b71bd 100644
Binary files a/tests/control_data/graphical_units_data/threed/Dot3D.npz and b/tests/control_data/graphical_units_data/threed/Dot3D.npz differ