Skip to content

Wrong curve when using Manim Ellipse #2436

@Igittigitt24

Description

@Igittigitt24

Describe the bug

The curve of the ellipse is too small!
The curve must interpolate the four vertices A,B,C,D but it doesn't!

Code:

from manim import *
class EllipseExample(Scene):
    def construct(self):
        w, h = 3.0, 2.0
        ellipse_1 = Ellipse(width=w*2, height=h*2, color=BLUE_B)
        self.add(ellipse_1)
        A, B, C, D = Dot([-w,0,0]), Dot([w,0,0]), Dot([0,-h,0]), Dot([0,h,0])
        self.add(A, B, C, D)
        self.add(Line([-w*1.1, 0, 0], [w*1.1, 0, 0], color=GRAY))
        self.add(Line([0, -h*1.1, 0], [0, h*1.1, 0], color=GRAY))

Wrong display or Error traceback:

Image

Additional context

Apparently the internally used points are wrong, see get_shader_data().

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions