3b1b / 3b1b/manim

Wrong curve when using Manim Ellipse

Đang mở
#2,436 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Python
Star
93.8k
Fork
7.7k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

### 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().

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.