Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

use circle instead

kolibril13fe9d2b5f37cf
diff --git a/docs/source/examples/3d.rst b/docs/source/examples/3d.rst
index 9c25ab664..f9426862b 100644
--- a/docs/source/examples/3d.rst
+++ b/docs/source/examples/3d.rst
@@ -1,5 +1,18 @@
+
3D Scenes
=================================
+.. manim:: ThreeDSphere
+ :save_last_frame:
+ class FixedInFrameMObjectTest(ThreeDScene):
+ def construct(self):
+ axes = ThreeDAxes()
+ self.set_camera_orientation(phi=75 * DEGREES, theta=-45 * DEGREES)
+ text3d = Text("This is a 3D text")
+ self.add_fixed_in_frame_mobjects(text3d)
+ text3d.to_corner(UL)
+ self.add(axes)
+ self.wait()
+
.. manim:: ThreeDSphere
:save_last_frame:
diff --git a/tests/control_data/graphical_units_data/threed/FixedInFrameMObjectTest.npz b/tests/control_data/graphical_units_data/threed/FixedInFrameMObjectTest.npz
index ea3bedfd9..c14f3c610 100644
Binary files a/tests/control_data/graphical_units_data/threed/FixedInFrameMObjectTest.npz and b/tests/control_data/graphical_units_data/threed/FixedInFrameMObjectTest.npz differ
diff --git a/tests/test_graphical_units/test_threed.py b/tests/test_graphical_units/test_threed.py
index 0bbc5b89c..93ac80e5d 100644
--- a/tests/test_graphical_units/test_threed.py
+++ b/tests/test_graphical_units/test_threed.py
@@ -38,12 +38,10 @@ class FixedInFrameMObjectTest(ThreeDScene):
def construct(self):
axes = ThreeDAxes()
self.set_camera_orientation(phi=75 * DEGREES, theta=-45 * DEGREES)
- text3d = Text("This is a 3D text")
- self.add_fixed_in_frame_mobjects(text3d)
- text3d.to_corner(UL)
+ circ = Circle()
+ self.add_fixed_in_frame_mobjects(circ)
+ circ.to_corner(UL)
self.add(axes)
- self.wait()
-
MODULE_NAME = "threed"