3b1b / 3b1b/manim

manim not able to parse z type in SVG path

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

描述

I am using the `circuitikz` library in LateX to draw some circuits and animate using manim. I encountered problems with some components as they were showing incomplete in manim. The SVG file generated is correct and is showing all the components correctly.

I did some further digging and found out that manim is not recognizing the `z (close path)` type in the SVG file. This is making some of the diagrams incomplete in manim. The svg parser cannot read the `z` path type.

貢獻指南

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

研究方向

查看 manim 中的 SVG 解析程式碼,可能在類似 `svg_parser.py` 或 `svg_paths.py` 的模組中。找出處理路徑指令(M、L、C 等)的位置,並為 'z'(close path)指令新增支援。透過使用 circuitikz 建立一個帶有閉合路徑的 SVG 來測試,並驗證它在 manim 中正確渲染。檢查現有的 SVG 解析測試,了解如何新增新的測試案例。

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

評估

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

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

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