refactor(model): 重构P03为轻量化板式桁架并统一M4×16自攻螺钉连接方案
This commit is contained in:
@@ -159,6 +159,8 @@ def arm_masses():
|
||||
TREE = ["root", "J1", "J2", "J3", "J4", "J5", "J6"]
|
||||
tot = {}
|
||||
for p in meta["parts"]:
|
||||
if not os.path.exists("%s/parts_step/%s.step" % (OUT, p["name"])):
|
||||
continue # 螺钉实例 / 可达包络网格等非 CAD 构件没有 STEP,跳过
|
||||
sh = load(p["name"])
|
||||
v = volume(sh) / 1000.0
|
||||
g = (v * RHO["PLA"] * 1000.0 * INFILL) if p["printed"] else RHO["motor_g"]
|
||||
|
||||
Reference in New Issue
Block a user