ShowCreation not working for 3d Mobjects
See original GitHub issueBug
ShowCreation Animation is not working for three-dimensional mobjects.
Code:
class CubeCreation(Scene):
def construct(self):
cube = Cube()
self.add(cube)
self.play(ShowCreation(cube))
self.wait()
class SphereCreation(Scene):
def construct(self):
sphere = Sphere()
self.add(sphere)
self.play(ShowCreation(sphere))
self.wait()
Error traceback: For Cube Creation, I am getting this:
“…manim\manimlib\animation\creation.py”, line 30, in interpolate_submobject start_submob, *self.get_bounds(alpha)
“…manim\manimlib\mobject\types\surface.py”, line 113, in pointwise_become_partial for arr in smobject.get_surface_points_and_nudged_points()
“…manim\manimlib\mobject\types\surface.py”, line 132, in get_partial_points_array col = interpolate(points[:, index], points[:, index + 1], residue)
“…manim\manimlib\mobject\types\surface.py”, line 113, in <listcomp> for arr in smobject.get_surface_points_and_nudged_points()
IndexError: index 0 is out of bounds for axis 1 with size 0
For SphereCreation,
The video is rendered but there is no sphere in the video, it’s just blank background.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Thanks for pointing this out, I believe it is now fixed. Feel free to reopen if other issues arise.
It working now, thanks