feat: P07小臂骨架顶板整条加高19mm补强+前后外缘R3圆角,gusset弧R28->R14随顶板联动相切融入;重算全关节行程J4反向-121->-111,同步重建模型数据与查看器

This commit is contained in:
cbb
2026-09-28 01:00:04 +08:00
parent 85856e9821
commit 5518d12abb
31 changed files with 257 additions and 1283 deletions
+4 -4
View File
@@ -28,10 +28,10 @@ def rebuild_viewer():
print(" - 读取几何网格与关节运动学数据...", end="", flush=True)
data = io.open(WEB + "/mesh_arm.json", encoding="utf-8").read()
sheets = io.open(WEB + "/sheets.jsdata", encoding="utf-8").read()
col = io.open(DOCS + "/collision.json", encoding="utf-8").read() if os.path.exists(
DOCS + "/collision.json") else "[]"
trv = io.open(DOCS + "/travel.json", encoding="utf-8").read() if os.path.exists(
DOCS + "/travel.json") else "[]"
screws = io.open(DOCS + "/screws.json", encoding="utf-8").read() if os.path.exists(
DOCS + "/screws.json") else "[]"
tpl = io.open(SRC + "/viewer_tpl.html", encoding="utf-8").read()
print(f" 完成 ({len(data)/1024:.0f} KB) ✓", flush=True)
@@ -39,8 +39,8 @@ def rebuild_viewer():
out = (tpl.replace("/*__THREE__*/", three)
.replace("/*__DATA__*/", data)
.replace("/*__SHEETS__*/", sheets)
.replace("/*__COL__*/", col)
.replace("/*__TRAVEL__*/", trv))
.replace("/*__TRAVEL__*/", trv)
.replace("/*__SCREWS__*/", screws))
assert "/*__" not in out, [l for l in out.split("\n") if "/*__" in l][:3]
dst = WEB + "/机器人手臂3D查看器.html"
io.open(dst, "w", encoding="utf-8").write(out)