3b1b / 3b1b/manim

DashedVMobject not returning correct output

未關閉
#1,009 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
93.9k
分支
7.7k
平均合併
2 天 13 小時
30 天內合併 PR
4

描述

When trying to draw a dashed line with custom length (width), it returns the continous version of the line.

```python
projection_line = DashedVMobject(
Line(point_a, point_b).set_width(100).set_color(YELLOW)
)
```

Also tried:
```python
projection_line = DashedVMobject(
Line(point_a, point_b).set_width(100)
).set_color(YELLOW)
```

And:
```python
projection_line = DashedVMobject(
Line(point_a, point_b)
).set_color(YELLOW).set_width(100)
```
![image](https://user-images.githubusercontent.com/18668535/80314346-a7f6fa00-87b6-11ea-9f59-b6c7976bffb3.png)

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

查看 manim/mobject/types/vectorized_mobject.py 中的 DashedVMobject 類。了解它如何建立虛線以及 set_width 與它如何互動。執行提供的程式碼片段來重現此問題,然後追蹤方法呼叫,看看在設定 width 時 dash 生成失敗的位置。

由索引模型根據 Issue 內容生成。

評估

領域
computer-graphics
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。