3b1b / manim

Animation engine for explanatory math videos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rotating a Circle about UP axis breaks the rendering

Batres3 opened this issue · comments

Describe the bug

When a circle is rotated about the UP axis it breaks the rendering, it seems to end up displaying the triangles where the line is usually rendered, but it colors the whole triangle instead of just the circle (this happens at around -45 degrees)
Code:

from manimlib import *

class Test(Scene):
    def construct(self):
        circle = Circle()
        self.add(circle)
        self.play(Rotate(circle, -45*DEGREES, UP))
        self.wait(5)

test = Test()
test.construct()

Wrong display or Error traceback:

image
Ignore the grey tint.

Additional context

Yes, I have the same issue.

Hello @Batres3,

I have executed the same code on my system without encountering any errors. This discrepancy might be due to the difference in the libraries we are using—you're using manimlib, whereas I am using manim.

from manim import *

class Test(Scene):
def construct(self):
circle = Circle()
self.add(circle)
self.play(Rotate(circle, -45*DEGREES, DOWN))
self.wait(5)

test = Test()
test.construct()
test.render(preview=True)

If you continue to experience issues, please let me know in this thread so we can troubleshoot further.

Best regards,
Sahil