Files
FreeCADWasmDev/web/teaching/cases/carrier-partdesign/assembly-spec.json
wangdequan 87b2a6cb8a feat(carrier): 航空母舰 PartDesign 有头创建工具包与初学者教学
- 新数据链 web/teaching/cases/carrier-partdesign:20 件零件(spec.json 唯一来源)、
  内核建造器 parts/*.mjs、traces/FCStd/replay 全量产物;装配 20 插入 + 19 关节。
- 工具包 tools/carrier:catalog / preflight / create-part / create-assembly /
  create-all / list / self-test / README,按零件与装配拆分为独立工具。
- 共享驱动扩展 web/tools/cad-ui-rebuild:Loft/Pipe/Hole/Fillet/Chamfer/Mirrored/
  LinearPattern 交互,Reversed 复选框补齐;装配 saveAssemblyBundle 先 Accept 再保存。
- 教学:lessons.mjs 新增 carrier 组(环境课 + 20 件 + 装配),suite-runner 增加
  carrier-part/carrier-assembly,生成 carrier-toolkit.html 并接入 index 与控制台证据。

验证:20 件 210 步全部有头通过(P05 修复后 39640 m³;P06 回归 8/8);
装配 20/20 插入、19/19 关节、20 组件 0 畸形、0 mismatch;check:carrier、
check:reducer、check-console --live 全绿。

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-25 18:46:27 +08:00

426 lines
7.2 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"schema": "freecad-web/carrier-toolkit/assembly-spec/v1",
"document": "CarrierAssembly",
"label": "航空母舰",
"groundDocument": "CarrierHull",
"note": "零件在各自文档里已按舰体坐标建模,插入用单位位姿;每个非接地零件用一个固定关节锚到父件(20 件 − 1 接地 = 19 个关节),避免出现悬空组件。",
"inserts": [
{
"sourceDocument": "CarrierHull",
"sourceObject": "Body",
"position": [
0,
0,
0
],
"rotation": [
0,
0,
0,
1
]
},
{
"sourceDocument": "CarrierDeck",
"sourceObject": "Body",
"position": [
0,
0,
0
],
"rotation": [
0,
0,
0,
1
]
},
{
"sourceDocument": "CarrierAngledDeck",
"sourceObject": "Body",
"position": [
0,
0,
0
],
"rotation": [
0,
0,
0,
1
]
},
{
"sourceDocument": "CarrierIsland",
"sourceObject": "Body",
"position": [
0,
0,
0
],
"rotation": [
0,
0,
0,
1
]
},
{
"sourceDocument": "CarrierHangar",
"sourceObject": "Body",
"position": [
0,
0,
0
],
"rotation": [
0,
0,
0,
1
]
},
{
"sourceDocument": "CarrierElevators",
"sourceObject": "Body",
"position": [
0,
0,
0
],
"rotation": [
0,
0,
0,
1
]
},
{
"sourceDocument": "CarrierCatapults",
"sourceObject": "Body",
"position": [
0,
0,
0
],
"rotation": [
0,
0,
0,
1
]
},
{
"sourceDocument": "CarrierArrestorWires",
"sourceObject": "Body",
"position": [
0,
0,
0
],
"rotation": [
0,
0,
0,
1
]
},
{
"sourceDocument": "CarrierRadar",
"sourceObject": "Body",
"position": [
0,
0,
0
],
"rotation": [
0,
0,
0,
1
]
},
{
"sourceDocument": "CarrierCiws",
"sourceObject": "Body",
"position": [
0,
0,
0
],
"rotation": [
0,
0,
0,
1
]
},
{
"sourceDocument": "CarrierFighterA",
"sourceObject": "Body",
"position": [
0,
0,
0
],
"rotation": [
0,
0,
0,
1
]
},
{
"sourceDocument": "CarrierFighterB",
"sourceObject": "Body",
"position": [
0,
0,
0
],
"rotation": [
0,
0,
0,
1
]
},
{
"sourceDocument": "CarrierFighterC",
"sourceObject": "Body",
"position": [
0,
0,
0
],
"rotation": [
0,
0,
0,
1
]
},
{
"sourceDocument": "CarrierFighterD",
"sourceObject": "Body",
"position": [
0,
0,
0
],
"rotation": [
0,
0,
0,
1
]
},
{
"sourceDocument": "CarrierFighterE",
"sourceObject": "Body",
"position": [
0,
0,
0
],
"rotation": [
0,
0,
0,
1
]
},
{
"sourceDocument": "CarrierFighterF",
"sourceObject": "Body",
"position": [
0,
0,
0
],
"rotation": [
0,
0,
0,
1
]
},
{
"sourceDocument": "CarrierAwacs",
"sourceObject": "Body",
"position": [
0,
0,
0
],
"rotation": [
0,
0,
0,
1
]
},
{
"sourceDocument": "CarrierHelicopterA",
"sourceObject": "Body",
"position": [
0,
0,
0
],
"rotation": [
0,
0,
0,
1
]
},
{
"sourceDocument": "CarrierHelicopterB",
"sourceObject": "Body",
"position": [
0,
0,
0
],
"rotation": [
0,
0,
0,
1
]
},
{
"sourceDocument": "CarrierMarkings",
"sourceObject": "Body",
"position": [
0,
0,
0
],
"rotation": [
0,
0,
0,
1
]
}
],
"joints": [
{
"type": "Fixed",
"label": "飞行甲板 / 舰体",
"a": "CarrierDeck",
"b": "CarrierHull"
},
{
"type": "Fixed",
"label": "斜角甲板 / 飞行甲板",
"a": "CarrierAngledDeck",
"b": "CarrierDeck"
},
{
"type": "Fixed",
"label": "舰岛 / 飞行甲板",
"a": "CarrierIsland",
"b": "CarrierDeck"
},
{
"type": "Fixed",
"label": "机库 / 舰体",
"a": "CarrierHangar",
"b": "CarrierHull"
},
{
"type": "Fixed",
"label": "升降机 / 飞行甲板",
"a": "CarrierElevators",
"b": "CarrierDeck"
},
{
"type": "Fixed",
"label": "弹射器 / 飞行甲板",
"a": "CarrierCatapults",
"b": "CarrierDeck"
},
{
"type": "Fixed",
"label": "拦阻索 / 飞行甲板",
"a": "CarrierArrestorWires",
"b": "CarrierDeck"
},
{
"type": "Fixed",
"label": "相控阵雷达 / 舰岛",
"a": "CarrierRadar",
"b": "CarrierIsland"
},
{
"type": "Fixed",
"label": "近防炮 / 飞行甲板",
"a": "CarrierCiws",
"b": "CarrierDeck"
},
{
"type": "Fixed",
"label": "舰载战斗机 A / 飞行甲板",
"a": "CarrierFighterA",
"b": "CarrierDeck"
},
{
"type": "Fixed",
"label": "舰载战斗机 B / 飞行甲板",
"a": "CarrierFighterB",
"b": "CarrierDeck"
},
{
"type": "Fixed",
"label": "舰载战斗机 C / 飞行甲板",
"a": "CarrierFighterC",
"b": "CarrierDeck"
},
{
"type": "Fixed",
"label": "舰载战斗机 D / 飞行甲板",
"a": "CarrierFighterD",
"b": "CarrierDeck"
},
{
"type": "Fixed",
"label": "舰载战斗机 E / 飞行甲板",
"a": "CarrierFighterE",
"b": "CarrierDeck"
},
{
"type": "Fixed",
"label": "舰载战斗机 F / 飞行甲板",
"a": "CarrierFighterF",
"b": "CarrierDeck"
},
{
"type": "Fixed",
"label": "舰载预警机 / 飞行甲板",
"a": "CarrierAwacs",
"b": "CarrierDeck"
},
{
"type": "Fixed",
"label": "舰载直升机 A / 飞行甲板",
"a": "CarrierHelicopterA",
"b": "CarrierDeck"
},
{
"type": "Fixed",
"label": "舰载直升机 B / 飞行甲板",
"a": "CarrierHelicopterB",
"b": "CarrierDeck"
},
{
"type": "Fixed",
"label": "甲板标线 / 飞行甲板",
"a": "CarrierMarkings",
"b": "CarrierDeck"
}
]
}