manim icon indicating copy to clipboard operation
manim copied to clipboard

Error of annulus rendering

Open Dagwbl opened this issue 3 years ago • 2 comments

Describe the error

When I write a simple script to plot an annulus, I meet an Expected condition. Like this, But I want to fill the entire annulus. annulus

Code and Error

Code:

from manimlib import *
from os import system


class annulus(Scene):
    def construct(self):
        annulus = Annulus(
            inner_radius=2,
            outer_radius=3,
            # color=BLUE_A,
            fill_opacity=0.8
        )
        annulus.set_color(BLUE_E)

        self.add(annulus)
        



if __name__=="__main__":
    system("manimgl annulus.py annulus -so") 

Error:

No error traceback.

Environment

OS System: Windows 11DEV manim version: master 0.13 python version:3.8.12

Dagwbl avatar Jan 25 '22 10:01 Dagwbl

Try: Annulus(...).reverse_points(). (But I don't know why)

TonyCrane avatar Jan 25 '22 10:01 TonyCrane

This is a way and I successfully render it. Thank you, but I still want to know what happened in this.

Dagwbl avatar Jan 25 '22 10:01 Dagwbl