fansunqi commited on
Commit
fc5ffb7
·
verified ·
1 Parent(s): e57edc2

Add English prompts for the assembly track

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. README.md +11 -6
  2. assembly/cases/ackermann_steering.yaml +20 -0
  3. assembly/cases/beam_engine.yaml +37 -0
  4. assembly/cases/clock_motion.yaml +34 -0
  5. assembly/cases/crank_rocker.yaml +28 -0
  6. assembly/cases/desk_lamp.yaml +22 -0
  7. assembly/cases/double_wishbone.yaml +26 -0
  8. assembly/cases/drill_gearbox.yaml +30 -0
  9. assembly/cases/elliptical_trainer.yaml +37 -0
  10. assembly/cases/engine.yaml +32 -0
  11. assembly/cases/excavator_arm.yaml +34 -0
  12. assembly/cases/five_bar_robot.yaml +27 -0
  13. assembly/cases/gear_screw_lift.yaml +32 -0
  14. assembly/cases/gear_sync_gripper.yaml +34 -0
  15. assembly/cases/gearbox.yaml +29 -0
  16. assembly/cases/geared_five_bar.yaml +34 -0
  17. assembly/cases/geared_slider_crank.yaml +32 -0
  18. assembly/cases/hand_winch.yaml +26 -0
  19. assembly/cases/jansen_leg.yaml +63 -0
  20. assembly/cases/knuckle_press.yaml +47 -0
  21. assembly/cases/l_twin_engine.yaml +43 -0
  22. assembly/cases/lambda_conveyor.yaml +41 -0
  23. assembly/cases/lead_screw_stage.yaml +22 -0
  24. assembly/cases/luffing_crane.yaml +41 -0
  25. assembly/cases/mechanical_iris.yaml +37 -0
  26. assembly/cases/offset_slider_crank.yaml +25 -0
  27. assembly/cases/oldham_coupling.yaml +34 -0
  28. assembly/cases/orrery.yaml +47 -0
  29. assembly/cases/oscillating_fan.yaml +41 -0
  30. assembly/cases/palletizing_robot.yaml +48 -0
  31. assembly/cases/pantograph.yaml +22 -0
  32. assembly/cases/parallel_gripper.yaml +23 -0
  33. assembly/cases/peaucellier_linkage.yaml +30 -0
  34. assembly/cases/planetary_carrier.yaml +26 -0
  35. assembly/cases/planetary_mixer.yaml +36 -0
  36. assembly/cases/projector.yaml +29 -0
  37. assembly/cases/pumpjack.yaml +37 -0
  38. assembly/cases/quick_return_shaper.yaml +46 -0
  39. assembly/cases/radial_engine.yaml +40 -0
  40. assembly/cases/robot_finger.yaml +39 -0
  41. assembly/cases/scara_arm.yaml +22 -0
  42. assembly/cases/scissor_lift.yaml +30 -0
  43. assembly/cases/sewing_machine.yaml +45 -0
  44. assembly/cases/spirograph.yaml +42 -0
  45. assembly/cases/star_reducer.yaml +26 -0
  46. assembly/cases/toggle_clamp.yaml +26 -0
  47. assembly/cases/turntable.yaml +20 -0
  48. assembly/cases/twin_pump.yaml +28 -0
  49. assembly/cases/umbrella.yaml +21 -0
  50. assembly/cases/wankel_rotary.yaml +30 -0
README.md CHANGED
@@ -46,7 +46,7 @@ from engineering drawings, to multi-component mechanisms that must actually move
46
  |---|---:|---|---|
47
  | **Text-to-part** | 100 (50 easy / 30 medium / 20 hard) | natural-language design brief (English and Chinese) | deterministic geometric rubric on the delivered solid (782 explicit items) |
48
  | **Three-view-to-part** | 50 | third-angle engineering drawing (PNG) + one neutral sentence | drawing-grounded rubric (349 items) + projection image score vs. a reference solid |
49
- | **Motion-aware assembly** | 50 mechanisms, 629 component roles, 1–4 DOF | functional brief for every part and for the assembly (Chinese) | assembly-structure rubric + motion check (33 motor-driven, 17 prescribed-pose cases) |
50
 
51
  - **Paper:** [Mining and Simulating Engineer Workflows for Agentic CAD Modeling](https://arxiv.org/abs/2611.38444) ([arXiv](https://arxiv.org/abs/2611.38444), [Hugging Face Daily Paper](https://huggingface.co/papers/2611.38444))
52
  - **Code, evaluator and the agent (Workflow-CAD):** https://github.com/workflowcad/Workflow-CAD
@@ -113,7 +113,8 @@ configuration) and the step-by-step evaluation protocol of the paper.
113
  ## Evaluating your own system on the part tracks
114
 
115
  1. For every task, generate one solid from `prompt_en` (text track) or from the drawing plus `prompt_zh`
116
- (three-view track, the paper's protocol).
 
117
  2. Export it as STEP, in millimetres, named `<case>_r1.step`, all in one folder. Position, orientation and the
118
  construction method are free. A missing file scores 0.
119
  3. Grade (no SolidWorks needed; from `Workflow-CAD/workflow_cad` with the evaluator environment):
@@ -151,7 +152,8 @@ three_view/
151
  references/<case>.step reference solid used by the image score
152
  assembly/
153
  tasks.jsonl index of the 50 mechanisms
154
- cases/<name>.yaml parts (id, prompt, extra tools), gold roles, assembly prompt, motion spec
 
155
  part_rubrics/<part_id>.yaml interface rubric of every part (hole/shaft diameters, positions, tooth counts, ...)
156
  assembly_rubrics/<case_id>.yaml structure rubric: ground, mobility, rigid bodies, joints, couplings
157
  assembly_rubrics/joint_anchors*.json joint axis anchors merged into the structure rubric
@@ -173,7 +175,8 @@ objects, common machined parts, multi-feature parts, operation-specific parts),
173
 
174
  **`assembly/tasks.jsonl`**: `case_id`, `name`, `title`, `parts` (distinct part files to build), `roles`
175
  (component occurrences), `mobility`, `motion_mode` (`motor` = the evaluator drives one rotary input and samples
176
- the motion; `poses` = three prescribed configurations), `assembly_prompt_zh`, `part_prompts_zh`, `spec`,
 
177
  `assembly_rubric`, `gold_parts`, `reference_assembly`.
178
 
179
  ### What a rubric looks like
@@ -278,8 +281,10 @@ GitHub repository):
278
  - The `.SLDPRT` / `.SLDASM` files were saved with SolidWorks 2025 and cannot be opened by older versions.
279
  Assemblies store the absolute part paths they were built with; SolidWorks resolves moved parts through its
280
  search rules (keep the folder structure).
281
- - Assembly prompts are Chinese only. For the part tracks the Chinese prompts are the originals and `prompt_en`
282
- is a sentence-by-sentence translation.
 
 
283
  - Motion checks are evaluated inside SolidWorks (Animation motor or prescribed poses), so the assembly track
284
  requires SolidWorks.
285
 
 
46
  |---|---:|---|---|
47
  | **Text-to-part** | 100 (50 easy / 30 medium / 20 hard) | natural-language design brief (English and Chinese) | deterministic geometric rubric on the delivered solid (782 explicit items) |
48
  | **Three-view-to-part** | 50 | third-angle engineering drawing (PNG) + one neutral sentence | drawing-grounded rubric (349 items) + projection image score vs. a reference solid |
49
+ | **Motion-aware assembly** | 50 mechanisms, 629 component roles, 1–4 DOF | functional brief for every part and for the assembly (English and Chinese) | assembly-structure rubric + motion check (33 motor-driven, 17 prescribed-pose cases) |
50
 
51
  - **Paper:** [Mining and Simulating Engineer Workflows for Agentic CAD Modeling](https://arxiv.org/abs/2611.38444) ([arXiv](https://arxiv.org/abs/2611.38444), [Hugging Face Daily Paper](https://huggingface.co/papers/2611.38444))
52
  - **Code, evaluator and the agent (Workflow-CAD):** https://github.com/workflowcad/Workflow-CAD
 
113
  ## Evaluating your own system on the part tracks
114
 
115
  1. For every task, generate one solid from `prompt_en` (text track) or from the drawing plus `prompt_zh`
116
+ (three-view track). These are the prompt languages of the paper's protocol; the other language is
117
+ provided for every task as well.
118
  2. Export it as STEP, in millimetres, named `<case>_r1.step`, all in one folder. Position, orientation and the
119
  construction method are free. A missing file scores 0.
120
  3. Grade (no SolidWorks needed; from `Workflow-CAD/workflow_cad` with the evaluator environment):
 
152
  references/<case>.step reference solid used by the image score
153
  assembly/
154
  tasks.jsonl index of the 50 mechanisms
155
+ cases/<name>.yaml parts (id, prompt, prompt_en, extra tools), gold roles, assembly prompt / prompt_en,
156
+ motion spec
157
  part_rubrics/<part_id>.yaml interface rubric of every part (hole/shaft diameters, positions, tooth counts, ...)
158
  assembly_rubrics/<case_id>.yaml structure rubric: ground, mobility, rigid bodies, joints, couplings
159
  assembly_rubrics/joint_anchors*.json joint axis anchors merged into the structure rubric
 
175
 
176
  **`assembly/tasks.jsonl`**: `case_id`, `name`, `title`, `parts` (distinct part files to build), `roles`
177
  (component occurrences), `mobility`, `motion_mode` (`motor` = the evaluator drives one rotary input and samples
178
+ the motion; `poses` = three prescribed configurations), `assembly_prompt_zh`, `assembly_prompt_en`,
179
+ `part_prompts_zh`, `part_prompts_en` (part id → prompt), `spec`,
180
  `assembly_rubric`, `gold_parts`, `reference_assembly`.
181
 
182
  ### What a rubric looks like
 
281
  - The `.SLDPRT` / `.SLDASM` files were saved with SolidWorks 2025 and cannot be opened by older versions.
282
  Assemblies store the absolute part paths they were built with; SolidWorks resolves moved parts through its
283
  search rules (keep the folder structure).
284
+ - Every task has Chinese and English prompts. The Chinese prompts are the originals; `prompt_en` is a
285
+ sentence-by-sentence translation that keeps every number, coordinate, role and tool name (checked
286
+ automatically). The paper's protocol uses English for text-to-part and Chinese for three-view and assembly;
287
+ results obtained with different prompt languages are not directly comparable.
288
  - Motion checks are evaluated inside SolidWorks (Animation motor or prescribed poses), so the assembly track
289
  requires SolidWorks.
290
 
assembly/cases/ackermann_steering.yaml CHANGED
@@ -8,24 +8,37 @@ parts:
8
  prompt: |
9
  创建前桥板:在 front_plane 上画矩形,X 从 -80 到 80 mm,Y 从 -15 到 15 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(-60,0) 直径 6 mm,(60,0) 直径 6 mm。不要抽壳。
 
 
 
11
  - id: ak_knuckle
12
  extra_tools: []
13
  prompt: |
14
  创建转向节臂:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (25,0),向 +Z 拉伸 6 mm。
15
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=25 处直径 6 mm。
 
 
 
16
  - id: ak_tie_rod
17
  extra_tools: []
18
  prompt: |
19
  创建横拉杆:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (106.22,0),向 +Z 拉伸 6 mm。
20
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=106.22 处直径 6 mm。
 
 
 
21
  - id: ak_pin14
22
  extra_tools: []
23
  prompt: |
24
  创建主销:直径 6 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
25
  - id: ak_pin12
26
  extra_tools: []
27
  prompt: |
28
  创建拉杆销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
29
  gold_roles:
30
  axle: ak_axle
31
  kingpin_l: ak_pin14
@@ -43,6 +56,13 @@ assembly:
43
  直行时两转向节臂都指向 −Y(车尾方向)并向内倾 16°:knuckle_l 指向 -74°,knuckle_r 指向 -106°(从 +X 量)。
44
  - tie_pin_l、tie_pin_r 分别固定在两转向节臂的 X=25 孔里(z∈[8,20]);tie_rod 两端孔分别套在上面(z∈[14,20])。
45
  - 转向自由度保持自由(活动度 1),不要固定。各件互不穿模,装好后保存。
 
 
 
 
 
 
 
46
  motion:
47
  mode: poses
48
  frame: axle
 
8
  prompt: |
9
  创建前桥板:在 front_plane 上画矩形,X 从 -80 到 80 mm,Y 从 -15 到 15 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(-60,0) 直径 6 mm,(60,0) 直径 6 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the front axle plate: on front_plane draw a rectangle with X from -80 to 80 mm and Y from -15 to 15 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (-60,0) diameter 6 mm, (60,0) diameter 6 mm. Do not shell.
14
  - id: ak_knuckle
15
  extra_tools: []
16
  prompt: |
17
  创建转向节臂:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (25,0),向 +Z 拉伸 6 mm。
18
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=25 处直径 6 mm。
19
+ prompt_en: |
20
+ Create the steering knuckle arm: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (25,0), and extrude it 6 mm toward +Z.
21
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=25 diameter 6 mm.
22
  - id: ak_tie_rod
23
  extra_tools: []
24
  prompt: |
25
  创建横拉杆:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (106.22,0),向 +Z 拉伸 6 mm。
26
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=106.22 处直径 6 mm。
27
+ prompt_en: |
28
+ Create the tie rod: on front_plane draw a bar with rounded ends, 10 mm wide, with the end-arc centers at the origin and at (106.22,0), and extrude it 6 mm toward +Z.
29
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=106.22 diameter 6 mm.
30
  - id: ak_pin14
31
  extra_tools: []
32
  prompt: |
33
  创建主销:直径 6 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
34
+ prompt_en: |
35
+ Create the kingpin: a cylinder 6 mm in diameter and 14 mm long, axis along Z, extruded from Z=0 toward +Z.
36
  - id: ak_pin12
37
  extra_tools: []
38
  prompt: |
39
  创建拉杆销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
40
+ prompt_en: |
41
+ Create the tie rod pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
42
  gold_roles:
43
  axle: ak_axle
44
  kingpin_l: ak_pin14
 
56
  直行时两转向节臂都指向 −Y(车尾方向)并向内倾 16°:knuckle_l 指向 -74°,knuckle_r 指向 -106°(从 +X 量)。
57
  - tie_pin_l、tie_pin_r 分别固定在两转向节臂的 X=25 孔里(z∈[8,20]);tie_rod 两端孔分别套在上面(z∈[14,20])。
58
  - 转向自由度保持自由(活动度 1),不要固定。各件互不穿模,装好后保存。
59
+ prompt_en: |
60
+ Assemble an Ackermann steering trapezoid. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
61
+ - axle is fixed, z∈[0,8], kingpin holes at (-60,0) and (60,0). kingpin_l and kingpin_r are fixed in the two holes respectively (z∈[0,14]).
62
+ - The origin holes of knuckle_l and knuckle_r fit on kingpin_l and kingpin_r respectively and rotate (z∈[8,14]).
63
+ When driving straight, both knuckle arms point toward −Y (the rear of the vehicle) and lean inward by 16°: knuckle_l points at -74° and knuckle_r at -106° (measured from +X).
64
+ - tie_pin_l and tie_pin_r are fixed in the X=25 holes of the two knuckle arms respectively (z∈[8,20]); the two end holes of tie_rod fit on them (z∈[14,20]).
65
+ - Keep the steering degree of freedom free (mobility 1); do not fix it. No parts may interfere. Save when assembled.
66
  motion:
67
  mode: poses
68
  frame: axle
assembly/cases/beam_engine.yaml CHANGED
@@ -8,43 +8,67 @@ parts:
8
  prompt: |
9
  创建机架板:在 front_plane 上画矩形,X 从 -90 到 90 mm,Y 从 -30 到 140 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(60,0) 直径 10 mm,(0,120) 直径 6 mm。不要抽壳。
 
 
 
11
  - id: be_shaft
12
  extra_tools: []
13
  prompt: |
14
  创建曲柄轴:直径 10 mm、长 24 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: be_crank
16
  extra_tools: []
17
  prompt: |
18
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (20,0),向 +Z 拉伸 6 mm。
19
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=20 处直径 6 mm。
 
 
 
20
  - id: be_pin12
21
  extra_tools: []
22
  prompt: |
23
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
24
  - id: be_conrod
25
  extra_tools: []
26
  prompt: |
27
  创建连杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (110,0),向 +Z 拉伸 6 mm。
28
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=110 处直径 6 mm。
 
 
 
29
  - id: be_beam
30
  extra_tools: []
31
  prompt: |
32
  创建游梁:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (120,0),向 +Z 拉伸 6 mm。
33
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=60 处直径 6 mm,X=120 处直径 6 mm。
 
 
 
34
  - id: be_pivot_pin
35
  extra_tools: []
36
  prompt: |
37
  创建游梁支销:直径 6 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
38
  - id: be_piston_rod
39
  extra_tools: []
40
  prompt: |
41
  创建活塞杆:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (60,0),向 +Z 拉伸 6 mm。
42
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=60 处直径 6 mm。
 
 
 
43
  - id: be_piston
44
  extra_tools: []
45
  prompt: |
46
  创建活塞:在 front_plane 上画矩形,X 从 -10 到 10 mm,Y 从 -12 到 12 mm,向 +Z 拉伸 6 mm。
47
  开贯穿孔:(0,0) 直径 6 mm。不要抽壳。
 
 
 
48
  gold_roles:
49
  frame: be_frame
50
  shaft: be_shaft
@@ -72,6 +96,19 @@ assembly:
72
  - piston 只能沿 frame 的 Y 方向移动,孔心始终在 x=-60 的直线上,位于游梁下方。
73
  - 曲柄整周转动时游梁摆动约 40.0°,活塞行程约 40.9 mm。
74
  对 shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  motion:
76
  driver: shaft
77
  sweep_deg: 360
 
8
  prompt: |
9
  创建机架板:在 front_plane 上画矩形,X 从 -90 到 90 mm,Y 从 -30 到 140 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(60,0) 直径 10 mm,(0,120) 直径 6 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the frame plate: on front_plane draw a rectangle with X from -90 to 90 mm and Y from -30 to 140 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (60,0) diameter 10 mm, (0,120) diameter 6 mm. Do not shell.
14
  - id: be_shaft
15
  extra_tools: []
16
  prompt: |
17
  创建曲柄轴:直径 10 mm、长 24 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the crank shaft: a cylinder 10 mm in diameter and 24 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: be_crank
21
  extra_tools: []
22
  prompt: |
23
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (20,0),向 +Z 拉伸 6 mm。
24
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=20 处直径 6 mm。
25
+ prompt_en: |
26
+ Create the crank: on front_plane draw a bar with rounded ends, 16 mm wide, with the end-arc centers at the origin and at (20,0), and extrude it 6 mm toward +Z.
27
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=20 diameter 6 mm.
28
  - id: be_pin12
29
  extra_tools: []
30
  prompt: |
31
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
32
+ prompt_en: |
33
+ Create the hinge pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
34
  - id: be_conrod
35
  extra_tools: []
36
  prompt: |
37
  创建连杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (110,0),向 +Z 拉伸 6 mm。
38
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=110 处直径 6 mm。
39
+ prompt_en: |
40
+ Create the link: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (110,0), and extrude it 6 mm toward +Z.
41
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=110 diameter 6 mm.
42
  - id: be_beam
43
  extra_tools: []
44
  prompt: |
45
  创建游梁:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (120,0),向 +Z 拉伸 6 mm。
46
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=60 处直径 6 mm,X=120 处直径 6 mm。
47
+ prompt_en: |
48
+ Create the walking beam: on front_plane draw a bar with rounded ends, 14 mm wide, with the end-arc centers at the origin and at (120,0), and extrude it 6 mm toward +Z.
49
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=60 diameter 6 mm, at X=120 diameter 6 mm.
50
  - id: be_pivot_pin
51
  extra_tools: []
52
  prompt: |
53
  创建游梁支销:直径 6 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
54
+ prompt_en: |
55
+ Create the beam pivot pin: a cylinder 6 mm in diameter and 26 mm long, axis along Z, extruded from Z=0 toward +Z.
56
  - id: be_piston_rod
57
  extra_tools: []
58
  prompt: |
59
  创建活塞杆:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (60,0),向 +Z 拉伸 6 mm。
60
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=60 处直径 6 mm。
61
+ prompt_en: |
62
+ Create the piston rod: on front_plane draw a bar with rounded ends, 10 mm wide, with the end-arc centers at the origin and at (60,0), and extrude it 6 mm toward +Z.
63
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=60 diameter 6 mm.
64
  - id: be_piston
65
  extra_tools: []
66
  prompt: |
67
  创建活塞:在 front_plane 上画矩形,X 从 -10 到 10 mm,Y 从 -12 到 12 mm,向 +Z 拉伸 6 mm。
68
  开贯穿孔:(0,0) 直径 6 mm。不要抽壳。
69
+ prompt_en: |
70
+ Create the piston: on front_plane draw a rectangle with X from -10 to 10 mm and Y from -12 to 12 mm, and extrude it 6 mm toward +Z.
71
+ Cut through holes: (0,0) diameter 6 mm. Do not shell.
72
  gold_roles:
73
  frame: be_frame
74
  shaft: be_shaft
 
96
  - piston 只能沿 frame 的 Y 方向移动,孔心始终在 x=-60 的直线上,位于游梁下方。
97
  - 曲柄整周转动时游梁摆动约 40.0°,活塞行程约 40.9 mm。
98
  对 shaft 做 check_motion(一整圈),确认无穿模后再保存。
99
+ prompt_en: |
100
+ Assemble a steam beam engine (crank—connecting rod—walking beam—piston rod—piston). Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
101
+ - frame is fixed, z∈[0,8]. Crank bearing hole at (60,0), beam pivot hole at (0,120).
102
+ - shaft passes through the (60,0) hole and rotates about Z (z∈[-10,14]); the 10 mm hole of crank is fixed on shaft (z∈[8,14]).
103
+ - crank_pin is fixed in the 6 mm hole of crank (z∈[8,20]); one end of conrod rotates about crank_pin (z∈[14,20]);
104
+ conrod_pin is fixed in the hole at the other end of conrod (z∈[14,26]).
105
+ - pivot_pin is fixed in the (0,120) hole of frame (z∈[0,26]); the X=60 hole of beam fits on pivot_pin and rotates (z∈[20,26]),
106
+ the X=120 hole of beam fits on conrod_pin (this end is on the +X side, near the crank), and the X=0 end is on the -X side.
107
+ - e_pin is fixed in the origin hole of piston_rod (z∈[14,26]) and rotates in the X=0 hole of beam; piston_rod is at z∈[14,20],
108
+ p_pin is fixed in its other hole (z∈[8,20]); the hole of piston fits on p_pin and rotates (z∈[8,14]).
109
+ - piston can only move along the Y direction of frame; its hole center always stays on the line x=-60, below the walking beam.
110
+ - Over a full crank revolution the walking beam swings by about 40.0° and the piston stroke is about 40.9 mm.
111
+ Run check_motion on shaft (one full turn), confirm there is no interference, then save.
112
  motion:
113
  driver: shaft
114
  sweep_deg: 360
assembly/cases/clock_motion.yaml CHANGED
@@ -8,48 +8,71 @@ parts:
8
  prompt: |
9
  创建机芯夹板:在 front_plane 上画矩形,X 从 -40 到 60 mm,Y 从 -40 到 40 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 4 mm,(30,0) 直径 4 mm。不要抽壳。
 
 
 
11
  - id: ck_minute_arbor
12
  extra_tools: []
13
  prompt: |
14
  创建分轮轴:直径 4 mm、长 50 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: ck_wheel_arbor
16
  extra_tools: []
17
  prompt: |
18
  创建跨轮轴:直径 4 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
19
  - id: ck_cannon_pinion
20
  extra_tools:
21
  - spur_gear
22
  prompt: |
23
  创建渐开线直齿轮,模数 1.5 mm,齿数 10,压力角 30°,齿宽 6 mm,轴孔直径 4 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
24
  - id: ck_minute_wheel
25
  extra_tools:
26
  - spur_gear
27
  prompt: |
28
  创建渐开线直齿轮,模数 1.5 mm,齿数 30,压力角 30°,齿宽 6 mm,轴孔直径 4 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
29
  - id: ck_minute_pinion
30
  extra_tools:
31
  - spur_gear
32
  prompt: |
33
  创建渐开线直齿轮,模数 1.5 mm,齿数 8,压力角 30°,齿宽 6 mm,轴孔直径 4 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
34
  - id: ck_hour_wheel
35
  extra_tools:
36
  - spur_gear
37
  prompt: |
38
  创建渐开线直齿轮,模数 1.5 mm,齿数 32,压力角 30°,齿宽 6 mm,轴孔直径 8 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
39
  - id: ck_hour_tube
40
  extra_tools: []
41
  prompt: |
42
  创建时轮管:外径 8 mm、厚 16 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 4 mm。
 
 
43
  - id: ck_minute_hand
44
  extra_tools: []
45
  prompt: |
46
  创建分针:在 front_plane 上画两端圆头的长条,宽 8 mm,两端半圆的圆心分别在原点和 (50,0),向 +Z 拉伸 2 mm。
47
  在 X 轴上开贯穿孔:X=0 处直径 4 mm。
 
 
 
48
  - id: ck_hour_hand
49
  extra_tools: []
50
  prompt: |
51
  创建时针:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (35,0),向 +Z 拉伸 2 mm。
52
  在 X 轴上开贯穿孔:X=0 处直径 8 mm。
 
 
 
53
  gold_roles:
54
  frame: ck_frame
55
  minute_arbor: ck_minute_arbor
@@ -73,6 +96,17 @@ assembly:
73
  (z∈[28,30],孔 8 mm)都固定在 hour_tube 上。minute_pinion 与 hour_wheel 外啮合(中心距 30)。
74
  - 传动比:minute_wheel 是分轮转速的 1/3、反向;hour_wheel 是分轮的 1/12、同向。各齿轮互不穿模,啮合齿相位要对上。
75
  对 minute_arbor 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
 
 
76
  motion:
77
  driver: minute_arbor
78
  sweep_deg: 360
 
8
  prompt: |
9
  创建机芯夹板:在 front_plane 上画矩形,X 从 -40 到 60 mm,Y 从 -40 到 40 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 4 mm,(30,0) 直径 4 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the movement plate: on front_plane draw a rectangle with X from -40 to 60 mm and Y from -40 to 40 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 4 mm, (30,0) diameter 4 mm. Do not shell.
14
  - id: ck_minute_arbor
15
  extra_tools: []
16
  prompt: |
17
  创建分轮轴:直径 4 mm、长 50 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the minute arbor: a cylinder 4 mm in diameter and 50 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: ck_wheel_arbor
21
  extra_tools: []
22
  prompt: |
23
  创建跨轮轴:直径 4 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
24
+ prompt_en: |
25
+ Create the minute wheel arbor: a cylinder 4 mm in diameter and 26 mm long, axis along Z, extruded from Z=0 toward +Z.
26
  - id: ck_cannon_pinion
27
  extra_tools:
28
  - spur_gear
29
  prompt: |
30
  创建渐开线直齿轮,模数 1.5 mm,齿数 10,压力角 30°,齿宽 6 mm,轴孔直径 4 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
31
+ prompt_en: |
32
+ Create an involute spur gear: module 1.5 mm, 10 teeth, pressure angle 30°, face width 6 mm, bore diameter 4 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
33
  - id: ck_minute_wheel
34
  extra_tools:
35
  - spur_gear
36
  prompt: |
37
  创建渐开线直齿轮,模数 1.5 mm,齿数 30,压力角 30°,齿宽 6 mm,轴孔直径 4 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
38
+ prompt_en: |
39
+ Create an involute spur gear: module 1.5 mm, 30 teeth, pressure angle 30°, face width 6 mm, bore diameter 4 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
40
  - id: ck_minute_pinion
41
  extra_tools:
42
  - spur_gear
43
  prompt: |
44
  创建渐开线直齿轮,模数 1.5 mm,齿数 8,压力角 30°,齿宽 6 mm,轴孔直径 4 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
45
+ prompt_en: |
46
+ Create an involute spur gear: module 1.5 mm, 8 teeth, pressure angle 30°, face width 6 mm, bore diameter 4 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
47
  - id: ck_hour_wheel
48
  extra_tools:
49
  - spur_gear
50
  prompt: |
51
  创建渐开线直齿轮,模数 1.5 mm,齿数 32,压力角 30°,齿宽 6 mm,轴孔直径 8 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
52
+ prompt_en: |
53
+ Create an involute spur gear: module 1.5 mm, 32 teeth, pressure angle 30°, face width 6 mm, bore diameter 8 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
54
  - id: ck_hour_tube
55
  extra_tools: []
56
  prompt: |
57
  创建时轮管:外径 8 mm、厚 16 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 4 mm。
58
+ prompt_en: |
59
+ Create the hour tube: a disk with outer diameter 8 mm and thickness 16 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 4 mm.
60
  - id: ck_minute_hand
61
  extra_tools: []
62
  prompt: |
63
  创建分针:在 front_plane 上画两端圆头的长条,宽 8 mm,两端半圆的圆心分别在原点和 (50,0),向 +Z 拉伸 2 mm。
64
  在 X 轴上开贯穿孔:X=0 处直径 4 mm。
65
+ prompt_en: |
66
+ Create the minute hand: on front_plane draw a bar with rounded ends, 8 mm wide, with the end-arc centers at the origin and at (50,0), and extrude it 2 mm toward +Z.
67
+ Cut through holes on the X axis: at X=0 diameter 4 mm.
68
  - id: ck_hour_hand
69
  extra_tools: []
70
  prompt: |
71
  创建时针:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (35,0),向 +Z 拉伸 2 mm。
72
  在 X 轴上开贯穿孔:X=0 处直径 8 mm。
73
+ prompt_en: |
74
+ Create the hour hand: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (35,0), and extrude it 2 mm toward +Z.
75
+ Cut through holes on the X axis: at X=0 diameter 8 mm.
76
  gold_roles:
77
  frame: ck_frame
78
  minute_arbor: ck_minute_arbor
 
96
  (z∈[28,30],孔 8 mm)都固定在 hour_tube 上。minute_pinion 与 hour_wheel 外啮合(中心距 30)。
97
  - 传动比:minute_wheel 是分轮转速的 1/3、反向;hour_wheel 是分轮的 1/12、同向。各齿轮互不穿模,啮合齿相位要对上。
98
  对 minute_arbor 做 check_motion(一整圈),确认无穿模后再保存。
99
+ prompt_en: |
100
+ Assemble a clock motion work (the hour hand turns 1 revolution for every 12 revolutions of the minute hand). Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
101
+ - frame is fixed, z∈[0,8], minute arbor hole at (0,0), minute-wheel arbor hole at (30,0); both holes have diameter 4 mm.
102
+ - minute_arbor passes through the (0,0) hole and rotates about Z (z∈[-10,40]); the 10-tooth cannon_pinion (z∈[8,14]) and minute_hand (z∈[34,36])
103
+ are both fixed on minute_arbor.
104
+ - wheel_arbor passes through the (30,0) hole and rotates about Z (z∈[-6,20]); the 30-tooth minute_wheel (z∈[8,14]) and the 8-tooth minute_pinion (z∈[14,20])
105
+ are both fixed on wheel_arbor. cannon_pinion meshes externally with minute_wheel (module 1.5, center distance 30).
106
+ - hour_tube fits on minute_arbor and rotates about Z (z∈[14,30]); the 32-tooth hour_wheel (z∈[14,20], bore 8 mm) and hour_hand
107
+ (z∈[28,30], hole 8 mm) are both fixed on hour_tube. minute_pinion meshes externally with hour_wheel (center distance 30).
108
+ - Ratios: minute_wheel turns at 1/3 of the minute-arbor speed, in the opposite direction; hour_wheel turns at 1/12 of it, in the same direction. Gears must not interfere, and meshing teeth must be phased correctly.
109
+ Run check_motion on minute_arbor (one full turn), confirm there is no interference, then save.
110
  motion:
111
  driver: minute_arbor
112
  sweep_deg: 360
assembly/cases/crank_rocker.yaml CHANGED
@@ -8,33 +8,51 @@ parts:
8
  prompt: |
9
  创建机架板:在 front_plane 上画矩形,X 从 -30 到 110 mm,Y 从 -30 到 90 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(80,0) 直径 6 mm。不要抽壳。
 
 
 
11
  - id: cr_shaft
12
  extra_tools: []
13
  prompt: |
14
  创建曲柄轴:直径 10 mm、长 24 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: cr_crank
16
  extra_tools: []
17
  prompt: |
18
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (20,0),向 +Z 拉伸 6 mm。
19
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=20 处直径 6 mm。
 
 
 
20
  - id: cr_pin12
21
  extra_tools: []
22
  prompt: |
23
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
24
  - id: cr_coupler
25
  extra_tools: []
26
  prompt: |
27
  创建连杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (70,0),向 +Z 拉伸 6 mm。
28
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=70 处直径 6 mm。
 
 
 
29
  - id: cr_rocker
30
  extra_tools: []
31
  prompt: |
32
  创建摇杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (50,0),向 +Z 拉伸 6 mm。
33
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=50 处直径 6 mm。
 
 
 
34
  - id: cr_pin26
35
  extra_tools: []
36
  prompt: |
37
  创建摇杆支销:直径 6 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
38
  gold_roles:
39
  frame: cr_frame
40
  shaft: cr_shaft
@@ -55,6 +73,16 @@ assembly:
55
  另一端套在 coupler_pin 上,组成曲柄 20、连杆 70、摇杆 50、机架 80 的曲柄摇杆机构,摇杆在机架连线上方(+Y 侧)。
56
  - 曲柄整周转动时摇杆往复摆动约 47.4°。
57
  对 shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
 
58
  motion:
59
  driver: shaft
60
  sweep_deg: 360
 
8
  prompt: |
9
  创建机架板:在 front_plane 上画矩形,X 从 -30 到 110 mm,Y 从 -30 到 90 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(80,0) 直径 6 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the frame plate: on front_plane draw a rectangle with X from -30 to 110 mm and Y from -30 to 90 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm, (80,0) diameter 6 mm. Do not shell.
14
  - id: cr_shaft
15
  extra_tools: []
16
  prompt: |
17
  创建曲柄轴:直径 10 mm、长 24 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the crank shaft: a cylinder 10 mm in diameter and 24 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: cr_crank
21
  extra_tools: []
22
  prompt: |
23
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (20,0),向 +Z 拉伸 6 mm。
24
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=20 处直径 6 mm。
25
+ prompt_en: |
26
+ Create the crank: on front_plane draw a bar with rounded ends, 16 mm wide, with the end-arc centers at the origin and at (20,0), and extrude it 6 mm toward +Z.
27
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=20 diameter 6 mm.
28
  - id: cr_pin12
29
  extra_tools: []
30
  prompt: |
31
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
32
+ prompt_en: |
33
+ Create the hinge pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
34
  - id: cr_coupler
35
  extra_tools: []
36
  prompt: |
37
  创建连杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (70,0),向 +Z 拉伸 6 mm。
38
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=70 处直径 6 mm。
39
+ prompt_en: |
40
+ Create the link: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (70,0), and extrude it 6 mm toward +Z.
41
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=70 diameter 6 mm.
42
  - id: cr_rocker
43
  extra_tools: []
44
  prompt: |
45
  创建摇杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (50,0),向 +Z 拉伸 6 mm。
46
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=50 处直径 6 mm。
47
+ prompt_en: |
48
+ Create the rocker: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (50,0), and extrude it 6 mm toward +Z.
49
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=50 diameter 6 mm.
50
  - id: cr_pin26
51
  extra_tools: []
52
  prompt: |
53
  创建摇杆支销:直径 6 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
54
+ prompt_en: |
55
+ Create the rocker pivot pin: a cylinder 6 mm in diameter and 26 mm long, axis along Z, extruded from Z=0 toward +Z.
56
  gold_roles:
57
  frame: cr_frame
58
  shaft: cr_shaft
 
73
  另一端套在 coupler_pin 上,组成曲柄 20、连杆 70、摇杆 50、机架 80 的曲柄摇杆机构,摇杆在机架连线上方(+Y 侧)。
74
  - 曲柄整周转动时摇杆往复摆动约 47.4°。
75
  对 shaft 做 check_motion(一整圈),确认无穿模后再保存。
76
+ prompt_en: |
77
+ Assemble a crank-rocker four-bar linkage. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
78
+ - frame is fixed, z∈[0,8]. The crank bearing hole is at the origin and the rocker pivot hole at (80,0).
79
+ - shaft passes through the origin hole and rotates about Z (z∈[-10,14]); the 10 mm hole of crank is fixed on shaft (z∈[8,14]) and turns with it.
80
+ - crank_pin is fixed in the 6 mm hole of crank (z∈[8,20]); one end of coupler fits on crank_pin and rotates (z∈[14,20]).
81
+ - coupler_pin is fixed in the hole at the other end of coupler (z∈[14,26]).
82
+ - rocker_pin is fixed in the (80,0) hole of frame (z∈[0,26]); one end of rocker fits on rocker_pin and rotates (z∈[20,26]),
83
+ and the other end fits on coupler_pin, forming a crank-rocker with crank 20, coupler 70, rocker 50 and ground link 80; the rocker is above the ground line (+Y side).
84
+ - Over a full crank revolution the rocker oscillates by about 47.4°.
85
+ Run check_motion on shaft (one full turn), confirm there is no interference, then save.
86
  motion:
87
  driver: shaft
88
  sweep_deg: 360
assembly/cases/desk_lamp.yaml CHANGED
@@ -13,25 +13,39 @@ parts:
13
  prompt: |
14
  创建台灯底座立板:在 front_plane 上画矩形,X 从 -60 到 60 mm,Y 从 -10 到 70 mm,向 +Z 拉伸 8 mm。
15
  在 (0,60) 开直径 5.2 mm 贯穿孔(肩部铰孔)。不要抽壳。
 
 
 
16
  - id: lamp_lower_arm
17
  extra_tools: []
18
  prompt: |
19
  创建台灯下臂:在 front_plane 上画两端圆头的长条,两孔中心距 120 mm,宽度 12 mm,
20
  两端各一个直径 5 mm 贯穿孔,向 +Z 拉伸 5 mm。原点在其中一个孔的中心,另一孔在 +X 方向。
 
 
 
21
  - id: lamp_upper_arm
22
  extra_tools: []
23
  prompt: |
24
  创建台灯上臂:两端圆头长条,两孔中心距 105 mm,宽度 12 mm,两端直径 5 mm 贯穿孔,向 +Z 拉伸 5 mm。
25
  原点在其中一个孔的中心,另一孔在 +X 方向。
 
 
 
26
  - id: lamp_shade
27
  extra_tools: []
28
  prompt: |
29
  创建灯头板:在 front_plane 上画矩形,X 从 -7 到 45 mm,Y 从 -8 到 8 mm,向 +Z 拉伸 5 mm。
30
  在原点开直径 5 mm 贯穿孔(腕部铰孔)。
 
 
 
31
  - id: lamp_pin
32
  extra_tools: []
33
  prompt: |
34
  创建铰销:直径 5 mm,长 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
35
 
36
  gold_roles:
37
  base: lamp_base
@@ -51,6 +65,14 @@ assembly:
51
  - wrist_pin 固定在 upper_arm 另一端孔里;shade 的铰孔套在 wrist_pin 上绕 Z 转动,贴在 upper_arm 前面。
52
  - 三个转角都保持自由(整机活动度 3),不要加限制转角的配合,不要把臂固定在某个角度。
53
  - 各臂互不穿模。装好后保存。
 
 
 
 
 
 
 
 
54
 
55
  motion:
56
  mode: poses
 
13
  prompt: |
14
  创建台灯底座立板:在 front_plane 上画矩形,X 从 -60 到 60 mm,Y 从 -10 到 70 mm,向 +Z 拉伸 8 mm。
15
  在 (0,60) 开直径 5.2 mm 贯穿孔(肩部铰孔)。不要抽壳。
16
+ prompt_en: |
17
+ Create the desk-lamp base upright: on front_plane draw a rectangle with X from -60 to 60 mm and Y from -10 to 70 mm, and extrude it 8 mm toward +Z.
18
+ Cut a through hole of diameter 5.2 mm at (0,60) (shoulder hinge hole). Do not shell.
19
  - id: lamp_lower_arm
20
  extra_tools: []
21
  prompt: |
22
  创建台灯下臂:在 front_plane 上画两端圆头的长条,两孔中心距 120 mm,宽度 12 mm,
23
  两端各一个直径 5 mm 贯穿孔,向 +Z 拉伸 5 mm。原点在其中一个孔的中心,另一孔在 +X 方向。
24
+ prompt_en: |
25
+ Create the desk-lamp lower arm: on front_plane draw a bar with rounded ends, 120 mm between the two hole centers, 12 mm wide,
26
+ with a through hole of diameter 5 mm at each end, and extrude it 5 mm toward +Z. The origin is at the center of one hole; the other hole is in the +X direction.
27
  - id: lamp_upper_arm
28
  extra_tools: []
29
  prompt: |
30
  创建台灯上臂:两端圆头长条,两孔中心距 105 mm,宽度 12 mm,两端直径 5 mm 贯穿孔,向 +Z 拉伸 5 mm。
31
  原点在其中一个孔的中心,另一孔在 +X 方向。
32
+ prompt_en: |
33
+ Create the desk-lamp upper arm: a bar with rounded ends, 105 mm between the two hole centers, 12 mm wide, with through holes of diameter 5 mm at both ends, extruded 5 mm toward +Z.
34
+ The origin is at the center of one hole; the other hole is in the +X direction.
35
  - id: lamp_shade
36
  extra_tools: []
37
  prompt: |
38
  创建灯头板:在 front_plane 上画矩形,X 从 -7 到 45 mm,Y 从 -8 到 8 mm,向 +Z 拉伸 5 mm。
39
  在原点开直径 5 mm 贯穿孔(腕部铰孔)。
40
+ prompt_en: |
41
+ Create the lamp-head plate: on front_plane draw a rectangle with X from -7 to 45 mm and Y from -8 to 8 mm, and extrude it 5 mm toward +Z.
42
+ Cut a through hole of diameter 5 mm at the origin (wrist hinge hole).
43
  - id: lamp_pin
44
  extra_tools: []
45
  prompt: |
46
  创建铰销:直径 5 mm,长 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。
47
+ prompt_en: |
48
+ Create a hinge pin: diameter 5 mm, length 10 mm, axis along Z, extruded from Z=0 toward +Z.
49
 
50
  gold_roles:
51
  base: lamp_base
 
65
  - wrist_pin 固定在 upper_arm 另一端孔里;shade 的铰孔套在 wrist_pin 上绕 Z 转动,贴在 upper_arm 前面。
66
  - 三个转角都保持自由(整机活动度 3),不要加限制转角的配合,不要把臂固定在某个角度。
67
  - 各臂互不穿模。装好后保存。
68
+ prompt_en: |
69
+ Assemble an adjustable desk lamp with three degrees of freedom. Do not treat the insertion coordinates as the final poses.
70
+ - base is fixed. The shoulder hinge hole is at (0,60) of base; all hinge axes are along Z.
71
+ - shoulder_pin is fixed in the shoulder hinge hole of base; one end of lower_arm fits on shoulder_pin and rotates about Z, lying against the front of base (+Z side).
72
+ - elbow_pin is fixed in the hole at the other end of lower_arm; one end of upper_arm fits on elbow_pin and rotates about Z, lying against the front of lower_arm.
73
+ - wrist_pin is fixed in the hole at the other end of upper_arm; the hinge hole of shade fits on wrist_pin and rotates about Z, lying against the front of upper_arm.
74
+ - Keep all three rotations free (mobility 3 for the whole lamp); do not add mates that limit the angles and do not fix the arms at any angle.
75
+ - The arms must not interfere with each other. Save when assembled.
76
 
77
  motion:
78
  mode: poses
assembly/cases/double_wishbone.yaml CHANGED
@@ -8,33 +8,51 @@ parts:
8
  prompt: |
9
  创建车架板:在 front_plane 上画矩形,X 从 -30 到 30 mm,Y 从 -20 到 80 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 6 mm,(10,60) 直径 6 mm。不要抽壳。
 
 
 
11
  - id: dw_lower_arm
12
  extra_tools: []
13
  prompt: |
14
  创建下摆臂:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (100,0),向 +Z 拉伸 6 mm。
15
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=100 处直径 6 mm。
 
 
 
16
  - id: dw_upper_arm
17
  extra_tools: []
18
  prompt: |
19
  创建上摆臂:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (70,0),向 +Z 拉伸 6 mm。
20
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=70 处直径 6 mm。
 
 
 
21
  - id: dw_knuckle
22
  extra_tools: []
23
  prompt: |
24
  创建转向节:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (70,0),向 +Z 拉伸 6 mm。
25
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=35 处直径 6 mm,X=70 处直径 6 mm。
 
 
 
26
  - id: dw_hub
27
  extra_tools: []
28
  prompt: |
29
  创建轮毂盘:外径 50 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 6 mm。
 
 
30
  - id: dw_pin14
31
  extra_tools: []
32
  prompt: |
33
  创建车架销:直径 6 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
34
  - id: dw_pin12
35
  extra_tools: []
36
  prompt: |
37
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
38
  gold_roles:
39
  chassis: dw_chassis
40
  lower_pin: dw_pin14
@@ -55,6 +73,14 @@ assembly:
55
  - knuckle 的原点孔套在 lower_ball 上、X=70 孔套在 upper_ball 上(z∈[14,20]),X=70 端在上。
56
  - spindle 固定在 knuckle 的 X=35 孔里(z∈[14,26]);hub 固定在 spindle 上(z∈[20,26])。
57
  - 悬架上下跳动保持自由(活动度 1),不要固定角度。各件互不穿模,装好后保存。
 
 
 
 
 
 
 
 
58
  motion:
59
  mode: poses
60
  frame: chassis
 
8
  prompt: |
9
  创建车架板:在 front_plane 上画矩形,X 从 -30 到 30 mm,Y 从 -20 到 80 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 6 mm,(10,60) 直径 6 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the chassis plate: on front_plane draw a rectangle with X from -30 to 30 mm and Y from -20 to 80 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 6 mm, (10,60) diameter 6 mm. Do not shell.
14
  - id: dw_lower_arm
15
  extra_tools: []
16
  prompt: |
17
  创建下摆臂:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (100,0),向 +Z 拉伸 6 mm。
18
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=100 处直径 6 mm。
19
+ prompt_en: |
20
+ Create the lower control arm: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (100,0), and extrude it 6 mm toward +Z.
21
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=100 diameter 6 mm.
22
  - id: dw_upper_arm
23
  extra_tools: []
24
  prompt: |
25
  创建上摆臂:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (70,0),向 +Z 拉伸 6 mm。
26
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=70 处直径 6 mm。
27
+ prompt_en: |
28
+ Create the upper control arm: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (70,0), and extrude it 6 mm toward +Z.
29
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=70 diameter 6 mm.
30
  - id: dw_knuckle
31
  extra_tools: []
32
  prompt: |
33
  创建转向节:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (70,0),向 +Z 拉伸 6 mm。
34
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=35 处直径 6 mm,X=70 处直径 6 mm。
35
+ prompt_en: |
36
+ Create the steering knuckle: on front_plane draw a bar with rounded ends, 14 mm wide, with the end-arc centers at the origin and at (70,0), and extrude it 6 mm toward +Z.
37
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=35 diameter 6 mm, at X=70 diameter 6 mm.
38
  - id: dw_hub
39
  extra_tools: []
40
  prompt: |
41
  创建轮毂盘:外径 50 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 6 mm。
42
+ prompt_en: |
43
+ Create the hub disk: a disk with outer diameter 50 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 6 mm.
44
  - id: dw_pin14
45
  extra_tools: []
46
  prompt: |
47
  创建车架销:直径 6 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
48
+ prompt_en: |
49
+ Create the chassis pin: a cylinder 6 mm in diameter and 14 mm long, axis along Z, extruded from Z=0 toward +Z.
50
  - id: dw_pin12
51
  extra_tools: []
52
  prompt: |
53
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
54
+ prompt_en: |
55
+ Create the hinge pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
56
  gold_roles:
57
  chassis: dw_chassis
58
  lower_pin: dw_pin14
 
73
  - knuckle 的原点孔套在 lower_ball 上、X=70 孔套在 upper_ball 上(z∈[14,20]),X=70 端在上。
74
  - spindle 固定在 knuckle 的 X=35 孔里(z∈[14,26]);hub 固定在 spindle 上(z∈[20,26])。
75
  - 悬架上下跳动保持自由(活动度 1),不要固定角度。各件互不穿模,装好后保存。
76
+ prompt_en: |
77
+ Assemble a double-wishbone suspension (planar simplification). Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
78
+ - chassis is fixed, z∈[0,8], lower-arm hinge hole at (0,0), upper-arm hinge hole at (10,60). lower_pin and upper_pin are fixed in the two holes respectively (z∈[0,14]).
79
+ - The origin holes of lower_arm and upper_arm fit on lower_pin and upper_pin respectively and rotate (z∈[8,14]); both extend toward +X.
80
+ - lower_ball and upper_ball are fixed in the X=100 hole of lower_arm and the X=70 hole of upper_arm respectively (z∈[8,20]).
81
+ - The origin hole of knuckle fits on lower_ball and its X=70 hole on upper_ball (z∈[14,20]), with the X=70 end on top.
82
+ - spindle is fixed in the X=35 hole of knuckle (z∈[14,26]); hub is fixed on spindle (z∈[20,26]).
83
+ - Keep the up-and-down travel of the suspension free (mobility 1); do not fix the angle. No parts may interfere. Save when assembled.
84
  motion:
85
  mode: poses
86
  frame: chassis
assembly/cases/drill_gearbox.yaml CHANGED
@@ -15,35 +15,53 @@ parts:
15
  prompt: |
16
  创建机座板:在 front_plane 上画矩形,X、Y 都从 -40 到 40 mm,向 +Z 拉伸 6 mm,
17
  在原点开直径 4.4 mm 贯穿孔(输入轴轴承)。
 
 
 
18
  - id: drill_ring48
19
  extra_tools: [internal_gear]
20
  prompt: |
21
  创建渐开线内齿圈:模数 1.2 mm,齿数 48,压力角 30°,齿宽 10 mm,外径 70 mm,轴线沿 Z。优先 internal_gear。
 
 
22
  - id: drill_ring45
23
  extra_tools: [internal_gear]
24
  prompt: |
25
  创建渐开线内齿圈:模数 1.2 mm,齿数 45,压力角 30°,齿宽 10 mm,外径 66 mm,轴线沿 Z。优先 internal_gear。
 
 
26
  - id: drill_sun12
27
  extra_tools: [spur_gear]
28
  prompt: |
29
  创建渐开线直齿轮,模数 1.2 mm,齿数 12,压力角 30°,齿宽 10 mm,轴孔直径 4 mm,轴线沿 Z。优先 spur_gear。
 
 
30
  - id: drill_planet18
31
  extra_tools: [spur_gear]
32
  prompt: |
33
  创建渐开线直齿轮,模数 1.2 mm,齿数 18,压力角 30°,齿宽 10 mm,轴孔直径 4 mm,轴线沿 Z。优先 spur_gear。
 
 
34
  - id: drill_gear15
35
  extra_tools: [spur_gear]
36
  prompt: |
37
  创建渐开线直齿轮,模数 1.2 mm,齿数 15,压力角 30°,齿宽 10 mm,轴孔直径 4 mm,轴线沿 Z。优先 spur_gear。
 
 
38
  - id: drill_carrier
39
  extra_tools: []
40
  prompt: |
41
  创建行星架:外径 48 mm、厚 4 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸。
42
  开 2 个直径 4 mm 贯穿孔:圆心 (0,0) 与 (18,0)。
 
 
 
43
  - id: drill_shaft
44
  extra_tools: []
45
  prompt: |
46
  创建轴:直径 4 mm,长 22 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
47
 
48
  gold_roles:
49
  housing: drill_housing
@@ -71,6 +89,18 @@ assembly:
71
  - 总传动比 20:input_shaft 转 20 圈 output_shaft 同向转 1 圈;第一级行星架转速为输入的 1/5。
72
  - 注意每个行星轮的啮合相位,各齿轮互不穿模。
73
  对 input_shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
 
 
 
74
 
75
  motion:
76
  driver: input_shaft
 
15
  prompt: |
16
  创建机座板:在 front_plane 上画矩形,X、Y 都从 -40 到 40 mm,向 +Z 拉伸 6 mm,
17
  在原点开直径 4.4 mm 贯穿孔(输入轴轴承)。
18
+ prompt_en: |
19
+ Create the base plate: on front_plane draw a rectangle with X and Y both from -40 to 40 mm, extrude it 6 mm toward +Z,
20
+ and cut a through hole of diameter 4.4 mm at the origin (input-shaft bearing).
21
  - id: drill_ring48
22
  extra_tools: [internal_gear]
23
  prompt: |
24
  创建渐开线内齿圈:模数 1.2 mm,齿数 48,压力角 30°,齿宽 10 mm,外径 70 mm,轴线沿 Z。优先 internal_gear。
25
+ prompt_en: |
26
+ Create an involute internal ring gear: module 1.2 mm, 48 teeth, pressure angle 30°, face width 10 mm, outer diameter 70 mm, axis along Z. Prefer internal_gear.
27
  - id: drill_ring45
28
  extra_tools: [internal_gear]
29
  prompt: |
30
  创建渐开线内齿圈:模数 1.2 mm,齿数 45,压力角 30°,齿宽 10 mm,外径 66 mm,轴线沿 Z。优先 internal_gear。
31
+ prompt_en: |
32
+ Create an involute internal ring gear: module 1.2 mm, 45 teeth, pressure angle 30°, face width 10 mm, outer diameter 66 mm, axis along Z. Prefer internal_gear.
33
  - id: drill_sun12
34
  extra_tools: [spur_gear]
35
  prompt: |
36
  创建渐开线直齿轮,模数 1.2 mm,齿数 12,压力角 30°,齿宽 10 mm,轴孔直径 4 mm,轴线沿 Z。优先 spur_gear。
37
+ prompt_en: |
38
+ Create an involute spur gear: module 1.2 mm, 12 teeth, pressure angle 30°, face width 10 mm, bore diameter 4 mm, axis along Z. Prefer spur_gear.
39
  - id: drill_planet18
40
  extra_tools: [spur_gear]
41
  prompt: |
42
  创建渐开线直齿轮,模数 1.2 mm,齿数 18,压力角 30°,齿宽 10 mm,轴孔直径 4 mm,轴线沿 Z。优先 spur_gear。
43
+ prompt_en: |
44
+ Create an involute spur gear: module 1.2 mm, 18 teeth, pressure angle 30°, face width 10 mm, bore diameter 4 mm, axis along Z. Prefer spur_gear.
45
  - id: drill_gear15
46
  extra_tools: [spur_gear]
47
  prompt: |
48
  创建渐开线直齿轮,模数 1.2 mm,齿数 15,压力角 30°,齿宽 10 mm,轴孔直径 4 mm,轴线沿 Z。优先 spur_gear。
49
+ prompt_en: |
50
+ Create an involute spur gear: module 1.2 mm, 15 teeth, pressure angle 30°, face width 10 mm, bore diameter 4 mm, axis along Z. Prefer spur_gear.
51
  - id: drill_carrier
52
  extra_tools: []
53
  prompt: |
54
  创建行星架:外径 48 mm、厚 4 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸。
55
  开 2 个直径 4 mm 贯穿孔:圆心 (0,0) 与 (18,0)。
56
+ prompt_en: |
57
+ Create the planet carrier: a disk with outer diameter 48 mm and thickness 4 mm, axis along Z, extruded from Z=0 toward +Z.
58
+ Cut 2 through holes of diameter 4 mm centered at (0,0) and (18,0).
59
  - id: drill_shaft
60
  extra_tools: []
61
  prompt: |
62
  创建轴:直径 4 mm,长 22 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。
63
+ prompt_en: |
64
+ Create a shaft: diameter 4 mm, length 22 mm, axis along Z, extruded from Z=0 toward +Z.
65
 
66
  gold_roles:
67
  housing: drill_housing
 
89
  - 总传动比 20:input_shaft 转 20 圈 output_shaft 同向转 1 圈;第一级行星架转速为输入的 1/5。
90
  - 注意每个行星轮的啮合相位,各齿轮互不穿模。
91
  对 input_shaft 做 check_motion(一整圈),确认无穿模后再保存。
92
+ prompt_en: |
93
+ Assemble the two-stage planetary gearbox of a power drill. Do not treat the insertion coordinates as the final poses. All axes are along Z and coaxial with the bearing hole of housing.
94
+ - housing is fixed; ring1 (48 teeth) and ring2 (45 teeth) are fixed to housing: ring1 lies against the front of housing (z∈[6,16]), ring2 is at z∈[20,30].
95
+ - input_shaft passes through the bearing hole of housing and rotates about Z (z∈[-6,16]); sun1 (12 teeth) is fixed on input_shaft (z∈[6,16]).
96
+ - carrier1 rotates about the main axis (z∈[16,20]); planet1 (18 teeth) rotates about the hole of carrier1 that is offset by 18 mm (z∈[6,16]),
97
+ meshing externally with sun1 and internally with ring1 at the same time.
98
+ - sun2 (15 teeth) is fixed on carrier1 (z∈[20,30]). carrier2 rotates about the main axis (z∈[30,34]);
99
+ planet2 (15 teeth) rotates about the offset hole of carrier2 (z∈[20,30]), meshing externally with sun2 and internally with ring2 at the same time.
100
+ - output_shaft is fixed on carrier2 (z∈[30,52]).
101
+ - Overall ratio 20: when input_shaft turns 20 revolutions, output_shaft turns 1 revolution in the same direction; the first-stage carrier turns at 1/5 of the input speed.
102
+ - Mind the mesh phase of every planet; gears must not interfere.
103
+ Run check_motion on input_shaft (one full turn), confirm there is no interference, then save.
104
 
105
  motion:
106
  driver: input_shaft
assembly/cases/elliptical_trainer.yaml CHANGED
@@ -8,42 +8,65 @@ parts:
8
  prompt: |
9
  创建机架板:在 front_plane 上画矩形,X 从 -60 到 330 mm,Y 从 -50 到 240 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(190,100) 直径 10 mm。不要抽壳。
 
 
 
11
  - id: et_shaft
12
  extra_tools: []
13
  prompt: |
14
  创建曲柄轴:直径 10 mm、长 28 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: et_flywheel
16
  extra_tools: []
17
  prompt: |
18
  创建飞轮:外径 120 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(40,0) 直径 14 mm,(-40,0) 直径 14 mm,(0,40) 直径 14 mm,(0,-40) 直径 14 mm。
 
 
19
  - id: et_crank
20
  extra_tools: []
21
  prompt: |
22
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 20 mm,两端半圆的圆心分别在原点和 (25,0),向 +Z 拉伸 6 mm。
23
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=25 处直径 8 mm。
 
 
 
24
  - id: et_pin8
25
  extra_tools: []
26
  prompt: |
27
  创建铰销:直径 8 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
28
  - id: et_pedal
29
  extra_tools: []
30
  prompt: |
31
  创建踏板连杆:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (200,0),向 +Z 拉伸 6 mm。
32
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=120 处直径 8 mm,X=200 处直径 8 mm。
 
 
 
33
  - id: et_rocker
34
  extra_tools: []
35
  prompt: |
36
  创建摆杆扶手:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (220,0),向 +Z 拉伸 6 mm。
37
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=100 处直径 10 mm。
 
 
 
38
  - id: et_pivot
39
  extra_tools: []
40
  prompt: |
41
  创建摆杆轴:直径 10 mm、长 52 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
42
  - id: et_foot
43
  extra_tools: []
44
  prompt: |
45
  创建脚踏板:在 front_plane 上画矩形,X 从 -35 到 35 mm,Y 从 -8 到 8 mm,向 +Z 拉伸 6 mm。
46
  开贯穿孔:(0,0) 直径 8 mm。不要抽壳。
 
 
 
47
  gold_roles:
48
  frame: et_frame
49
  shaft: et_shaft
@@ -78,6 +101,20 @@ assembly:
78
  - 两侧 rocker 的 8 mm 孔都在 pivot 下方。曲柄 25、踏板连杆 200、摆杆下段 100。
79
  曲柄一整圈:扶手摆角约 29.1°,脚踏板中心 X 向行程约 50.0 mm、Y 向约 20.2 mm,两侧交替。
80
  对 shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  motion:
82
  driver: shaft
83
  sweep_deg: 360
 
8
  prompt: |
9
  创建机架板:在 front_plane 上画矩形,X 从 -60 到 330 mm,Y 从 -50 到 240 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(190,100) 直径 10 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the frame plate: on front_plane draw a rectangle with X from -60 to 330 mm and Y from -50 to 240 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm, (190,100) diameter 10 mm. Do not shell.
14
  - id: et_shaft
15
  extra_tools: []
16
  prompt: |
17
  创建曲柄轴:直径 10 mm、长 28 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the crank shaft: a cylinder 10 mm in diameter and 28 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: et_flywheel
21
  extra_tools: []
22
  prompt: |
23
  创建飞轮:外径 120 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(40,0) 直径 14 mm,(-40,0) 直径 14 mm,(0,40) 直径 14 mm,(0,-40) 直径 14 mm。
24
+ prompt_en: |
25
+ Create the flywheel: a disk with outer diameter 120 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 10 mm. Also cut through holes: (40,0) diameter 14 mm, (-40,0) diameter 14 mm, (0,40) diameter 14 mm, (0,-40) diameter 14 mm.
26
  - id: et_crank
27
  extra_tools: []
28
  prompt: |
29
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 20 mm,两端半圆的圆心分别在原点和 (25,0),向 +Z 拉伸 6 mm。
30
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=25 处直径 8 mm。
31
+ prompt_en: |
32
+ Create the crank: on front_plane draw a bar with rounded ends, 20 mm wide, with the end-arc centers at the origin and at (25,0), and extrude it 6 mm toward +Z.
33
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=25 diameter 8 mm.
34
  - id: et_pin8
35
  extra_tools: []
36
  prompt: |
37
  创建铰销:直径 8 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
38
+ prompt_en: |
39
+ Create the hinge pin: a cylinder 8 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
40
  - id: et_pedal
41
  extra_tools: []
42
  prompt: |
43
  创建踏板连杆:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (200,0),向 +Z 拉伸 6 mm。
44
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=120 处直径 8 mm,X=200 处直径 8 mm。
45
+ prompt_en: |
46
+ Create the pedal link: on front_plane draw a bar with rounded ends, 16 mm wide, with the end-arc centers at the origin and at (200,0), and extrude it 6 mm toward +Z.
47
+ Cut through holes on the X axis: at X=0 diameter 8 mm, at X=120 diameter 8 mm, at X=200 diameter 8 mm.
48
  - id: et_rocker
49
  extra_tools: []
50
  prompt: |
51
  创建摆杆扶手:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (220,0),向 +Z 拉伸 6 mm。
52
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=100 处直径 10 mm。
53
+ prompt_en: |
54
+ Create the swing arm with handlebar: on front_plane draw a bar with rounded ends, 14 mm wide, with the end-arc centers at the origin and at (220,0), and extrude it 6 mm toward +Z.
55
+ Cut through holes on the X axis: at X=0 diameter 8 mm, at X=100 diameter 10 mm.
56
  - id: et_pivot
57
  extra_tools: []
58
  prompt: |
59
  创建摆杆轴:直径 10 mm、长 52 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
60
+ prompt_en: |
61
+ Create the lever pivot: a cylinder 10 mm in diameter and 52 mm long, axis along Z, extruded from Z=0 toward +Z.
62
  - id: et_foot
63
  extra_tools: []
64
  prompt: |
65
  创建脚踏板:在 front_plane 上画矩形,X 从 -35 到 35 mm,Y 从 -8 到 8 mm,向 +Z 拉伸 6 mm。
66
  开贯穿孔:(0,0) 直径 8 mm。不要抽壳。
67
+ prompt_en: |
68
+ Create the foot pedal: on front_plane draw a rectangle with X from -35 to 35 mm and Y from -8 to 8 mm, and extrude it 6 mm toward +Z.
69
+ Cut through holes: (0,0) diameter 8 mm. Do not shell.
70
  gold_roles:
71
  frame: et_frame
72
  shaft: et_shaft
 
101
  - 两侧 rocker 的 8 mm 孔都在 pivot 下方。曲柄 25、踏板连杆 200、摆杆下段 100。
102
  曲柄一整圈:扶手摆角约 29.1°,脚踏板中心 X 向行程约 50.0 mm、Y 向约 20.2 mm,两侧交替。
103
  对 shaft 做 check_motion(一整圈),确认无穿模后再保存。
104
+ prompt_en: |
105
+ Assemble an elliptical trainer (the left and right pedal mechanisms share the crank shaft with cranks 180° apart; the foot pedals follow elliptical paths and the handlebars swing back and forth). Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
106
+ - frame is fixed, z∈[0,8]. Crank shaft hole at (0,0), lever pivot hole at (190,100), both of diameter 10.
107
+ - shaft passes through the (0,0) hole and rotates about Z (z∈[-14,14]); the center hole of flywheel is fixed on shaft (z∈[-8,-2]).
108
+ pivot is fixed in the lever pivot hole and protrudes on both sides (z∈[-26,26]).
109
+ - Front side (in front of the plate): the 10 mm hole of crank_f is fixed on shaft (z∈[8,14]); cpin_f is fixed in the 8 mm hole of crank_f (z∈[8,20]);
110
+ the origin hole of pedal_f fits on cpin_f and rotates (z∈[14,20]); dpin_f is fixed in the X=200 hole of pedal_f (z∈[14,26]);
111
+ the 10 mm hole of rocker_f fits on pivot and rotates, and its 8 mm origin hole fits on dpin_f (z∈[20,26]), with the handlebar segment pointing up;
112
+ fpin_f is fixed in the X=120 hole of pedal_f (z∈[8,20]), and the hole of foot_f is fixed on fpin_f (z∈[8,14]), with its long side along pedal_f.
113
+ - Rear side (behind the plate): the same set, mirrored in z: crank_b z∈[-14,-8], pointing 180° away from crank_f; cpin_b z∈[-20,-8]; pedal_b z∈[-20,-14];
114
+ dpin_b z∈[-26,-14]; rocker_b z∈[-26,-20]; fpin_b z∈[-20,-8]; foot_b z∈[-14,-8].
115
+ - On both sides the 8 mm hole of rocker is below pivot. Crank 25, pedal link 200, lower lever segment 100.
116
+ Over one full crank revolution: handlebar swing about 29.1°, foot-pedal center travel about 50.0 mm in X and about 20.2 mm in Y, alternating between the two sides.
117
+ Run check_motion on shaft (one full turn), confirm there is no interference, then save.
118
  motion:
119
  driver: shaft
120
  sweep_deg: 360
assembly/cases/engine.yaml CHANGED
@@ -12,44 +12,67 @@ parts:
12
  prompt: |
13
  创建发动机机体:在 front_plane 上画矩形,X 从 -50 到 50 mm,Y 从 -50 到 160 mm,向 +Z 拉伸 8 mm。
14
  在 (0,0) 开直径 10.4 mm 贯穿孔(主轴承)。原点在该孔轴线。不要抽壳。
 
 
 
15
  - id: crank
16
  extra_tools: []
17
  prompt: |
18
  创建曲柄:在 front_plane 上画两端圆头的连杆外形,两孔中心距 25 mm,宽度 16 mm,
19
  两端各一个直径 10 mm 贯穿孔,向 +Z 拉伸 6 mm。原点在大端孔(曲轴孔)中心。
 
 
 
20
  - id: rod
21
  extra_tools: []
22
  prompt: |
23
  创建连杆:两端圆头,两孔中心距 90 mm,宽度 14 mm,两端直径 10 mm 贯穿孔,向 +Z 拉伸 6 mm。
24
  原点在大端孔中心。
 
 
 
25
  - id: piston
26
  extra_tools: []
27
  prompt: |
28
  创建活塞:轴线沿 Z,外径 24 mm,长 30 mm,中心贯穿孔直径 10 mm。从 Z=0 向 +Z 拉伸。
 
 
29
  - id: pin
30
  extra_tools: []
31
  prompt: |
32
  创建销轴:直径 10 mm,长 40 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
33
  - id: flywheel
34
  extra_tools: []
35
  prompt: |
36
  创建飞轮:外径 60 mm,厚 8 mm,中心孔直径 10 mm,轴线沿 Z。
 
 
37
  - id: crank_gear
38
  extra_tools: [spur_gear]
39
  prompt: |
40
  创建渐开线直齿轮,模数 3 mm,齿数 16,压力角 30°,齿宽 10 mm,轴孔直径 10 mm,轴线沿 Z。优先 spur_gear。
 
 
41
  - id: cam_gear
42
  extra_tools: [spur_gear]
43
  prompt: |
44
  创建渐开线直齿轮,模数 3 mm,齿数 32,压力角 30°,齿宽 10 mm,轴孔直径 10 mm,轴线沿 Z。优先 spur_gear。
 
 
45
  - id: camshaft
46
  extra_tools: []
47
  prompt: |
48
  创建凸轮轴:直径 10 mm,长 50 mm,轴线沿 Z。
 
 
49
  - id: cam
50
  extra_tools: []
51
  prompt: |
52
  创建偏心凸轮:外径 28 mm、厚 8 mm 的圆盘,中心孔直径 10 mm,孔心相对外圆圆心沿 +X 偏心 4 mm。轴线沿 Z。
 
 
53
 
54
  gold_roles:
55
  frame: frame
@@ -75,6 +98,15 @@ assembly:
75
  - 16 齿曲柄齿轮与 32 齿凸轮齿轮外啮合(中心距 72 mm),凸轮轴和凸轮与凸轮齿轮 1:1 同向。
76
  - 曲柄转一圈,活塞行程应为 50 mm;凸轮轴反向半速。
77
  对曲轴做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
78
 
79
  motion:
80
  driver: crank_shaft
 
12
  prompt: |
13
  创建发动机机体:在 front_plane 上画矩形,X 从 -50 到 50 mm,Y 从 -50 到 160 mm,向 +Z 拉伸 8 mm。
14
  在 (0,0) 开直径 10.4 mm 贯穿孔(主轴承)。原点在该孔轴线。不要抽壳。
15
+ prompt_en: |
16
+ Create the engine block: on front_plane draw a rectangle with X from -50 to 50 mm and Y from -50 to 160 mm, and extrude it 8 mm toward +Z.
17
+ Cut a through hole of diameter 10.4 mm at (0,0) (main bearing). The origin is on the axis of this hole. Do not shell.
18
  - id: crank
19
  extra_tools: []
20
  prompt: |
21
  创建曲柄:在 front_plane 上画两端圆头的连杆外形,两孔中心距 25 mm,宽度 16 mm,
22
  两端各一个直径 10 mm 贯穿孔,向 +Z 拉伸 6 mm。原点在大端孔(曲轴孔)中心。
23
+ prompt_en: |
24
+ Create the crank: on front_plane draw a link outline with rounded ends, 25 mm between the two hole centers, 16 mm wide,
25
+ with a through hole of diameter 10 mm at each end, and extrude it 6 mm toward +Z. The origin is at the center of the big-end hole (crankshaft hole).
26
  - id: rod
27
  extra_tools: []
28
  prompt: |
29
  创建连杆:两端圆头,两孔中心距 90 mm,宽度 14 mm,两端直径 10 mm 贯穿孔,向 +Z 拉伸 6 mm。
30
  原点在大端孔中心。
31
+ prompt_en: |
32
+ Create the connecting rod: rounded ends, 90 mm between the two hole centers, 14 mm wide, through holes of diameter 10 mm at both ends, extruded 6 mm toward +Z.
33
+ The origin is at the center of the big-end hole.
34
  - id: piston
35
  extra_tools: []
36
  prompt: |
37
  创建活塞:轴线沿 Z,外径 24 mm,长 30 mm,中心贯穿孔直径 10 mm。从 Z=0 向 +Z 拉伸。
38
+ prompt_en: |
39
+ Create the piston: axis along Z, outer diameter 24 mm, length 30 mm, central through hole of diameter 10 mm. Extrude from Z=0 toward +Z.
40
  - id: pin
41
  extra_tools: []
42
  prompt: |
43
  创建销轴:直径 10 mm,长 40 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。
44
+ prompt_en: |
45
+ Create a pin: diameter 10 mm, length 40 mm, axis along Z, extruded from Z=0 toward +Z.
46
  - id: flywheel
47
  extra_tools: []
48
  prompt: |
49
  创建飞轮:外径 60 mm,厚 8 mm,中心孔直径 10 mm,轴线沿 Z。
50
+ prompt_en: |
51
+ Create the flywheel: outer diameter 60 mm, thickness 8 mm, central hole diameter 10 mm, axis along Z.
52
  - id: crank_gear
53
  extra_tools: [spur_gear]
54
  prompt: |
55
  创建渐开线直齿轮,模数 3 mm,齿数 16,压力角 30°,齿宽 10 mm,轴孔直径 10 mm,轴线沿 Z。优先 spur_gear。
56
+ prompt_en: |
57
+ Create an involute spur gear: module 3 mm, 16 teeth, pressure angle 30°, face width 10 mm, bore diameter 10 mm, axis along Z. Prefer spur_gear.
58
  - id: cam_gear
59
  extra_tools: [spur_gear]
60
  prompt: |
61
  创建渐开线直齿轮,模数 3 mm,齿数 32,压力角 30°,齿宽 10 mm,轴孔直径 10 mm,轴线沿 Z。优先 spur_gear。
62
+ prompt_en: |
63
+ Create an involute spur gear: module 3 mm, 32 teeth, pressure angle 30°, face width 10 mm, bore diameter 10 mm, axis along Z. Prefer spur_gear.
64
  - id: camshaft
65
  extra_tools: []
66
  prompt: |
67
  创建凸轮轴:直径 10 mm,长 50 mm,轴线沿 Z。
68
+ prompt_en: |
69
+ Create the camshaft: diameter 10 mm, length 50 mm, axis along Z.
70
  - id: cam
71
  extra_tools: []
72
  prompt: |
73
  创建偏心凸轮:外径 28 mm、厚 8 mm 的圆盘,中心孔直径 10 mm,孔心相对外圆圆心沿 +X 偏心 4 mm。轴线沿 Z。
74
+ prompt_en: |
75
+ Create the eccentric cam: a disk with outer diameter 28 mm and thickness 8 mm, central hole diameter 10 mm, with the hole center offset 4 mm along +X from the center of the outer circle. Axis along Z.
76
 
77
  gold_roles:
78
  frame: frame
 
98
  - 16 齿曲柄齿轮与 32 齿凸轮齿轮外啮合(中心距 72 mm),凸轮轴和凸轮与凸轮齿轮 1:1 同向。
99
  - 曲柄转一圈,活塞行程应为 50 mm;凸轮轴反向半速。
100
  对曲轴做 check_motion(一整圈),确认无穿模后再保存。
101
+ prompt_en: |
102
+ Assemble a single-cylinder slider-crank mechanism with 2:1 timing gears. Do not treat the insertion coordinates as the final poses.
103
+ - frame is fixed. The main bearing hole is at the origin; the piston should reciprocate along +Y.
104
+ - The crankshaft pin passes through the main bearing hole of the block and the big end of the crank; the crank can rotate about Z.
105
+ - The crank pin, connecting rod and wrist pin form the slider-crank; the piston (or wrist pin) can only move along +Y of the block.
106
+ - The flywheel and the crank timing gear turn 1:1 with the crank, in the same direction.
107
+ - The 16-tooth crank gear meshes externally with the 32-tooth cam gear (center distance 72 mm); the camshaft and cam turn 1:1 with the cam gear, in the same direction.
108
+ - For one crank revolution the piston stroke should be 50 mm; the camshaft turns at half speed in the opposite direction.
109
+ Run check_motion on the crankshaft (one full turn), confirm there is no interference, then save.
110
 
111
  motion:
112
  driver: crank_shaft
assembly/cases/excavator_arm.yaml CHANGED
@@ -8,43 +8,67 @@ parts:
8
  prompt: |
9
  创建底座板:在 front_plane 上画矩形,X 从 -60 到 140 mm,Y 从 -30 到 70 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,40) 直径 6 mm,(110,0) 直径 6 mm。不要抽壳。
 
 
 
11
  - id: ex_boom
12
  extra_tools: []
13
  prompt: |
14
  创建动臂:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (160,0),向 +Z 拉伸 6 mm。
15
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=60 处直径 6 mm,X=160 处直径 6 mm。
 
 
 
16
  - id: ex_stick
17
  extra_tools: []
18
  prompt: |
19
  创建斗杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (110,0),向 +Z 拉伸 6 mm。
20
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=110 处直径 6 mm。
 
 
 
21
  - id: ex_bucket
22
  extra_tools: []
23
  prompt: |
24
  创建铲斗板:在 front_plane 上画两端圆头的长条,宽 20 mm,两端半圆的圆心分别在原点和 (50,0),向 +Z 拉伸 6 mm。
25
  在 X 轴上开贯穿孔:X=0 处直径 6 mm。
 
 
 
26
  - id: ex_barrel
27
  extra_tools: []
28
  prompt: |
29
  创建油缸筒:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (90,0),向 +Z 拉伸 6 mm。
30
  在 X 轴上开贯穿孔:X=0 处直径 6 mm。
 
 
 
31
  - id: ex_ram
32
  extra_tools: []
33
  prompt: |
34
  创建活塞杆:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (90,0),向 +Z 拉伸 6 mm。
35
  在 X 轴上开贯穿孔:X=0 处直径 6 mm。
 
 
 
36
  - id: ex_pin26
37
  extra_tools: []
38
  prompt: |
39
  创建动臂销:直径 6 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
40
  - id: ex_pin14
41
  extra_tools: []
42
  prompt: |
43
  创建缸底销:直径 6 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
44
  - id: ex_pin12
45
  extra_tools: []
46
  prompt: |
47
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
48
  gold_roles:
49
  base: ex_base
50
  boom: ex_boom
@@ -68,6 +92,16 @@ assembly:
68
  - stick_pin 固定在 boom 的 X=160 孔(z∈[20,32]);stick 的原点孔套在上面转动(z∈[26,32])。
69
  - bucket_pin 固定在 stick 的 X=110 孔(z∈[26,38]);bucket 的孔套在上面转动(z∈[32,38])。
70
  - 动臂俯仰(油缸伸缩)、斗杆、铲斗三个自由度都保持自由(整机活动度 3),不要固定角度。各件互不穿模,装好后保存。
 
 
 
 
 
 
 
 
 
 
71
  motion:
72
  mode: poses
73
  frame: base
 
8
  prompt: |
9
  创建底座板:在 front_plane 上画矩形,X 从 -60 到 140 mm,Y 从 -30 到 70 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,40) 直径 6 mm,(110,0) 直径 6 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the base plate: on front_plane draw a rectangle with X from -60 to 140 mm and Y from -30 to 70 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,40) diameter 6 mm, (110,0) diameter 6 mm. Do not shell.
14
  - id: ex_boom
15
  extra_tools: []
16
  prompt: |
17
  创建动臂:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (160,0),向 +Z 拉伸 6 mm。
18
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=60 处直径 6 mm,X=160 处直径 6 mm。
19
+ prompt_en: |
20
+ Create the boom: on front_plane draw a bar with rounded ends, 14 mm wide, with the end-arc centers at the origin and at (160,0), and extrude it 6 mm toward +Z.
21
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=60 diameter 6 mm, at X=160 diameter 6 mm.
22
  - id: ex_stick
23
  extra_tools: []
24
  prompt: |
25
  创建斗杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (110,0),向 +Z 拉伸 6 mm。
26
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=110 处直径 6 mm。
27
+ prompt_en: |
28
+ Create the stick: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (110,0), and extrude it 6 mm toward +Z.
29
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=110 diameter 6 mm.
30
  - id: ex_bucket
31
  extra_tools: []
32
  prompt: |
33
  创建铲斗板:在 front_plane 上画两端圆头的长条,宽 20 mm,两端半圆的圆心分别在原点和 (50,0),向 +Z 拉伸 6 mm。
34
  在 X 轴上开贯穿孔:X=0 处直径 6 mm。
35
+ prompt_en: |
36
+ Create the bucket plate: on front_plane draw a bar with rounded ends, 20 mm wide, with the end-arc centers at the origin and at (50,0), and extrude it 6 mm toward +Z.
37
+ Cut through holes on the X axis: at X=0 diameter 6 mm.
38
  - id: ex_barrel
39
  extra_tools: []
40
  prompt: |
41
  创建油缸筒:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (90,0),向 +Z 拉伸 6 mm。
42
  在 X 轴上开贯穿孔:X=0 处直径 6 mm。
43
+ prompt_en: |
44
+ Create the cylinder barrel: on front_plane draw a bar with rounded ends, 14 mm wide, with the end-arc centers at the origin and at (90,0), and extrude it 6 mm toward +Z.
45
+ Cut through holes on the X axis: at X=0 diameter 6 mm.
46
  - id: ex_ram
47
  extra_tools: []
48
  prompt: |
49
  创建活塞杆:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (90,0),向 +Z 拉伸 6 mm。
50
  在 X 轴上开贯穿孔:X=0 处直径 6 mm。
51
+ prompt_en: |
52
+ Create the piston rod: on front_plane draw a bar with rounded ends, 10 mm wide, with the end-arc centers at the origin and at (90,0), and extrude it 6 mm toward +Z.
53
+ Cut through holes on the X axis: at X=0 diameter 6 mm.
54
  - id: ex_pin26
55
  extra_tools: []
56
  prompt: |
57
  创建动臂销:直径 6 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
58
+ prompt_en: |
59
+ Create the boom pin: a cylinder 6 mm in diameter and 26 mm long, axis along Z, extruded from Z=0 toward +Z.
60
  - id: ex_pin14
61
  extra_tools: []
62
  prompt: |
63
  创建缸底销:直径 6 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
64
+ prompt_en: |
65
+ Create the cylinder base pin: a cylinder 6 mm in diameter and 14 mm long, axis along Z, extruded from Z=0 toward +Z.
66
  - id: ex_pin12
67
  extra_tools: []
68
  prompt: |
69
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
70
+ prompt_en: |
71
+ Create the hinge pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
72
  gold_roles:
73
  base: ex_base
74
  boom: ex_boom
 
92
  - stick_pin 固定在 boom 的 X=160 孔(z∈[20,32]);stick 的原点孔套在上面转动(z∈[26,32])。
93
  - bucket_pin 固定在 stick 的 X=110 孔(z∈[26,38]);bucket 的孔套在上面转动(z∈[32,38])。
94
  - 动臂俯仰(油缸伸缩)、斗杆、铲斗三个自由度都保持自由(整机活动度 3),不要固定角度。各件互不穿模,装好后保存。
95
+ prompt_en: |
96
+ Assemble an excavator working arm (the boom is driven by a hydraulic cylinder; the stick and bucket can rotate). Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
97
+ - base is fixed, z∈[0,8]. Boom hinge hole at (0,40), cylinder base hinge hole at (110,0).
98
+ - boom_pin is fixed in the (0,40) hole (z∈[0,26]); the origin hole of boom fits on boom_pin and rotates (z∈[20,26]).
99
+ - barrel_pin is fixed in the (110,0) hole (z∈[0,14]); the hole of barrel fits on barrel_pin and rotates (z∈[8,14]), with the barrel body extending toward the boom.
100
+ - ram_pin is fixed in the X=60 hole of boom (z∈[14,26]); the hole of ram fits on ram_pin and rotates (z∈[14,20]), with the rod extending toward barrel_pin into the cylinder barrel;
101
+ ram and barrel form a sliding pair (they can only extend and retract along the cylinder axis, and their axes always stay collinear).
102
+ - stick_pin is fixed in the X=160 hole of boom (z∈[20,32]); the origin hole of stick fits on it and rotates (z∈[26,32]).
103
+ - bucket_pin is fixed in the X=110 hole of stick (z∈[26,38]); the hole of bucket fits on it and rotates (z∈[32,38]).
104
+ - Keep the three degrees of freedom (boom luffing via cylinder extension, stick, bucket) free (mobility 3 for the whole arm); do not fix any angle. No parts may interfere. Save when assembled.
105
  motion:
106
  mode: poses
107
  frame: base
assembly/cases/five_bar_robot.yaml CHANGED
@@ -8,36 +8,55 @@ parts:
8
  prompt: |
9
  创建底座:在 front_plane 上画矩形,X 从 -60 到 120 mm,Y 从 -40 到 40 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(60,0) 直径 10 mm。不要抽壳。
 
 
 
11
  - id: fr_shaft
12
  extra_tools: []
13
  prompt: |
14
  创建电机轴:直径 10 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: fr_prox
16
  extra_tools: []
17
  prompt: |
18
  创建主动臂:在 front_plane 上画两端圆头的长条,宽 18 mm,两端半圆的圆心分别在原点和 (70,0),向 +Z 拉伸 6 mm。
19
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=70 处直径 6 mm。
 
 
 
20
  - id: fr_dist
21
  extra_tools: []
22
  prompt: |
23
  创建从动臂:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (100,0),向 +Z 拉伸 6 mm。
24
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=100 处直径 6 mm。
 
 
 
25
  - id: fr_pin12
26
  extra_tools: []
27
  prompt: |
28
  创建肘销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
29
  - id: fr_pin18
30
  extra_tools: []
31
  prompt: |
32
  创建长肘销:直径 6 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
33
  - id: fr_tool_pin
34
  extra_tools: []
35
  prompt: |
36
  创建末端销:直径 6 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
37
  - id: fr_tool
38
  extra_tools: []
39
  prompt: |
40
  创建末端执行器:外径 30 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 6 mm。另开贯穿孔:(9,0) 直径 4 mm,(-9,0) 直径 4 mm。
 
 
41
  gold_roles:
42
  base: fr_base
43
  a1_pin: fr_shaft
@@ -59,6 +78,14 @@ assembly:
59
  - d1(从动臂,长 100)的原点孔套在 e1_pin 上转动(z∈[14,20]);d2 的原点孔套在 e2_pin 上转动(z∈[20,26])。
60
  - p_pin 固定在 d2 的另一孔里(z∈[14,32]),d1 的另一孔也套在 p_pin 上;tool 的中心孔固定在 p_pin 上(z∈[26,32])。末端在两肘点连线的上方。
61
  - 两只主动臂的转角保持自由(整机活动度 2),不要固定。各件互不穿模,装好后保存。
 
 
 
 
 
 
 
 
62
  motion:
63
  mode: poses
64
  frame: base
 
8
  prompt: |
9
  创建底座:在 front_plane 上画矩形,X 从 -60 到 120 mm,Y 从 -40 到 40 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(60,0) 直径 10 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the base: on front_plane draw a rectangle with X from -60 to 120 mm and Y from -40 to 40 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm, (60,0) diameter 10 mm. Do not shell.
14
  - id: fr_shaft
15
  extra_tools: []
16
  prompt: |
17
  创建电机轴:直径 10 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the motor shaft: a cylinder 10 mm in diameter and 14 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: fr_prox
21
  extra_tools: []
22
  prompt: |
23
  创建主动臂:在 front_plane 上画两端圆头的长条,宽 18 mm,两端半圆的圆心分别在原点和 (70,0),向 +Z 拉伸 6 mm。
24
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=70 处直径 6 mm。
25
+ prompt_en: |
26
+ Create the driving arm: on front_plane draw a bar with rounded ends, 18 mm wide, with the end-arc centers at the origin and at (70,0), and extrude it 6 mm toward +Z.
27
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=70 diameter 6 mm.
28
  - id: fr_dist
29
  extra_tools: []
30
  prompt: |
31
  创建从动臂:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (100,0),向 +Z 拉伸 6 mm。
32
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=100 处直径 6 mm。
33
+ prompt_en: |
34
+ Create the driven arm: on front_plane draw a bar with rounded ends, 14 mm wide, with the end-arc centers at the origin and at (100,0), and extrude it 6 mm toward +Z.
35
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=100 diameter 6 mm.
36
  - id: fr_pin12
37
  extra_tools: []
38
  prompt: |
39
  创建肘销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
40
+ prompt_en: |
41
+ Create the elbow pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
42
  - id: fr_pin18
43
  extra_tools: []
44
  prompt: |
45
  创建长肘销:直径 6 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
46
+ prompt_en: |
47
+ Create the long elbow pin: a cylinder 6 mm in diameter and 18 mm long, axis along Z, extruded from Z=0 toward +Z.
48
  - id: fr_tool_pin
49
  extra_tools: []
50
  prompt: |
51
  创建末端销:直径 6 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
52
+ prompt_en: |
53
+ Create the end pin: a cylinder 6 mm in diameter and 18 mm long, axis along Z, extruded from Z=0 toward +Z.
54
  - id: fr_tool
55
  extra_tools: []
56
  prompt: |
57
  创建末端执行器:外径 30 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 6 mm。另开贯穿孔:(9,0) 直径 4 mm,(-9,0) 直径 4 mm。
58
+ prompt_en: |
59
+ Create the end effector: a disk with outer diameter 30 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 6 mm. Also cut through holes: (9,0) diameter 4 mm, (-9,0) diameter 4 mm.
60
  gold_roles:
61
  base: fr_base
62
  a1_pin: fr_shaft
 
78
  - d1(从动臂,长 100)的原点孔套在 e1_pin 上转动(z∈[14,20]);d2 的原点孔套在 e2_pin 上转动(z∈[20,26])。
79
  - p_pin 固定在 d2 的另一孔里(z∈[14,32]),d1 的另一孔也套在 p_pin 上;tool 的中心孔固定在 p_pin 上(z∈[26,32])。末端在两肘点连线的上方。
80
  - 两只主动臂的转角保持自由(整机活动度 2),不要固定。各件互不穿模,装好后保存。
81
+ prompt_en: |
82
+ Assemble a five-bar parallel robot: two driving arms rotate about two shafts on the base, two driven arms are hinged together at the end, and the end effector is positioned with two degrees of freedom in the plane. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
83
+ - base is fixed, z∈[0,8], two shaft holes at (0,0) and (60,0), diameter 10. a1_pin and a2_pin are fixed in these two holes respectively (z∈[0,14]).
84
+ - The 10 mm holes of p1 and p2 (driving arms, length 70) fit on a1_pin and a2_pin respectively and rotate (z∈[8,14]).
85
+ - e1_pin is fixed in the 6 mm hole of p1 (z∈[8,20]); e2_pin is fixed in the 6 mm hole of p2 (z∈[8,26]).
86
+ - The origin hole of d1 (driven arm, length 100) fits on e1_pin and rotates (z∈[14,20]); the origin hole of d2 fits on e2_pin and rotates (z∈[20,26]).
87
+ - p_pin is fixed in the other hole of d2 (z∈[14,32]), and the other hole of d1 also fits on p_pin; the center hole of tool is fixed on p_pin (z∈[26,32]). The end point is above the line through the two elbows.
88
+ - Keep the rotations of the two driving arms free (mobility 2 for the whole robot); do not fix them. No parts may interfere. Save when assembled.
89
  motion:
90
  mode: poses
91
  frame: base
assembly/cases/gear_screw_lift.yaml CHANGED
@@ -8,42 +8,63 @@ parts:
8
  prompt: |
9
  创建底板:在 front_plane 上画矩形,X 从 -60 到 60 mm,Y 从 -40 到 40 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(-36,0) 直径 10 mm,(36,0) 直径 10 mm,(0,24) 直径 10 mm,(0,-24) 直径 10 mm。不要抽壳。
 
 
 
11
  - id: gl_motor_shaft
12
  extra_tools: []
13
  prompt: |
14
  创建电机轴:直径 10 mm、长 30 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: gl_handwheel
16
  extra_tools: []
17
  prompt: |
18
  创建手轮:外径 50 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(16,0) 直径 6 mm。
 
 
19
  - id: gl_pinion
20
  extra_tools:
21
  - spur_gear
22
  prompt: |
23
  创建渐开线直齿轮,模数 2 mm,齿数 12,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
24
  - id: gl_screw
25
  extra_tools: []
26
  prompt: |
27
  创建丝杠:直径 10 mm、长 110 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
28
  - id: gl_gear
29
  extra_tools:
30
  - spur_gear
31
  prompt: |
32
  创建渐开线直齿轮,模数 2 mm,齿数 24,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
33
  - id: gl_platform
34
  extra_tools: []
35
  prompt: |
36
  创建升降平台:在 front_plane 上画矩形,X 从 -50 到 50 mm,Y 从 -14 到 14 mm,向 +Z 拉伸 8 mm。
37
  开贯穿孔:(-36,0) 直径 10 mm,(36,0) 直径 10 mm。不要抽壳。
 
 
 
38
  - id: gl_post
39
  extra_tools: []
40
  prompt: |
41
  创建立柱:直径 10 mm、长 120 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
42
  - id: gl_top
43
  extra_tools: []
44
  prompt: |
45
  创建顶板:在 front_plane 上画矩形,X 从 -50 到 50 mm,Y 从 -30 到 30 mm,向 +Z 拉伸 8 mm。
46
  开贯穿孔:(-36,0) 直径 12 mm,(36,0) 直径 12 mm,(0,24) 直径 10 mm,(0,-24) 直径 10 mm。不要抽壳。
 
 
 
47
  gold_roles:
48
  frame: gl_frame
49
  motor_shaft: gl_motor_shaft
@@ -69,6 +90,17 @@ assembly:
69
  初始 platform 在 z∈[50,58]。
70
  - 电机转 1 圈,丝杠转半圈,平台移动 3 mm。各齿轮互不穿模,啮合齿相位要对上。
71
  对 motor_shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
 
 
72
  motion:
73
  driver: motor_shaft
74
  sweep_deg: 360
 
8
  prompt: |
9
  创建底板:在 front_plane 上画矩形,X 从 -60 到 60 mm,Y 从 -40 到 40 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(-36,0) 直径 10 mm,(36,0) 直径 10 mm,(0,24) 直径 10 mm,(0,-24) 直径 10 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the bottom plate: on front_plane draw a rectangle with X from -60 to 60 mm and Y from -40 to 40 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm, (-36,0) diameter 10 mm, (36,0) diameter 10 mm, (0,24) diameter 10 mm, (0,-24) diameter 10 mm. Do not shell.
14
  - id: gl_motor_shaft
15
  extra_tools: []
16
  prompt: |
17
  创建电机轴:直径 10 mm、长 30 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the motor shaft: a cylinder 10 mm in diameter and 30 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: gl_handwheel
21
  extra_tools: []
22
  prompt: |
23
  创建手轮:外径 50 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(16,0) 直径 6 mm。
24
+ prompt_en: |
25
+ Create the handwheel: a disk with outer diameter 50 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 10 mm. Also cut through holes: (16,0) diameter 6 mm.
26
  - id: gl_pinion
27
  extra_tools:
28
  - spur_gear
29
  prompt: |
30
  创建渐开线直齿轮,模数 2 mm,齿数 12,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
31
+ prompt_en: |
32
+ Create an involute spur gear: module 2 mm, 12 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
33
  - id: gl_screw
34
  extra_tools: []
35
  prompt: |
36
  创建丝杠:直径 10 mm、长 110 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
37
+ prompt_en: |
38
+ Create the lead screw: a cylinder 10 mm in diameter and 110 mm long, axis along Z, extruded from Z=0 toward +Z.
39
  - id: gl_gear
40
  extra_tools:
41
  - spur_gear
42
  prompt: |
43
  创建渐开线直齿轮,模数 2 mm,齿数 24,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
44
+ prompt_en: |
45
+ Create an involute spur gear: module 2 mm, 24 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
46
  - id: gl_platform
47
  extra_tools: []
48
  prompt: |
49
  创建升降平台:在 front_plane 上画矩形,X 从 -50 到 50 mm,Y 从 -14 到 14 mm,向 +Z 拉伸 8 mm。
50
  开贯穿孔:(-36,0) 直径 10 mm,(36,0) 直径 10 mm。不要抽壳。
51
+ prompt_en: |
52
+ Create the lift platform: on front_plane draw a rectangle with X from -50 to 50 mm and Y from -14 to 14 mm, and extrude it 8 mm toward +Z.
53
+ Cut through holes: (-36,0) diameter 10 mm, (36,0) diameter 10 mm. Do not shell.
54
  - id: gl_post
55
  extra_tools: []
56
  prompt: |
57
  创建立柱:直径 10 mm、长 120 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
58
+ prompt_en: |
59
+ Create the column: a cylinder 10 mm in diameter and 120 mm long, axis along Z, extruded from Z=0 toward +Z.
60
  - id: gl_top
61
  extra_tools: []
62
  prompt: |
63
  创建顶板:在 front_plane 上画矩形,X 从 -50 到 50 mm,Y 从 -30 到 30 mm,向 +Z 拉伸 8 mm。
64
  开贯穿孔:(-36,0) 直径 12 mm,(36,0) 直径 12 mm,(0,24) 直径 10 mm,(0,-24) 直径 10 mm。不要抽壳。
65
+ prompt_en: |
66
+ Create the top plate: on front_plane draw a rectangle with X from -50 to 50 mm and Y from -30 to 30 mm, and extrude it 8 mm toward +Z.
67
+ Cut through holes: (-36,0) diameter 12 mm, (36,0) diameter 12 mm, (0,24) diameter 10 mm, (0,-24) diameter 10 mm. Do not shell.
68
  gold_roles:
69
  frame: gl_frame
70
  motor_shaft: gl_motor_shaft
 
90
  初始 platform 在 z∈[50,58]。
91
  - 电机转 1 圈,丝杠转半圈,平台移动 3 mm。各齿轮互不穿模,啮合齿相位要对上。
92
  对 motor_shaft 做 check_motion(一整圈),确认无穿模后再保存。
93
+ prompt_en: |
94
+ Assemble a gear-driven lead-screw lift table: the motor pinion drives the left and right screws together; the left screw raises and lowers the platform through a screw pair, and the right screw also serves as a guide. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
95
+ - frame is fixed, z∈[0,8]. Motor shaft hole (0,0), screw holes (-36,0) and (36,0), column holes (0,24) and (0,-24), all of diameter 10.
96
+ - motor_shaft passes through the (0,0) hole and rotates about Z (z∈[-14,16]); the 12-tooth pinion (z∈[8,16]) and the center hole of handwheel (z∈[-14,-8]) are fixed on it.
97
+ - screw_l and screw_r pass through the (-36,0) and (36,0) holes respectively and rotate about Z (z∈[0,110]); the 24-tooth gear_l and gear_r are fixed on the corresponding screws (z∈[8,16]),
98
+ and both mesh externally with pinion (module 2, center distance 36).
99
+ - post_a and post_b are fixed in the two column holes (z∈[0,120]); the (0,24) hole of top is fixed on post_a (z∈[112,120]), and post_b passes through the (0,-24) hole of top.
100
+ - The (-36,0) hole of platform forms a screw pair with screw_l (lead 6 mm); its (36,0) hole fits on screw_r and can only slide along Z (it may also rotate relative to screw_r).
101
+ Initially platform is at z∈[50,58].
102
+ - For 1 motor revolution the screws turn half a revolution and the platform moves 3 mm. Gears must not interfere, and meshing teeth must be phased correctly.
103
+ Run check_motion on motor_shaft (one full turn), confirm there is no interference, then save.
104
  motion:
105
  driver: motor_shaft
106
  sweep_deg: 360
assembly/cases/gear_sync_gripper.yaml CHANGED
@@ -8,43 +8,66 @@ parts:
8
  prompt: |
9
  创建夹爪底座:在 front_plane 上画矩形,X 从 -60 到 60 mm,Y 从 -30 到 25 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(-15,0) 直径 10 mm,(15,0) 直径 10 mm,(-40.3,5.9) 直径 6 mm,(40.3,5.9) 直径 6 mm。不要抽壳。
 
 
 
11
  - id: gg_shaft
12
  extra_tools: []
13
  prompt: |
14
  创建齿轮轴:直径 10 mm、长 22 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: gg_gear
16
  extra_tools:
17
  - spur_gear
18
  prompt: |
19
  创建渐开线直齿轮,模数 2 mm,齿数 15,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
20
  - id: gg_drive
21
  extra_tools: []
22
  prompt: |
23
  创建主动摆杆:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (50,0),向 +Z 拉伸 6 mm。
24
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=50 处直径 6 mm。
 
 
 
25
  - id: gg_idler
26
  extra_tools: []
27
  prompt: |
28
  创建从动摆杆:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (50,0),向 +Z 拉伸 6 mm。
29
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=50 处直径 6 mm。
 
 
 
30
  - id: gg_pin22
31
  extra_tools: []
32
  prompt: |
33
  创建底座销:直径 6 mm、长 22 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
34
  - id: gg_pin12
35
  extra_tools: []
36
  prompt: |
37
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
38
  - id: gg_finger_l
39
  extra_tools: []
40
  prompt: |
41
  创建左指:在 front_plane 上画矩形,X 从 -32 到 4 mm,Y 从 -70 到 12 mm,向 +Z 拉伸 6 mm。
42
  开贯穿孔:(0,0) 直径 6 mm,(-25.3,5.9) 直径 6 mm。不要抽壳。
 
 
 
43
  - id: gg_finger_r
44
  extra_tools: []
45
  prompt: |
46
  创建右指:在 front_plane 上画矩形,X 从 -4 到 32 mm,Y 从 -70 到 12 mm,向 +Z 拉伸 6 mm。
47
  开贯穿孔:(0,0) 直径 6 mm,(25.3,5.9) 直径 6 mm。不要抽壳。
 
 
 
48
  gold_roles:
49
  base: gg_base
50
  shaft_l: gg_shaft
@@ -75,6 +98,17 @@ assembly:
75
  - finger_l 的 (0,0) 孔套在 fpin_dl 上、(-25.3,5.9) 孔套在 fpin_il 上(z∈[22,28]);finger_r 的 (0,0) 孔套在 fpin_dr 上、
76
  (25.3,5.9) 孔套在 fpin_ir 上。两只摆杆都朝下(−Y 侧)偏外伸出,左右镜像对称,指尖朝下。
77
  - 开合这 1 个自由度保持自由(整机活动度 1),不要固定。各件互不穿模,装好后保存。
 
 
 
 
 
 
 
 
 
 
 
78
  motion:
79
  mode: poses
80
  frame: base
 
8
  prompt: |
9
  创建夹爪底座:在 front_plane 上画矩形,X 从 -60 到 60 mm,Y 从 -30 到 25 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(-15,0) 直径 10 mm,(15,0) 直径 10 mm,(-40.3,5.9) 直径 6 mm,(40.3,5.9) 直径 6 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the gripper base: on front_plane draw a rectangle with X from -60 to 60 mm and Y from -30 to 25 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (-15,0) diameter 10 mm, (15,0) diameter 10 mm, (-40.3,5.9) diameter 6 mm, (40.3,5.9) diameter 6 mm. Do not shell.
14
  - id: gg_shaft
15
  extra_tools: []
16
  prompt: |
17
  创建齿轮轴:直径 10 mm、长 22 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the gear shaft: a cylinder 10 mm in diameter and 22 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: gg_gear
21
  extra_tools:
22
  - spur_gear
23
  prompt: |
24
  创建渐开线直齿轮,模数 2 mm,齿数 15,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
25
+ prompt_en: |
26
+ Create an involute spur gear: module 2 mm, 15 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
27
  - id: gg_drive
28
  extra_tools: []
29
  prompt: |
30
  创建主动摆杆:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (50,0),向 +Z 拉伸 6 mm。
31
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=50 处直径 6 mm。
32
+ prompt_en: |
33
+ Create the driving lever: on front_plane draw a bar with rounded ends, 14 mm wide, with the end-arc centers at the origin and at (50,0), and extrude it 6 mm toward +Z.
34
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=50 diameter 6 mm.
35
  - id: gg_idler
36
  extra_tools: []
37
  prompt: |
38
  创建从动摆杆:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (50,0),向 +Z 拉伸 6 mm。
39
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=50 处直径 6 mm。
40
+ prompt_en: |
41
+ Create the driven lever: on front_plane draw a bar with rounded ends, 10 mm wide, with the end-arc centers at the origin and at (50,0), and extrude it 6 mm toward +Z.
42
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=50 diameter 6 mm.
43
  - id: gg_pin22
44
  extra_tools: []
45
  prompt: |
46
  创建底座销:直径 6 mm、长 22 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
47
+ prompt_en: |
48
+ Create the base pin: a cylinder 6 mm in diameter and 22 mm long, axis along Z, extruded from Z=0 toward +Z.
49
  - id: gg_pin12
50
  extra_tools: []
51
  prompt: |
52
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
53
+ prompt_en: |
54
+ Create the hinge pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
55
  - id: gg_finger_l
56
  extra_tools: []
57
  prompt: |
58
  创建左指:在 front_plane 上画矩形,X 从 -32 到 4 mm,Y 从 -70 到 12 mm,向 +Z 拉伸 6 mm。
59
  开贯穿孔:(0,0) 直径 6 mm,(-25.3,5.9) 直径 6 mm。不要抽壳。
60
+ prompt_en: |
61
+ Create the left finger: on front_plane draw a rectangle with X from -32 to 4 mm and Y from -70 to 12 mm, and extrude it 6 mm toward +Z.
62
+ Cut through holes: (0,0) diameter 6 mm, (-25.3,5.9) diameter 6 mm. Do not shell.
63
  - id: gg_finger_r
64
  extra_tools: []
65
  prompt: |
66
  创建右指:在 front_plane 上画矩形,X 从 -4 到 32 mm,Y 从 -70 到 12 mm,向 +Z 拉伸 6 mm。
67
  开贯穿孔:(0,0) 直径 6 mm,(25.3,5.9) 直径 6 mm。不要抽壳。
68
+ prompt_en: |
69
+ Create the right finger: on front_plane draw a rectangle with X from -4 to 32 mm and Y from -70 to 12 mm, and extrude it 6 mm toward +Z.
70
+ Cut through holes: (0,0) diameter 6 mm, (25.3,5.9) diameter 6 mm. Do not shell.
71
  gold_roles:
72
  base: gg_base
73
  shaft_l: gg_shaft
 
98
  - finger_l 的 (0,0) 孔套在 fpin_dl 上、(-25.3,5.9) 孔套在 fpin_il 上(z∈[22,28]);finger_r 的 (0,0) 孔套在 fpin_dr 上、
99
  (25.3,5.9) 孔套在 fpin_ir 上。两只摆杆都朝下(−Y 侧)偏外伸出,左右镜像对称,指尖朝下。
100
  - 开合这 1 个自由度保持自由(整机活动度 1),不要固定。各件互不穿模,装好后保存。
101
+ prompt_en: |
102
+ Assemble a gear-synchronized parallel gripper: the left and right driving levers are each fixed to a 15-tooth gear, and the two gears mesh directly and turn synchronously in opposite directions;
103
+ on each side "driving lever—driven lever—finger plate" form a parallelogram, so both fingers stay vertical and open and close symmetrically. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
104
+ - base is fixed, z∈[0,8]: gear shaft holes (-15,0) and (15,0), diameter 10; driven-lever pivot holes (-40.3,5.9) and (40.3,5.9), diameter 6.
105
+ - shaft_l and shaft_r pass through the two gear shaft holes respectively and rotate about Z (z∈[0,22]); gear_l and gear_r are fixed on the corresponding shafts (z∈[8,16]) and mesh externally (module 2, center distance 30);
106
+ the 10 mm holes of drive_l and drive_r (length 50) are fixed on the corresponding shafts (z∈[16,22]).
107
+ - ipin_l and ipin_r are fixed in the two driven-lever pivot holes (z∈[0,22]); the origin holes of idler_l and idler_r (length 50) fit on them respectively and rotate (z∈[16,22]).
108
+ - fpin_dl and fpin_dr are fixed in the 6 mm holes of the two driving levers, fpin_il and fpin_ir in the other holes of the two driven levers (all at z∈[16,28]).
109
+ - The (0,0) hole of finger_l fits on fpin_dl and its (-25.3,5.9) hole on fpin_il (z∈[22,28]); the (0,0) hole of finger_r fits on fpin_dr and
110
+ its (25.3,5.9) hole on fpin_ir. All levers point downward (−Y side) and slightly outward, mirror-symmetric left and right, with the fingertips pointing down.
111
+ - Keep the 1 opening/closing degree of freedom free (mobility 1 for the whole gripper); do not fix it. No parts may interfere. Save when assembled.
112
  motion:
113
  mode: poses
114
  frame: base
assembly/cases/gearbox.yaml CHANGED
@@ -15,32 +15,52 @@ parts:
15
  创建减速箱底板:在 front_plane(XY)上画矩形,X 从 -30 到 160 mm,Y 从 -40 到 40 mm,
16
  向 +Z 拉伸 10 mm。板上三个贯穿孔直径 10.4 mm,圆心分别在 (0,0)、(54,0)、(126,0) mm。
17
  零件原点在 (0,0),孔轴沿 Z。不要倒角。
 
 
 
 
18
  - id: shaft
19
  extra_tools: []
20
  prompt: |
21
  创建光轴:轴线沿 Z,在 front_plane 上画直径 10 mm 的圆,向 +Z 拉伸 50 mm。
22
  原点在轴线,一端在 Z=0。不要倒角、不要键槽。
 
 
 
23
  - id: pinion_z12
24
  extra_tools: [spur_gear]
25
  prompt: |
26
  创建渐开线直齿轮。轴线沿 Z,齿宽中面一侧从 Z=0 向 +Z。
27
  模数 3 mm,齿数 12,压力角 30°,齿宽 10 mm,中心轴孔直径 10 mm。
28
  优先用 spur_gear。不要键槽。
 
 
 
 
29
  - id: wheel_z24
30
  extra_tools: [spur_gear]
31
  prompt: |
32
  创建渐开线直齿轮。轴线沿 Z,从 Z=0 向 +Z 拉伸。
33
  模数 3 mm,齿数 24,压力角 30°,齿宽 10 mm,中心轴孔直径 10 mm。优先用 spur_gear。
 
 
 
34
  - id: pinion_z12b
35
  extra_tools: [spur_gear]
36
  prompt: |
37
  创建渐开线直齿轮。轴线沿 Z,从 Z=0 向 +Z 拉伸。
38
  模数 3 mm,齿数 12,压力角 30°,齿宽 10 mm,中心轴孔直径 10 mm。优先用 spur_gear。
 
 
 
39
  - id: wheel_z36
40
  extra_tools: [spur_gear]
41
  prompt: |
42
  创建渐开线直齿轮。轴线沿 Z,从 Z=0 向 +Z 拉伸。
43
  模数 3 mm,齿数 36,压力角 30°,齿宽 10 mm,中心轴孔直径 10 mm。优先用 spur_gear。
 
 
 
44
 
45
  gold_roles:
46
  housing: housing
@@ -62,6 +82,15 @@ assembly:
62
  - 36 齿大齿轮装在输出轴上,与中间轴 12 齿小齿轮外啮合。
63
  - 总减速比 6:1:输入轴转一圈,输出轴转 1/6 圈,两级外啮合所以输出与输入转向相同。
64
  完成后对输入轴做 check_motion(一整圈),确认齿轮联动、无穿模,再保存。
 
 
 
 
 
 
 
 
 
65
 
66
  motion:
67
  driver: input_shaft
 
15
  创建减速箱底板:在 front_plane(XY)上画矩形,X 从 -30 到 160 mm,Y 从 -40 到 40 mm,
16
  向 +Z 拉伸 10 mm。板上三个贯穿孔直径 10.4 mm,圆心分别在 (0,0)、(54,0)、(126,0) mm。
17
  零件原点在 (0,0),孔轴沿 Z。不要倒角。
18
+ prompt_en: |
19
+ Create the gearbox base plate: on front_plane (XY) draw a rectangle with X from -30 to 160 mm and Y from -40 to 40 mm,
20
+ and extrude it 10 mm toward +Z. The plate has three through holes of diameter 10.4 mm centered at (0,0), (54,0) and (126,0) mm.
21
+ The part origin is at (0,0), hole axes along Z. No chamfers.
22
  - id: shaft
23
  extra_tools: []
24
  prompt: |
25
  创建光轴:轴线沿 Z,在 front_plane 上画直径 10 mm 的圆,向 +Z 拉伸 50 mm。
26
  原点在轴线,一端在 Z=0。不要倒角、不要键槽。
27
+ prompt_en: |
28
+ Create a plain shaft: axis along Z; on front_plane draw a circle of diameter 10 mm and extrude it 50 mm toward +Z.
29
+ The origin is on the axis, with one end at Z=0. No chamfers, no keyway.
30
  - id: pinion_z12
31
  extra_tools: [spur_gear]
32
  prompt: |
33
  创建渐开线直齿轮。轴线沿 Z,齿宽中面一侧从 Z=0 向 +Z。
34
  模数 3 mm,齿数 12,压力角 30°,齿宽 10 mm,中心轴孔直径 10 mm。
35
  优先用 spur_gear。不要键槽。
36
+ prompt_en: |
37
+ Create an involute spur gear. Axis along Z, extruded from Z=0 toward +Z on one side of the mid-face plane.
38
+ Module 3 mm, 12 teeth, pressure angle 30°, face width 10 mm, central bore diameter 10 mm.
39
+ Prefer spur_gear. No keyway.
40
  - id: wheel_z24
41
  extra_tools: [spur_gear]
42
  prompt: |
43
  创建渐开线直齿轮。轴线沿 Z,从 Z=0 向 +Z 拉伸。
44
  模数 3 mm,齿数 24,压力角 30°,齿宽 10 mm,中心轴孔直径 10 mm。优先用 spur_gear。
45
+ prompt_en: |
46
+ Create an involute spur gear. Axis along Z, extruded from Z=0 toward +Z.
47
+ Module 3 mm, 24 teeth, pressure angle 30°, face width 10 mm, central bore diameter 10 mm. Prefer spur_gear.
48
  - id: pinion_z12b
49
  extra_tools: [spur_gear]
50
  prompt: |
51
  创建渐开线直齿轮。轴线沿 Z,从 Z=0 向 +Z 拉伸。
52
  模数 3 mm,齿数 12,压力角 30°,齿宽 10 mm,中心轴孔直径 10 mm。优先用 spur_gear。
53
+ prompt_en: |
54
+ Create an involute spur gear. Axis along Z, extruded from Z=0 toward +Z.
55
+ Module 3 mm, 12 teeth, pressure angle 30°, face width 10 mm, central bore diameter 10 mm. Prefer spur_gear.
56
  - id: wheel_z36
57
  extra_tools: [spur_gear]
58
  prompt: |
59
  创建渐开线直齿轮。轴线沿 Z,从 Z=0 向 +Z 拉伸。
60
  模数 3 mm,齿数 36,压力角 30°,齿宽 10 mm,中心轴孔直径 10 mm。优先用 spur_gear。
61
+ prompt_en: |
62
+ Create an involute spur gear. Axis along Z, extruded from Z=0 toward +Z.
63
+ Module 3 mm, 36 teeth, pressure angle 30°, face width 10 mm, central bore diameter 10 mm. Prefer spur_gear.
64
 
65
  gold_roles:
66
  housing: housing
 
82
  - 36 齿大齿轮装在输出轴上,与中间轴 12 齿小齿轮外啮合。
83
  - 总减速比 6:1:输入轴转一圈,输出轴转 1/6 圈,两级外啮合所以输出与输入转向相同。
84
  完成后对输入轴做 check_motion(一整圈),确认齿轮联动、无穿模,再保存。
85
+ prompt_en: |
86
+ Assemble the following parts into a two-stage external spur-gear reducer. Do not treat the given coordinates as the final poses; locate the parts with mates.
87
+ - housing is the base plate; its three holes, from left to right, are the bearing holes of the input shaft, the intermediate shaft and the output shaft, spaced 54 mm and 72 mm.
88
+ - The three shafts go into the three holes respectively and can rotate relative to the base plate.
89
+ - The 12-tooth input gear sits on the input shaft and turns with it, about 15 mm away from the base plate along the axis.
90
+ - The 24-tooth wheel and the 12-tooth pinion both sit on the intermediate shaft and turn with it; the 24-tooth wheel meshes externally with the input 12-tooth gear in the same layer, and the 12-tooth pinion is offset one layer further out.
91
+ - The 36-tooth wheel sits on the output shaft and meshes externally with the 12-tooth pinion on the intermediate shaft.
92
+ - Overall reduction 6:1: for one revolution of the input shaft the output shaft turns 1/6 of a revolution; with two external meshes the output turns in the same direction as the input.
93
+ When done, run check_motion on the input shaft (one full turn), confirm that the gears drive each other without interference, then save.
94
 
95
  motion:
96
  driver: input_shaft
assembly/cases/geared_five_bar.yaml CHANGED
@@ -8,45 +8,68 @@ parts:
8
  prompt: |
9
  创建机架板:在 front_plane 上画矩形,X 从 -50 到 110 mm,Y 从 -50 到 130 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(60,0) 直径 10 mm。不要抽壳。
 
 
 
11
  - id: fb_shaft1
12
  extra_tools: []
13
  prompt: |
14
  创建主动轴:直径 10 mm、长 28 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: fb_shaft2
16
  extra_tools: []
17
  prompt: |
18
  创建从动轴:直径 10 mm、长 22 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
19
  - id: fb_flywheel
20
  extra_tools: []
21
  prompt: |
22
  创建飞轮:外径 50 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(15,0) 直径 6 mm,(-15,0) 直径 6 mm。
 
 
23
  - id: fb_gear
24
  extra_tools:
25
  - spur_gear
26
  prompt: |
27
  创建渐开线直齿轮,模数 2 mm,齿数 30,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
28
  - id: fb_crank
29
  extra_tools: []
30
  prompt: |
31
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (20,0),向 +Z 拉伸 6 mm。
32
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=20 处直径 6 mm。
 
 
 
33
  - id: fb_bar
34
  extra_tools: []
35
  prompt: |
36
  创建连杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (70,0),向 +Z 拉伸 6 mm。
37
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=70 处直径 6 mm。
 
 
 
38
  - id: fb_pin12
39
  extra_tools: []
40
  prompt: |
41
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
42
  - id: fb_pin18
43
  extra_tools: []
44
  prompt: |
45
  创建长铰销:直径 6 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
46
  - id: fb_pen
47
  extra_tools: []
48
  prompt: |
49
  创建笔:直径 6 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
50
  gold_roles:
51
  frame: fb_frame
52
  shaft1: fb_shaft1
@@ -73,6 +96,17 @@ assembly:
73
  - pen 固定在 bar2 的另一孔里(z∈[14,32]),bar1 的另一孔也套在 pen 上。笔在两曲柄上方。
74
  - 曲柄 20、连杆 70。shaft1 一整圈:笔尖 X 向行程约 70.3 mm、Y 向约 33.1 mm。各齿轮互不穿模,啮合齿相位要对上。
75
  对 shaft1 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
 
 
76
  motion:
77
  driver: shaft1
78
  sweep_deg: 360
 
8
  prompt: |
9
  创建机架板:在 front_plane 上画矩形,X 从 -50 到 110 mm,Y 从 -50 到 130 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(60,0) 直径 10 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the frame plate: on front_plane draw a rectangle with X from -50 to 110 mm and Y from -50 to 130 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm, (60,0) diameter 10 mm. Do not shell.
14
  - id: fb_shaft1
15
  extra_tools: []
16
  prompt: |
17
  创建主动轴:直径 10 mm、长 28 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the drive shaft: a cylinder 10 mm in diameter and 28 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: fb_shaft2
21
  extra_tools: []
22
  prompt: |
23
  创建从动轴:直径 10 mm、长 22 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
24
+ prompt_en: |
25
+ Create the driven shaft: a cylinder 10 mm in diameter and 22 mm long, axis along Z, extruded from Z=0 toward +Z.
26
  - id: fb_flywheel
27
  extra_tools: []
28
  prompt: |
29
  创建飞轮:外径 50 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(15,0) 直径 6 mm,(-15,0) 直径 6 mm。
30
+ prompt_en: |
31
+ Create the flywheel: a disk with outer diameter 50 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 10 mm. Also cut through holes: (15,0) diameter 6 mm, (-15,0) diameter 6 mm.
32
  - id: fb_gear
33
  extra_tools:
34
  - spur_gear
35
  prompt: |
36
  创建渐开线直齿轮,模数 2 mm,齿数 30,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
37
+ prompt_en: |
38
+ Create an involute spur gear: module 2 mm, 30 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
39
  - id: fb_crank
40
  extra_tools: []
41
  prompt: |
42
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (20,0),向 +Z 拉伸 6 mm。
43
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=20 处直径 6 mm。
44
+ prompt_en: |
45
+ Create the crank: on front_plane draw a bar with rounded ends, 16 mm wide, with the end-arc centers at the origin and at (20,0), and extrude it 6 mm toward +Z.
46
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=20 diameter 6 mm.
47
  - id: fb_bar
48
  extra_tools: []
49
  prompt: |
50
  创建连杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (70,0),向 +Z 拉伸 6 mm。
51
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=70 处直径 6 mm。
52
+ prompt_en: |
53
+ Create the link: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (70,0), and extrude it 6 mm toward +Z.
54
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=70 diameter 6 mm.
55
  - id: fb_pin12
56
  extra_tools: []
57
  prompt: |
58
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
59
+ prompt_en: |
60
+ Create the hinge pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
61
  - id: fb_pin18
62
  extra_tools: []
63
  prompt: |
64
  创建长铰销:直径 6 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
65
+ prompt_en: |
66
+ Create the long hinge pin: a cylinder 6 mm in diameter and 18 mm long, axis along Z, extruded from Z=0 toward +Z.
67
  - id: fb_pen
68
  extra_tools: []
69
  prompt: |
70
  创建笔:直径 6 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
71
+ prompt_en: |
72
+ Create the pen: a cylinder 6 mm in diameter and 18 mm long, axis along Z, extruded from Z=0 toward +Z.
73
  gold_roles:
74
  frame: fb_frame
75
  shaft1: fb_shaft1
 
96
  - pen 固定在 bar2 的另一孔里(z∈[14,32]),bar1 的另一孔也套在 pen 上。笔在两曲柄上方。
97
  - 曲柄 20、连杆 70。shaft1 一整圈:笔尖 X 向行程约 70.3 mm、Y 向约 33.1 mm。各齿轮互不穿模,啮合齿相位要对上。
98
  对 shaft1 做 check_motion(一整圈),确认无穿模后再保存。
99
+ prompt_en: |
100
+ Assemble a geared five-bar drawing machine: two cranks are synchronized in opposite directions by a pair of gears with equal tooth counts, two links are hinged together at the pen, and the pen tip draws a closed petal curve. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
101
+ - frame is fixed, z∈[0,8]. Two shaft holes at (0,0) and (60,0), diameter 10.
102
+ - shaft1 passes through the (0,0) hole and rotates about Z (z∈[-14,14]); the center hole of flywheel (z∈[-14,-8]), the 30-tooth gear1 (z∈[-8,0]) and the 10 mm hole of crank1 (z∈[8,14]) are fixed on it.
103
+ - shaft2 passes through the (60,0) hole and rotates about Z (z∈[-8,14]); the 30-tooth gear2 (z∈[-8,0]) and the 10 mm hole of crank2 (z∈[8,14]) are fixed on it.
104
+ gear1 meshes externally with gear2 (module 2, center distance 60); the two cranks turn at equal speed in opposite directions. When crank1 points to +Y, crank2 points to +X (90° out of phase).
105
+ - pin_b1 is fixed in the 6 mm hole of crank1 (z∈[8,20]); pin_b2 is fixed in the 6 mm hole of crank2 (z∈[8,26]).
106
+ - The origin hole of bar1 fits on pin_b1 and rotates (z∈[14,20]); the origin hole of bar2 fits on pin_b2 and rotates (z∈[20,26]).
107
+ - pen is fixed in the other hole of bar2 (z∈[14,32]), and the other hole of bar1 also fits on pen. The pen is above the two cranks.
108
+ - Crank 20, link 70. Over one full turn of shaft1: pen-tip travel about 70.3 mm in X and about 33.1 mm in Y. Gears must not interfere, and meshing teeth must be phased correctly.
109
+ Run check_motion on shaft1 (one full turn), confirm there is no interference, then save.
110
  motion:
111
  driver: shaft1
112
  sweep_deg: 360
assembly/cases/geared_slider_crank.yaml CHANGED
@@ -8,43 +8,65 @@ parts:
8
  prompt: |
9
  创建机架板:在 front_plane 上画矩形,X 从 -70 到 110 mm,Y 从 -45 到 45 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(-48,0) 直径 10 mm,(0,0) 直径 10 mm。不要抽壳。
 
 
 
11
  - id: gs_motor_shaft
12
  extra_tools: []
13
  prompt: |
14
  创建电机轴:直径 10 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: gs_crank_shaft
16
  extra_tools: []
17
  prompt: |
18
  创建曲柄轴:直径 10 mm、长 32 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
19
  - id: gs_pinion
20
  extra_tools:
21
  - spur_gear
22
  prompt: |
23
  创建渐开线直齿轮,模数 2 mm,齿数 12,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
24
  - id: gs_gear
25
  extra_tools:
26
  - spur_gear
27
  prompt: |
28
  创建渐开线直齿轮,模数 2 mm,齿数 36,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
29
  - id: gs_crank
30
  extra_tools: []
31
  prompt: |
32
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (20,0),向 +Z 拉伸 6 mm。
33
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=20 处直径 6 mm。
 
 
 
34
  - id: gs_pin12
35
  extra_tools: []
36
  prompt: |
37
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
38
  - id: gs_rod
39
  extra_tools: []
40
  prompt: |
41
  创建连杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (70,0),向 +Z 拉伸 6 mm。
42
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=70 处直径 6 mm。
 
 
 
43
  - id: gs_slider
44
  extra_tools: []
45
  prompt: |
46
  创建滑块:在 front_plane 上画矩形,X 从 -12 到 12 mm,Y 从 -10 到 10 mm,向 +Z 拉伸 6 mm。
47
  开贯穿孔:(0,0) 直径 6 mm。不要抽壳。
 
 
 
48
  gold_roles:
49
  frame: gs_frame
50
  motor_shaft: gs_motor_shaft
@@ -67,6 +89,16 @@ assembly:
67
  wrist_pin 固定在 rod 另一端孔(z∈[22,34]);slider 的孔套在 wrist_pin 上转动(z∈[28,34])。
68
  - slider 只能沿 frame 的 X 方向移动,孔心始终在 y=0 的直线上、曲柄轴 +X 侧。曲柄 20、连杆 70,行程 40 mm。各齿轮互不穿模,啮合齿相位要对上。
69
  对 motor_shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
 
70
  motion:
71
  driver: motor_shaft
72
  sweep_deg: 360
 
8
  prompt: |
9
  创建机架板:在 front_plane 上画矩形,X 从 -70 到 110 mm,Y 从 -45 到 45 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(-48,0) 直径 10 mm,(0,0) 直径 10 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the frame plate: on front_plane draw a rectangle with X from -70 to 110 mm and Y from -45 to 45 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (-48,0) diameter 10 mm, (0,0) diameter 10 mm. Do not shell.
14
  - id: gs_motor_shaft
15
  extra_tools: []
16
  prompt: |
17
  创建电机轴:直径 10 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the motor shaft: a cylinder 10 mm in diameter and 26 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: gs_crank_shaft
21
  extra_tools: []
22
  prompt: |
23
  创建曲柄轴:直径 10 mm、长 32 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
24
+ prompt_en: |
25
+ Create the crank shaft: a cylinder 10 mm in diameter and 32 mm long, axis along Z, extruded from Z=0 toward +Z.
26
  - id: gs_pinion
27
  extra_tools:
28
  - spur_gear
29
  prompt: |
30
  创建渐开线直齿轮,模数 2 mm,齿数 12,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
31
+ prompt_en: |
32
+ Create an involute spur gear: module 2 mm, 12 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
33
  - id: gs_gear
34
  extra_tools:
35
  - spur_gear
36
  prompt: |
37
  创建渐开线直齿轮,模数 2 mm,齿数 36,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
38
+ prompt_en: |
39
+ Create an involute spur gear: module 2 mm, 36 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
40
  - id: gs_crank
41
  extra_tools: []
42
  prompt: |
43
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (20,0),向 +Z 拉伸 6 mm。
44
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=20 处直径 6 mm。
45
+ prompt_en: |
46
+ Create the crank: on front_plane draw a bar with rounded ends, 16 mm wide, with the end-arc centers at the origin and at (20,0), and extrude it 6 mm toward +Z.
47
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=20 diameter 6 mm.
48
  - id: gs_pin12
49
  extra_tools: []
50
  prompt: |
51
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
52
+ prompt_en: |
53
+ Create the hinge pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
54
  - id: gs_rod
55
  extra_tools: []
56
  prompt: |
57
  创建连杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (70,0),向 +Z 拉伸 6 mm。
58
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=70 处直径 6 mm。
59
+ prompt_en: |
60
+ Create the link: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (70,0), and extrude it 6 mm toward +Z.
61
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=70 diameter 6 mm.
62
  - id: gs_slider
63
  extra_tools: []
64
  prompt: |
65
  创建滑块:在 front_plane 上画矩形,X 从 -12 到 12 mm,Y 从 -10 到 10 mm,向 +Z 拉伸 6 mm。
66
  开贯穿孔:(0,0) 直径 6 mm。不要抽壳。
67
+ prompt_en: |
68
+ Create the slider: on front_plane draw a rectangle with X from -12 to 12 mm and Y from -10 to 10 mm, and extrude it 6 mm toward +Z.
69
+ Cut through holes: (0,0) diameter 6 mm. Do not shell.
70
  gold_roles:
71
  frame: gs_frame
72
  motor_shaft: gs_motor_shaft
 
89
  wrist_pin 固定在 rod 另一端孔(z∈[22,34]);slider 的孔套在 wrist_pin 上转动(z∈[28,34])。
90
  - slider 只能沿 frame 的 X 方向移动,孔心始终在 y=0 的直线上、曲柄轴 +X 侧。曲柄 20、连杆 70,行程 40 mm。各齿轮互不穿模,啮合齿相位要对上。
91
  对 motor_shaft 做 check_motion(一整圈),确认无穿模后再保存。
92
+ prompt_en: |
93
+ Assemble a slider-crank mechanism driven through a gear reduction. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
94
+ - frame is fixed, z∈[0,8], bearing holes at (-48,0) and (0,0).
95
+ - motor_shaft passes through the (-48,0) hole and rotates about Z (z∈[-10,16]); the 12-tooth pinion is fixed on it (z∈[8,16]).
96
+ - crank_shaft passes through the (0,0) hole and rotates about Z (z∈[-10,22]); the 36-tooth gear (z∈[8,16]) and the 10 mm hole of crank (z∈[16,22]) are both fixed on it.
97
+ pinion meshes externally with gear (module 2, center distance 48).
98
+ - crank_pin is fixed in the 6 mm hole of crank (z∈[16,28]); one end of rod rotates about crank_pin (z∈[22,28]);
99
+ wrist_pin is fixed in the hole at the other end of rod (z∈[22,34]); the hole of slider fits on wrist_pin and rotates (z∈[28,34]).
100
+ - slider can only move along the X direction of frame; its hole center always stays on the line y=0, on the +X side of the crank shaft. Crank 20, connecting rod 70, stroke 40 mm. Gears must not interfere, and meshing teeth must be phased correctly.
101
+ Run check_motion on motor_shaft (one full turn), confirm there is no interference, then save.
102
  motion:
103
  driver: motor_shaft
104
  sweep_deg: 360
assembly/cases/hand_winch.yaml CHANGED
@@ -8,37 +8,55 @@ parts:
8
  prompt: |
9
  创建支架板:在 front_plane 上画矩形,X 从 -30 到 80 mm,Y 从 -40 到 40 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(48,0) 直径 10 mm。不要抽壳。
 
 
 
11
  - id: hw_handle_shaft
12
  extra_tools: []
13
  prompt: |
14
  创建摇把轴:直径 10 mm、长 30 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: hw_drum_shaft
16
  extra_tools: []
17
  prompt: |
18
  创建卷筒轴:直径 10 mm、长 56 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
19
  - id: hw_pinion
20
  extra_tools:
21
  - spur_gear
22
  prompt: |
23
  创建渐开线直齿轮,模数 2 mm,齿数 12,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
24
  - id: hw_gear
25
  extra_tools:
26
  - spur_gear
27
  prompt: |
28
  创建渐开线直齿轮,模数 2 mm,齿数 36,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
29
  - id: hw_handle
30
  extra_tools: []
31
  prompt: |
32
  创建摇把:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (40,0),向 +Z 拉伸 6 mm。
33
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=40 处直径 6 mm。
 
 
 
34
  - id: hw_knob
35
  extra_tools: []
36
  prompt: |
37
  创建手柄:直径 6 mm、长 30 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
38
  - id: hw_drum
39
  extra_tools: []
40
  prompt: |
41
  创建卷筒:外径 40 mm、厚 40 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。
 
 
42
  gold_roles:
43
  frame: hw_frame
44
  handle_shaft: hw_handle_shaft
@@ -57,6 +75,14 @@ assembly:
57
  - drum_shaft 穿过 (48,0) 孔绕 Z 转动(z∈[0,56]);36 齿 gear(z∈[8,16])与 drum(z∈[16,56])都固定在 drum_shaft 上。
58
  - pinion 与 gear 外啮合(模数 2,中心距 48),卷筒转速为摇把的 1/3、反向。各齿轮互不穿模,啮合齿相位要对上。
59
  对 handle_shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
60
  motion:
61
  driver: handle_shaft
62
  sweep_deg: 360
 
8
  prompt: |
9
  创建支架板:在 front_plane 上画矩形,X 从 -30 到 80 mm,Y 从 -40 到 40 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(48,0) 直径 10 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the bracket plate: on front_plane draw a rectangle with X from -30 to 80 mm and Y from -40 to 40 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm, (48,0) diameter 10 mm. Do not shell.
14
  - id: hw_handle_shaft
15
  extra_tools: []
16
  prompt: |
17
  创建摇把轴:直径 10 mm、长 30 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the crank handle shaft: a cylinder 10 mm in diameter and 30 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: hw_drum_shaft
21
  extra_tools: []
22
  prompt: |
23
  创建卷筒轴:直径 10 mm、长 56 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
24
+ prompt_en: |
25
+ Create the drum shaft: a cylinder 10 mm in diameter and 56 mm long, axis along Z, extruded from Z=0 toward +Z.
26
  - id: hw_pinion
27
  extra_tools:
28
  - spur_gear
29
  prompt: |
30
  创建渐开线直齿轮,模数 2 mm,齿数 12,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
31
+ prompt_en: |
32
+ Create an involute spur gear: module 2 mm, 12 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
33
  - id: hw_gear
34
  extra_tools:
35
  - spur_gear
36
  prompt: |
37
  创建渐开线直齿轮,模数 2 mm,齿数 36,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
38
+ prompt_en: |
39
+ Create an involute spur gear: module 2 mm, 36 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
40
  - id: hw_handle
41
  extra_tools: []
42
  prompt: |
43
  创建摇把:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (40,0),向 +Z 拉伸 6 mm。
44
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=40 处直径 6 mm。
45
+ prompt_en: |
46
+ Create the crank handle: on front_plane draw a bar with rounded ends, 14 mm wide, with the end-arc centers at the origin and at (40,0), and extrude it 6 mm toward +Z.
47
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=40 diameter 6 mm.
48
  - id: hw_knob
49
  extra_tools: []
50
  prompt: |
51
  创建手柄:直径 6 mm、长 30 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
52
+ prompt_en: |
53
+ Create the handle: a cylinder 6 mm in diameter and 30 mm long, axis along Z, extruded from Z=0 toward +Z.
54
  - id: hw_drum
55
  extra_tools: []
56
  prompt: |
57
  创建卷筒:外径 40 mm、厚 40 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。
58
+ prompt_en: |
59
+ Create the drum: a disk with outer diameter 40 mm and thickness 40 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 10 mm.
60
  gold_roles:
61
  frame: hw_frame
62
  handle_shaft: hw_handle_shaft
 
75
  - drum_shaft 穿过 (48,0) 孔绕 Z 转动(z∈[0,56]);36 齿 gear(z∈[8,16])与 drum(z∈[16,56])都固定在 drum_shaft 上。
76
  - pinion 与 gear 外啮合(模数 2,中心距 48),卷筒转速为摇把的 1/3、反向。各齿轮互不穿模,啮合齿相位要对上。
77
  对 handle_shaft 做 check_motion(一整圈),确认无穿模后再保存。
78
+ prompt_en: |
79
+ Assemble a hand winch (the crank handle drives the drum through a 12/36 gear reduction). Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
80
+ - frame is fixed, z∈[0,8], bearing holes at (0,0) and (48,0).
81
+ - handle_shaft passes through the (0,0) hole and rotates about Z (z∈[-14,16]); the 12-tooth pinion (z∈[8,16]) is fixed on it;
82
+ behind the plate, the 10 mm hole of handle is fixed on handle_shaft (z∈[-14,-8]), and knob is fixed in the 6 mm hole of handle, extending toward −Z (z∈[-44,-14]).
83
+ - drum_shaft passes through the (48,0) hole and rotates about Z (z∈[0,56]); the 36-tooth gear (z∈[8,16]) and drum (z∈[16,56]) are both fixed on drum_shaft.
84
+ - pinion meshes externally with gear (module 2, center distance 48); the drum turns at 1/3 of the handle speed, in the opposite direction. Gears must not interfere, and meshing teeth must be phased correctly.
85
+ Run check_motion on handle_shaft (one full turn), confirm there is no interference, then save.
86
  motion:
87
  driver: handle_shaft
88
  sweep_deg: 360
assembly/cases/jansen_leg.yaml CHANGED
@@ -8,85 +8,131 @@ parts:
8
  prompt: |
9
  创建机架板:在 front_plane 上画矩形,X 从 -240 到 80 mm,Y 从 -210 到 100 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(48,0) 直径 10 mm,(-76,-15.6) 直径 6 mm。不要抽壳。
 
 
 
11
  - id: jl_shaft
12
  extra_tools: []
13
  prompt: |
14
  创建轴:直径 10 mm、长 22 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: jl_gear
16
  extra_tools:
17
  - spur_gear
18
  prompt: |
19
  创建渐开线直齿轮,模数 2 mm,齿数 36,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
20
  - id: jl_pinion
21
  extra_tools:
22
  - spur_gear
23
  prompt: |
24
  创建渐开线直齿轮,模数 2 mm,齿数 12,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
25
  - id: jl_handwheel
26
  extra_tools: []
27
  prompt: |
28
  创建手轮:外径 40 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(12,0) 直径 6 mm。
 
 
29
  - id: jl_crank
30
  extra_tools: []
31
  prompt: |
32
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 20 mm,两端半圆的圆心分别在原点和 (30,0),向 +Z 拉伸 6 mm。
33
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=30 处直径 6 mm。
 
 
 
34
  - id: jl_j
35
  extra_tools: []
36
  prompt: |
37
  创建上连杆 j:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (100,0),向 +Z 拉伸 6 mm。
38
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=100 处直径 6 mm。
 
 
 
39
  - id: jl_k
40
  extra_tools: []
41
  prompt: |
42
  创建下连杆 k:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (123.8,0),向 +Z 拉伸 6 mm。
43
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=123.8 处直径 6 mm。
 
 
 
44
  - id: jl_b
45
  extra_tools: []
46
  prompt: |
47
  创建上三角边 b:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (83,0),向 +Z 拉伸 6 mm。
48
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=83 处直径 6 mm。
 
 
 
49
  - id: jl_d
50
  extra_tools: []
51
  prompt: |
52
  创建上三角边 d:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (80.2,0),向 +Z 拉伸 6 mm。
53
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=80.2 处直径 6 mm。
 
 
 
54
  - id: jl_c
55
  extra_tools: []
56
  prompt: |
57
  创建下摇杆 c:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (78.6,0),向 +Z 拉伸 6 mm。
58
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=78.6 处直径 6 mm。
 
 
 
59
  - id: jl_f
60
  extra_tools: []
61
  prompt: |
62
  创建连杆 f:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (78.8,0),向 +Z 拉伸 6 mm。
63
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=78.8 处直径 6 mm。
 
 
 
64
  - id: jl_g
65
  extra_tools: []
66
  prompt: |
67
  创建腿三角边 g:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (73.4,0),向 +Z 拉伸 6 mm。
68
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=73.4 处直径 6 mm。
 
 
 
69
  - id: jl_i
70
  extra_tools: []
71
  prompt: |
72
  创建腿 i:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (98,0),向 +Z 拉伸 6 mm。
73
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=98 处直径 6 mm。
 
 
 
74
  - id: jl_pin12
75
  extra_tools: []
76
  prompt: |
77
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
78
  - id: jl_pin18
79
  extra_tools: []
80
  prompt: |
81
  创建曲柄销:直径 6 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
82
  - id: jl_pin24
83
  extra_tools: []
84
  prompt: |
85
  创建长铰销:直径 6 mm、长 24 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
86
  - id: jl_pin32
87
  extra_tools: []
88
  prompt: |
89
  创建机架销:直径 6 mm、长 32 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
90
  gold_roles:
91
  frame: jl_frame
92
  shaft: jl_shaft
@@ -128,6 +174,23 @@ assembly:
128
  - 装配分支:B 在 A 上方,C 在 A 下方,D 在 A 左侧,E 在 C 左侧,F(脚尖)在最下方。
129
  曲柄一整圈:脚尖 X 向行程约 135.8 mm、Y 向约 44.9 mm,上三角摆角约 56.5°。各齿轮互不穿模,啮合齿相位要对上。
130
  对 shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
131
  motion:
132
  driver: shaft
133
  sweep_deg: 360
 
8
  prompt: |
9
  创建机架板:在 front_plane 上画矩形,X 从 -240 到 80 mm,Y 从 -210 到 100 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(48,0) 直径 10 mm,(-76,-15.6) 直径 6 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the frame plate: on front_plane draw a rectangle with X from -240 to 80 mm and Y from -210 to 100 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm, (48,0) diameter 10 mm, (-76,-15.6) diameter 6 mm. Do not shell.
14
  - id: jl_shaft
15
  extra_tools: []
16
  prompt: |
17
  创建轴:直径 10 mm、长 22 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the shaft: a cylinder 10 mm in diameter and 22 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: jl_gear
21
  extra_tools:
22
  - spur_gear
23
  prompt: |
24
  创建渐开线直齿轮,模数 2 mm,齿数 36,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
25
+ prompt_en: |
26
+ Create an involute spur gear: module 2 mm, 36 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
27
  - id: jl_pinion
28
  extra_tools:
29
  - spur_gear
30
  prompt: |
31
  创建渐开线直齿轮,模数 2 mm,齿数 12,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
32
+ prompt_en: |
33
+ Create an involute spur gear: module 2 mm, 12 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
34
  - id: jl_handwheel
35
  extra_tools: []
36
  prompt: |
37
  创建手轮:外径 40 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(12,0) 直径 6 mm。
38
+ prompt_en: |
39
+ Create the handwheel: a disk with outer diameter 40 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 10 mm. Also cut through holes: (12,0) diameter 6 mm.
40
  - id: jl_crank
41
  extra_tools: []
42
  prompt: |
43
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 20 mm,两端半圆的圆心分别在原点和 (30,0),向 +Z 拉伸 6 mm。
44
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=30 处直径 6 mm。
45
+ prompt_en: |
46
+ Create the crank: on front_plane draw a bar with rounded ends, 20 mm wide, with the end-arc centers at the origin and at (30,0), and extrude it 6 mm toward +Z.
47
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=30 diameter 6 mm.
48
  - id: jl_j
49
  extra_tools: []
50
  prompt: |
51
  创建上连杆 j:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (100,0),向 +Z 拉伸 6 mm。
52
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=100 处直径 6 mm。
53
+ prompt_en: |
54
+ Create the upper link j: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (100,0), and extrude it 6 mm toward +Z.
55
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=100 diameter 6 mm.
56
  - id: jl_k
57
  extra_tools: []
58
  prompt: |
59
  创建下连杆 k:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (123.8,0),向 +Z 拉伸 6 mm。
60
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=123.8 处直径 6 mm。
61
+ prompt_en: |
62
+ Create the lower link k: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (123.8,0), and extrude it 6 mm toward +Z.
63
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=123.8 diameter 6 mm.
64
  - id: jl_b
65
  extra_tools: []
66
  prompt: |
67
  创建上三角边 b:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (83,0),向 +Z 拉伸 6 mm。
68
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=83 处直径 6 mm。
69
+ prompt_en: |
70
+ Create the upper triangle side b: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (83,0), and extrude it 6 mm toward +Z.
71
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=83 diameter 6 mm.
72
  - id: jl_d
73
  extra_tools: []
74
  prompt: |
75
  创建上三角边 d:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (80.2,0),向 +Z 拉伸 6 mm。
76
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=80.2 处直径 6 mm。
77
+ prompt_en: |
78
+ Create the upper triangle side d: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (80.2,0), and extrude it 6 mm toward +Z.
79
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=80.2 diameter 6 mm.
80
  - id: jl_c
81
  extra_tools: []
82
  prompt: |
83
  创建下摇杆 c:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (78.6,0),向 +Z 拉伸 6 mm。
84
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=78.6 处直径 6 mm。
85
+ prompt_en: |
86
+ Create the lower rocker c: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (78.6,0), and extrude it 6 mm toward +Z.
87
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=78.6 diameter 6 mm.
88
  - id: jl_f
89
  extra_tools: []
90
  prompt: |
91
  创建连杆 f:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (78.8,0),向 +Z 拉伸 6 mm。
92
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=78.8 处直径 6 mm。
93
+ prompt_en: |
94
+ Create the link f: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (78.8,0), and extrude it 6 mm toward +Z.
95
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=78.8 diameter 6 mm.
96
  - id: jl_g
97
  extra_tools: []
98
  prompt: |
99
  创建腿三角边 g:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (73.4,0),向 +Z 拉伸 6 mm。
100
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=73.4 处直径 6 mm。
101
+ prompt_en: |
102
+ Create the leg triangle side g: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (73.4,0), and extrude it 6 mm toward +Z.
103
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=73.4 diameter 6 mm.
104
  - id: jl_i
105
  extra_tools: []
106
  prompt: |
107
  创建腿 i:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (98,0),向 +Z 拉伸 6 mm。
108
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=98 处直径 6 mm。
109
+ prompt_en: |
110
+ Create the leg link i: on front_plane draw a bar with rounded ends, 14 mm wide, with the end-arc centers at the origin and at (98,0), and extrude it 6 mm toward +Z.
111
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=98 diameter 6 mm.
112
  - id: jl_pin12
113
  extra_tools: []
114
  prompt: |
115
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
116
+ prompt_en: |
117
+ Create the hinge pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
118
  - id: jl_pin18
119
  extra_tools: []
120
  prompt: |
121
  创建曲柄销:直径 6 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
122
+ prompt_en: |
123
+ Create the crank pin: a cylinder 6 mm in diameter and 18 mm long, axis along Z, extruded from Z=0 toward +Z.
124
  - id: jl_pin24
125
  extra_tools: []
126
  prompt: |
127
  创建长铰销:直径 6 mm、长 24 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
128
+ prompt_en: |
129
+ Create the long hinge pin: a cylinder 6 mm in diameter and 24 mm long, axis along Z, extruded from Z=0 toward +Z.
130
  - id: jl_pin32
131
  extra_tools: []
132
  prompt: |
133
  创建机架销:直径 6 mm、长 32 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
134
+ prompt_en: |
135
+ Create the frame pin: a cylinder 6 mm in diameter and 32 mm long, axis along Z, extruded from Z=0 toward +Z.
136
  gold_roles:
137
  frame: jl_frame
138
  shaft: jl_shaft
 
174
  - 装配分支:B 在 A 上方,C 在 A 下方,D 在 A 左侧,E 在 C 左侧,F(脚尖)在最下方。
175
  曲柄一整圈:脚尖 X 向行程约 135.8 mm、Y 向约 44.9 mm,上三角摆角约 56.5°。各齿轮互不穿模,啮合齿相位要对上。
176
  对 shaft 做 check_motion(一整圈),确认无穿模后再保存。
177
+ prompt_en: |
178
+ Assemble a Theo Jansen walking leg (Strandbeest leg, the classic "holy numbers" scaled by 2): for one crank revolution the foot traces a flat D-shaped gait. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
179
+ - frame is fixed, z∈[0,8]. Crank shaft hole (0,0) and motor shaft hole (48,0), diameter 10; frame hinge hole A=(-76.0,-15.6), diameter 6.
180
+ - shaft passes through the (0,0) hole and rotates about Z (z∈[-8,14]); the 36-tooth crank_gear is fixed on it (z∈[-8,0]); the 10 mm hole of crank is fixed on it (z∈[8,14]).
181
+ crank_pin is fixed in the 6 mm hole of crank (z∈[8,26]).
182
+ - motor_shaft passes through the motor shaft hole and rotates about Z (z∈[-14,8]); the 12-tooth pinion (z∈[-8,0]) and the center hole of handwheel (z∈[-14,-8]) are fixed on it, and pinion meshes externally with crank_gear.
183
+ - Every bar is a two-hole strip (hole diameter 6, origin hole at one end), with lengths j=100.0, k=123.8, b=83.0, d=80.2, c=78.6, f=78.8, g=73.4, i=98.0.
184
+ - a_pin is fixed in hole A (z∈[0,32]). The origin holes of bar_b (z∈[8,14]) and bar_d (z∈[14,20]) both fit on a_pin, and the two bars are fixed together as the upper triangle (the angle between b and d is kept,
185
+ with end point B of b and end point D of d 111.6 apart); the origin hole of bar_c also fits on a_pin and rotates (z∈[26,32]).
186
+ - b_pin is fixed in the other hole B of bar_b (z∈[8,20]); the origin hole of bar_j fits on crank_pin (z∈[14,20]) and its other hole on b_pin.
187
+ - c_pin is fixed in the other hole C of bar_c (z∈[8,32]); the origin hole of bar_k fits on crank_pin (z∈[20,26]) and its other hole on c_pin.
188
+ - The origin holes of bar_i (z∈[8,14]) and bar_g (z∈[14,20]) both fit on c_pin, and the two bars are fixed together as the leg triangle (end point E of g and end point F of i 131.4 apart).
189
+ - d_pin is fixed in the other hole D of bar_d (z∈[8,20]) and e_pin in the other hole E of bar_g (z∈[8,20]); the two holes of bar_f (z∈[8,14]) fit on d_pin and e_pin respectively.
190
+ - foot is fixed in the other hole F of bar_i (z∈[8,20]) as the foot tip.
191
+ - Assembly branch: B above A, C below A, D to the left of A, E to the left of C, and F (the foot tip) lowest.
192
+ Over one full crank revolution: foot-tip travel about 135.8 mm in X and about 44.9 mm in Y; upper-triangle swing about 56.5°. Gears must not interfere, and meshing teeth must be phased correctly.
193
+ Run check_motion on shaft (one full turn), confirm there is no interference, then save.
194
  motion:
195
  driver: shaft
196
  sweep_deg: 360
assembly/cases/knuckle_press.yaml CHANGED
@@ -8,65 +8,99 @@ parts:
8
  prompt: |
9
  创建机身板:在 front_plane 上画矩形,X 从 -150 到 40 mm,Y 从 -70 到 130 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(-100,50) 直径 10 mm,(-100,-6) 直径 10 mm,(0,100) 直径 8 mm。不要抽壳。
 
 
 
11
  - id: kp_shaft
12
  extra_tools: []
13
  prompt: |
14
  创建传动轴:直径 10 mm、长 22 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: kp_gear
16
  extra_tools:
17
  - spur_gear
18
  prompt: |
19
  创建渐开线直齿轮,模数 2 mm,齿数 42,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
20
  - id: kp_pinion
21
  extra_tools:
22
  - spur_gear
23
  prompt: |
24
  创建渐开线直齿轮,模数 2 mm,齿数 14,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
25
  - id: kp_flywheel
26
  extra_tools: []
27
  prompt: |
28
  创建飞轮:外径 70 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(22,0) 直径 8 mm,(-22,0) 直径 8 mm。
 
 
29
  - id: kp_crank
30
  extra_tools: []
31
  prompt: |
32
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 20 mm,两端半圆的圆心分别在原点和 (15,0),向 +Z 拉伸 6 mm。
33
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=15 处直径 8 mm。
 
 
 
34
  - id: kp_crank_pin
35
  extra_tools: []
36
  prompt: |
37
  创建曲柄销:直径 8 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
38
  - id: kp_rod
39
  extra_tools: []
40
  prompt: |
41
  创建连杆:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (90,0),向 +Z 拉伸 6 mm。
42
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=90 处直径 8 mm。
 
 
 
43
  - id: kp_upper
44
  extra_tools: []
45
  prompt: |
46
  创建上肘杆:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (50,0),向 +Z 拉伸 6 mm。
47
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=50 处直径 8 mm。
 
 
 
48
  - id: kp_lower
49
  extra_tools: []
50
  prompt: |
51
  创建下肘杆:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (60,0),向 +Z 拉伸 6 mm。
52
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=60 处直径 6 mm。
 
 
 
53
  - id: kp_top_pin
54
  extra_tools: []
55
  prompt: |
56
  创建上铰销:直径 8 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
57
  - id: kp_knee_pin
58
  extra_tools: []
59
  prompt: |
60
  创建肘销:直径 8 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
61
  - id: kp_ram_pin
62
  extra_tools: []
63
  prompt: |
64
  创建滑块销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
65
  - id: kp_ram
66
  extra_tools: []
67
  prompt: |
68
  创建压头:在 front_plane 上画矩形,X 从 -20 到 20 mm,Y 从 -12 到 12 mm,向 +Z 拉伸 6 mm。
69
  开贯穿孔:(0,0) 直径 6 mm。不要抽壳。
 
 
 
70
  gold_roles:
71
  frame: kp_frame
72
  crank_shaft: kp_shaft
@@ -97,6 +131,19 @@ assembly:
97
  孔心始终在 x=0 的直线上、肘节下方。
98
  - 曲柄 15、连杆 90、上肘杆 50、下肘杆 60。曲柄一整圈:upper 摆角约 36.2°,压头行程约 12.5 mm。各齿轮互不穿模,啮合齿相位要对上。
99
  对 crank_shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
 
 
 
 
100
  motion:
101
  driver: crank_shaft
102
  sweep_deg: 360
 
8
  prompt: |
9
  创建机身板:在 front_plane 上画矩形,X 从 -150 到 40 mm,Y 从 -70 到 130 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(-100,50) 直径 10 mm,(-100,-6) 直径 10 mm,(0,100) 直径 8 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the body plate: on front_plane draw a rectangle with X from -150 to 40 mm and Y from -70 to 130 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (-100,50) diameter 10 mm, (-100,-6) diameter 10 mm, (0,100) diameter 8 mm. Do not shell.
14
  - id: kp_shaft
15
  extra_tools: []
16
  prompt: |
17
  创建传动轴:直径 10 mm、长 22 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the transmission shaft: a cylinder 10 mm in diameter and 22 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: kp_gear
21
  extra_tools:
22
  - spur_gear
23
  prompt: |
24
  创建渐开线直齿轮,模数 2 mm,齿数 42,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
25
+ prompt_en: |
26
+ Create an involute spur gear: module 2 mm, 42 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
27
  - id: kp_pinion
28
  extra_tools:
29
  - spur_gear
30
  prompt: |
31
  创建渐开线直齿轮,模数 2 mm,齿数 14,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
32
+ prompt_en: |
33
+ Create an involute spur gear: module 2 mm, 14 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
34
  - id: kp_flywheel
35
  extra_tools: []
36
  prompt: |
37
  创建飞轮:外径 70 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(22,0) 直径 8 mm,(-22,0) 直径 8 mm。
38
+ prompt_en: |
39
+ Create the flywheel: a disk with outer diameter 70 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 10 mm. Also cut through holes: (22,0) diameter 8 mm, (-22,0) diameter 8 mm.
40
  - id: kp_crank
41
  extra_tools: []
42
  prompt: |
43
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 20 mm,两端半圆的圆心分别在原点和 (15,0),向 +Z 拉伸 6 mm。
44
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=15 处直径 8 mm。
45
+ prompt_en: |
46
+ Create the crank: on front_plane draw a bar with rounded ends, 20 mm wide, with the end-arc centers at the origin and at (15,0), and extrude it 6 mm toward +Z.
47
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=15 diameter 8 mm.
48
  - id: kp_crank_pin
49
  extra_tools: []
50
  prompt: |
51
  创建曲柄销:直径 8 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
52
+ prompt_en: |
53
+ Create the crank pin: a cylinder 8 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
54
  - id: kp_rod
55
  extra_tools: []
56
  prompt: |
57
  创建连杆:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (90,0),向 +Z 拉伸 6 mm。
58
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=90 处直径 8 mm。
59
+ prompt_en: |
60
+ Create the link: on front_plane draw a bar with rounded ends, 14 mm wide, with the end-arc centers at the origin and at (90,0), and extrude it 6 mm toward +Z.
61
+ Cut through holes on the X axis: at X=0 diameter 8 mm, at X=90 diameter 8 mm.
62
  - id: kp_upper
63
  extra_tools: []
64
  prompt: |
65
  创建上肘杆:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (50,0),向 +Z 拉伸 6 mm。
66
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=50 处直径 8 mm。
67
+ prompt_en: |
68
+ Create the upper toggle link: on front_plane draw a bar with rounded ends, 16 mm wide, with the end-arc centers at the origin and at (50,0), and extrude it 6 mm toward +Z.
69
+ Cut through holes on the X axis: at X=0 diameter 8 mm, at X=50 diameter 8 mm.
70
  - id: kp_lower
71
  extra_tools: []
72
  prompt: |
73
  创建下肘杆:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (60,0),向 +Z 拉伸 6 mm。
74
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=60 处直径 6 mm。
75
+ prompt_en: |
76
+ Create the lower toggle link: on front_plane draw a bar with rounded ends, 16 mm wide, with the end-arc centers at the origin and at (60,0), and extrude it 6 mm toward +Z.
77
+ Cut through holes on the X axis: at X=0 diameter 8 mm, at X=60 diameter 6 mm.
78
  - id: kp_top_pin
79
  extra_tools: []
80
  prompt: |
81
  创建上铰销:直径 8 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
82
+ prompt_en: |
83
+ Create the upper hinge pin: a cylinder 8 mm in diameter and 26 mm long, axis along Z, extruded from Z=0 toward +Z.
84
  - id: kp_knee_pin
85
  extra_tools: []
86
  prompt: |
87
  创建肘销:直径 8 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
88
+ prompt_en: |
89
+ Create the elbow pin: a cylinder 8 mm in diameter and 18 mm long, axis along Z, extruded from Z=0 toward +Z.
90
  - id: kp_ram_pin
91
  extra_tools: []
92
  prompt: |
93
  创建滑块销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
94
+ prompt_en: |
95
+ Create the slider pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
96
  - id: kp_ram
97
  extra_tools: []
98
  prompt: |
99
  创建压头:在 front_plane 上画矩形,X 从 -20 到 20 mm,Y 从 -12 到 12 mm,向 +Z 拉伸 6 mm。
100
  开贯穿孔:(0,0) 直径 6 mm。不要抽壳。
101
+ prompt_en: |
102
+ Create the press ram: on front_plane draw a rectangle with X from -20 to 20 mm and Y from -12 to 12 mm, and extrude it 6 mm toward +Z.
103
+ Cut through holes: (0,0) diameter 6 mm. Do not shell.
104
  gold_roles:
105
  frame: kp_frame
106
  crank_shaft: kp_shaft
 
131
  孔心始终在 x=0 的直线上、肘节下方。
132
  - 曲柄 15、连杆 90、上肘杆 50、下肘杆 60。曲柄一整圈:upper 摆角约 36.2°,压头行程约 12.5 mm。各齿轮互不穿模,啮合齿相位要对上。
133
  对 crank_shaft 做 check_motion(一整圈),确认无穿模后再保存。
134
+ prompt_en: |
135
+ Assemble a knuckle-joint (toggle) press: the crank pushes the knee through a connecting rod, and the press ram produces a large force when the upper and lower toggle links are nearly straight. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
136
+ - frame is fixed, z∈[0,8]. Crank shaft hole (-100,50) and motor shaft hole (-100,-6), diameter 10; upper hinge hole (0,100), diameter 8.
137
+ - crank_shaft passes through the crank shaft hole and rotates about Z (z∈[-8,14]); the 42-tooth crank_gear is fixed on it (z∈[-8,0]), and the 10 mm hole of crank is fixed on it (z∈[8,14]);
138
+ crank_pin is fixed in the 8 mm hole of crank (z∈[8,20]).
139
+ - motor_shaft passes through the motor shaft hole and rotates about Z (z∈[-14,8]); the 14-tooth pinion (z∈[-8,0]) and the center hole of flywheel (z∈[-14,-8]) are fixed on it,
140
+ and pinion meshes externally with crank_gear (module 2, center distance 56).
141
+ - The origin hole of rod fits on crank_pin and rotates (z∈[14,20]). top_pin is fixed in the upper hinge hole (z∈[0,26]); the origin hole of upper fits on top_pin and rotates (z∈[20,26]).
142
+ - knee_pin is fixed in the other hole of upper (z∈[8,26]); the other hole of rod and the origin hole of lower (z∈[8,14]) both fit on knee_pin and rotate. The knee is below the axis of upper.
143
+ - ram_pin is fixed in the 6 mm hole of lower (z∈[8,20]); the hole of ram fits on ram_pin and rotates (z∈[14,20]), and ram can only move along the Y direction of frame,
144
+ with its hole center always on the line x=0, below the knee.
145
+ - Crank 15, connecting rod 90, upper toggle link 50, lower toggle link 60. Over one full crank revolution: upper swings about 36.2° and the ram stroke is about 12.5 mm. Gears must not interfere, and meshing teeth must be phased correctly.
146
+ Run check_motion on crank_shaft (one full turn), confirm there is no interference, then save.
147
  motion:
148
  driver: crank_shaft
149
  sweep_deg: 360
assembly/cases/l_twin_engine.yaml CHANGED
@@ -8,56 +8,85 @@ parts:
8
  prompt: |
9
  创建机体板:在 front_plane 上画矩形,X 从 -80 到 110 mm,Y 从 -40 到 110 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(-48,0) 直径 10 mm。不要抽壳。
 
 
 
11
  - id: lt_shaft
12
  extra_tools: []
13
  prompt: |
14
  创建曲轴:直径 10 mm、长 28 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: lt_flywheel
16
  extra_tools: []
17
  prompt: |
18
  创建飞轮:外径 60 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。
 
 
19
  - id: lt_crank_gear
20
  extra_tools:
21
  - spur_gear
22
  prompt: |
23
  创建渐开线直齿轮,模数 2 mm,齿数 16,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
24
  - id: lt_cam_gear
25
  extra_tools:
26
  - spur_gear
27
  prompt: |
28
  创建渐开线直齿轮,模数 2 mm,齿数 32,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
29
  - id: lt_cam_shaft
30
  extra_tools: []
31
  prompt: |
32
  创建凸轮轴:直径 10 mm、长 22 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
33
  - id: lt_cam
34
  extra_tools: []
35
  prompt: |
36
  创建凸轮:在 front_plane 上画两端圆头的长条,宽 24 mm,两端半圆的圆心分别在原点和 (8,0),向 +Z 拉伸 6 mm。
37
  在 X 轴上开贯穿孔:X=0 处直径 10 mm。
 
 
 
38
  - id: lt_crank
39
  extra_tools: []
40
  prompt: |
41
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 20 mm,两端半圆的圆心分别在原点和 (15,0),向 +Z 拉伸 6 mm。
42
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=15 处直径 8 mm。
 
 
 
43
  - id: lt_crank_pin
44
  extra_tools: []
45
  prompt: |
46
  创建曲柄销:直径 8 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
47
  - id: lt_rod
48
  extra_tools: []
49
  prompt: |
50
  创建连杆:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (60,0),向 +Z 拉伸 6 mm。
51
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=60 处直径 6 mm。
 
 
 
52
  - id: lt_pin12
53
  extra_tools: []
54
  prompt: |
55
  创建活塞销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
56
  - id: lt_piston
57
  extra_tools: []
58
  prompt: |
59
  创建活塞:在 front_plane 上画矩形,X 从 -10 到 10 mm,Y 从 -12 到 12 mm,向 +Z 拉伸 6 mm。
60
  开贯穿孔:(0,0) 直径 6 mm。不要抽壳。
 
 
 
61
  gold_roles:
62
  frame: lt_frame
63
  shaft: lt_shaft
@@ -89,6 +118,20 @@ assembly:
89
  crank_gear 与 cam_gear 外啮合(模数 2,中心距 48),凸轮轴转速是曲轴的一半、反向。
90
  - 曲柄 15、连杆 60,每缸行程 30 mm,两缸相位差 90°。各齿轮互不穿模,啮合齿相位��对上。
91
  对 shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  motion:
93
  driver: shaft
94
  sweep_deg: 360
 
8
  prompt: |
9
  创建机体板:在 front_plane 上画矩形,X 从 -80 到 110 mm,Y 从 -40 到 110 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(-48,0) 直径 10 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the frame plate: on front_plane draw a rectangle with X from -80 to 110 mm and Y from -40 to 110 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm, (-48,0) diameter 10 mm. Do not shell.
14
  - id: lt_shaft
15
  extra_tools: []
16
  prompt: |
17
  创建曲轴:直径 10 mm、长 28 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the crankshaft: a cylinder 10 mm in diameter and 28 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: lt_flywheel
21
  extra_tools: []
22
  prompt: |
23
  创建飞轮:外径 60 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。
24
+ prompt_en: |
25
+ Create the flywheel: a disk with outer diameter 60 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 10 mm.
26
  - id: lt_crank_gear
27
  extra_tools:
28
  - spur_gear
29
  prompt: |
30
  创建渐开线直齿轮,模数 2 mm,齿数 16,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
31
+ prompt_en: |
32
+ Create an involute spur gear: module 2 mm, 16 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
33
  - id: lt_cam_gear
34
  extra_tools:
35
  - spur_gear
36
  prompt: |
37
  创建渐开线直齿轮,模数 2 mm,齿数 32,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
38
+ prompt_en: |
39
+ Create an involute spur gear: module 2 mm, 32 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
40
  - id: lt_cam_shaft
41
  extra_tools: []
42
  prompt: |
43
  创建凸轮轴:直径 10 mm、长 22 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
44
+ prompt_en: |
45
+ Create the camshaft: a cylinder 10 mm in diameter and 22 mm long, axis along Z, extruded from Z=0 toward +Z.
46
  - id: lt_cam
47
  extra_tools: []
48
  prompt: |
49
  创建凸轮:在 front_plane 上画两端圆头的长条,宽 24 mm,两端半圆的圆心分别在原点和 (8,0),向 +Z 拉伸 6 mm。
50
  在 X 轴上开贯穿孔:X=0 处直径 10 mm。
51
+ prompt_en: |
52
+ Create the cam: on front_plane draw a bar with rounded ends, 24 mm wide, with the end-arc centers at the origin and at (8,0), and extrude it 6 mm toward +Z.
53
+ Cut through holes on the X axis: at X=0 diameter 10 mm.
54
  - id: lt_crank
55
  extra_tools: []
56
  prompt: |
57
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 20 mm,两端半圆的圆心分别在原点和 (15,0),向 +Z 拉伸 6 mm。
58
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=15 处直径 8 mm。
59
+ prompt_en: |
60
+ Create the crank: on front_plane draw a bar with rounded ends, 20 mm wide, with the end-arc centers at the origin and at (15,0), and extrude it 6 mm toward +Z.
61
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=15 diameter 8 mm.
62
  - id: lt_crank_pin
63
  extra_tools: []
64
  prompt: |
65
  创建曲柄销:直径 8 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
66
+ prompt_en: |
67
+ Create the crank pin: a cylinder 8 mm in diameter and 18 mm long, axis along Z, extruded from Z=0 toward +Z.
68
  - id: lt_rod
69
  extra_tools: []
70
  prompt: |
71
  创建连杆:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (60,0),向 +Z 拉伸 6 mm。
72
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=60 处直径 6 mm。
73
+ prompt_en: |
74
+ Create the link: on front_plane draw a bar with rounded ends, 14 mm wide, with the end-arc centers at the origin and at (60,0), and extrude it 6 mm toward +Z.
75
+ Cut through holes on the X axis: at X=0 diameter 8 mm, at X=60 diameter 6 mm.
76
  - id: lt_pin12
77
  extra_tools: []
78
  prompt: |
79
  创建活塞销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
80
+ prompt_en: |
81
+ Create the wrist pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
82
  - id: lt_piston
83
  extra_tools: []
84
  prompt: |
85
  创建活塞:在 front_plane 上画矩形,X 从 -10 到 10 mm,Y 从 -12 到 12 mm,向 +Z 拉伸 6 mm。
86
  开贯穿孔:(0,0) 直径 6 mm。不要抽壳。
87
+ prompt_en: |
88
+ Create the piston: on front_plane draw a rectangle with X from -10 to 10 mm and Y from -12 to 12 mm, and extrude it 6 mm toward +Z.
89
+ Cut through holes: (0,0) diameter 6 mm. Do not shell.
90
  gold_roles:
91
  frame: lt_frame
92
  shaft: lt_shaft
 
118
  crank_gear 与 cam_gear 外啮合(模数 2,中心距 48),凸轮轴转速是曲轴的一半、反向。
119
  - 曲柄 15、连杆 60,每缸行程 30 mm,两缸相位差 90°。各齿轮互不穿模,啮合齿相位��对上。
120
  对 shaft 做 check_motion(一整圈),确认无穿模后再保存。
121
+ prompt_en: |
122
+ Assemble an L-type (90°) twin-cylinder engine: the two cylinders share one crank pin, one cylinder horizontal and one vertical; the crankshaft drives the camshaft through 16/32 timing gears. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
123
+ - frame is fixed, z∈[0,8]. Crankshaft hole (0,0) and camshaft hole (-48,0), both of diameter 10 mm.
124
+ - shaft passes through the (0,0) hole and rotates about Z (z∈[-14,14]). Behind the plate: flywheel (z∈[-14,-8]) and the 16-tooth crank_gear (z∈[-8,0]) are fixed on shaft;
125
+ in front of the plate: the 10 mm hole of crank is fixed on shaft (z∈[8,14]). crank_pin is fixed in the 8 mm hole of crank (z∈[8,26]).
126
+ - The 8 mm holes of rod_h and rod_v both fit on crank_pin and rotate: rod_h at z∈[14,20], rod_v at z∈[20,26].
127
+ - Horizontal cylinder: wrist_h is fixed in the 6 mm hole of rod_h (z∈[14,26]), and the hole of piston_h fits on wrist_h and rotates (z∈[20,26]);
128
+ piston_h can only move along the X direction of frame, with its hole center always on the line y=0, on the +X side of the crankshaft.
129
+ - Vertical cylinder: wrist_v is fixed in the 6 mm hole of rod_v (z∈[14,26]), and the hole of piston_v fits on wrist_v and rotates (z∈[14,20]);
130
+ piston_v can only move along the Y direction of frame, with its hole center always on the line x=0, on the +Y side of the crankshaft.
131
+ - cam_shaft passes through the (-48,0) hole and rotates about Z (z∈[-8,14]); the 32-tooth cam_gear (z∈[-8,0]) and cam (z∈[8,14]) are fixed on cam_shaft.
132
+ crank_gear meshes externally with cam_gear (module 2, center distance 48); the camshaft turns at half the crankshaft speed, in the opposite direction.
133
+ - Crank 15, connecting rod 60, stroke 30 mm per cylinder, 90° phase difference between the two cylinders. Gears must not interfere, and meshing teeth must be phased correctly.
134
+ Run check_motion on shaft (one full turn), confirm there is no interference, then save.
135
  motion:
136
  driver: shaft
137
  sweep_deg: 360
assembly/cases/lambda_conveyor.yaml CHANGED
@@ -8,51 +8,77 @@ parts:
8
  prompt: |
9
  创建机架板:在 front_plane 上画矩形,X 从 -110 到 60 mm,Y 从 -70 到 120 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(0,-45) 直径 10 mm,(-40,0) 直径 8 mm。不要抽壳。
 
 
 
11
  - id: lc_shaft
12
  extra_tools: []
13
  prompt: |
14
  创建曲柄轴:直径 10 mm、长 34 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: lc_motor_shaft
16
  extra_tools: []
17
  prompt: |
18
  创建电机轴:直径 10 mm、长 22 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
19
  - id: lc_gear
20
  extra_tools:
21
  - spur_gear
22
  prompt: |
23
  创建渐开线直齿轮,模数 2 mm,齿数 30,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
24
  - id: lc_pinion
25
  extra_tools:
26
  - spur_gear
27
  prompt: |
28
  创建渐开线直齿轮,模数 2 mm,齿数 15,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
29
  - id: lc_handwheel
30
  extra_tools: []
31
  prompt: |
32
  创建手轮:外径 40 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(12,0) 直径 6 mm。
 
 
33
  - id: lc_d_pin
34
  extra_tools: []
35
  prompt: |
36
  创建摇杆轴:直径 8 mm、长 34 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
37
  - id: lc_crank
38
  extra_tools: []
39
  prompt: |
40
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 20 mm,两端半圆的圆心分别在原点和 (20,0),向 +Z 拉伸 6 mm。
41
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=20 处直径 8 mm。
 
 
 
42
  - id: lc_pin8
43
  extra_tools: []
44
  prompt: |
45
  创建铰销:直径 8 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
46
  - id: lc_coupler
47
  extra_tools: []
48
  prompt: |
49
  创建λ 连杆:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (100,0),向 +Z 拉伸 6 mm。
50
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=50 处直径 8 mm,X=100 处直径 8 mm。
 
 
 
51
  - id: lc_rocker
52
  extra_tools: []
53
  prompt: |
54
  创建摇杆:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (50,0),向 +Z 拉伸 6 mm。
55
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=50 处直径 8 mm。
 
 
 
56
  gold_roles:
57
  frame: lc_frame
58
  shaft: lc_shaft
@@ -89,6 +115,21 @@ assembly:
89
  rocker_b z∈[-20,-14];mpin_b z∈[-26,-14];foot_b z∈[-32,-20]。
90
  - 两组的连杆中点都在摇杆轴上方偏右(推爪在曲柄轴上方,y 约 80~98)。曲柄一整圈:推爪 X 向行程约 94.1 mm、Y 向约 18.0 mm。各齿轮互不穿模,啮合齿相位要对上。
91
  对 shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  motion:
93
  driver: shaft
94
  sweep_deg: 360
 
8
  prompt: |
9
  创建机架板:在 front_plane 上画矩形,X 从 -110 到 60 mm,Y 从 -70 到 120 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(0,-45) 直径 10 mm,(-40,0) 直径 8 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the frame plate: on front_plane draw a rectangle with X from -110 to 60 mm and Y from -70 to 120 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm, (0,-45) diameter 10 mm, (-40,0) diameter 8 mm. Do not shell.
14
  - id: lc_shaft
15
  extra_tools: []
16
  prompt: |
17
  创建曲柄轴:直径 10 mm、长 34 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the crank shaft: a cylinder 10 mm in diameter and 34 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: lc_motor_shaft
21
  extra_tools: []
22
  prompt: |
23
  创建电机轴:直径 10 mm、长 22 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
24
+ prompt_en: |
25
+ Create the motor shaft: a cylinder 10 mm in diameter and 22 mm long, axis along Z, extruded from Z=0 toward +Z.
26
  - id: lc_gear
27
  extra_tools:
28
  - spur_gear
29
  prompt: |
30
  创建渐开线直齿轮,模数 2 mm,齿数 30,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
31
+ prompt_en: |
32
+ Create an involute spur gear: module 2 mm, 30 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
33
  - id: lc_pinion
34
  extra_tools:
35
  - spur_gear
36
  prompt: |
37
  创建渐开线直齿轮,模数 2 mm,齿数 15,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
38
+ prompt_en: |
39
+ Create an involute spur gear: module 2 mm, 15 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
40
  - id: lc_handwheel
41
  extra_tools: []
42
  prompt: |
43
  创建手轮:外径 40 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(12,0) 直径 6 mm。
44
+ prompt_en: |
45
+ Create the handwheel: a disk with outer diameter 40 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 10 mm. Also cut through holes: (12,0) diameter 6 mm.
46
  - id: lc_d_pin
47
  extra_tools: []
48
  prompt: |
49
  创建摇杆轴:直径 8 mm、长 34 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
50
+ prompt_en: |
51
+ Create the rocker pivot: a cylinder 8 mm in diameter and 34 mm long, axis along Z, extruded from Z=0 toward +Z.
52
  - id: lc_crank
53
  extra_tools: []
54
  prompt: |
55
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 20 mm,两端半圆的圆心分别在原点和 (20,0),向 +Z 拉伸 6 mm。
56
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=20 处直径 8 mm。
57
+ prompt_en: |
58
+ Create the crank: on front_plane draw a bar with rounded ends, 20 mm wide, with the end-arc centers at the origin and at (20,0), and extrude it 6 mm toward +Z.
59
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=20 diameter 8 mm.
60
  - id: lc_pin8
61
  extra_tools: []
62
  prompt: |
63
  创建铰销:直径 8 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
64
+ prompt_en: |
65
+ Create the hinge pin: a cylinder 8 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
66
  - id: lc_coupler
67
  extra_tools: []
68
  prompt: |
69
  创建λ 连杆:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (100,0),向 +Z 拉伸 6 mm。
70
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=50 处直径 8 mm,X=100 处直径 8 mm。
71
+ prompt_en: |
72
+ Create the λ coupler: on front_plane draw a bar with rounded ends, 14 mm wide, with the end-arc centers at the origin and at (100,0), and extrude it 6 mm toward +Z.
73
+ Cut through holes on the X axis: at X=0 diameter 8 mm, at X=50 diameter 8 mm, at X=100 diameter 8 mm.
74
  - id: lc_rocker
75
  extra_tools: []
76
  prompt: |
77
  创建摇杆:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (50,0),向 +Z 拉伸 6 mm。
78
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=50 处直径 8 mm。
79
+ prompt_en: |
80
+ Create the rocker: on front_plane draw a bar with rounded ends, 14 mm wide, with the end-arc centers at the origin and at (50,0), and extrude it 6 mm toward +Z.
81
+ Cut through holes on the X axis: at X=0 diameter 8 mm, at X=50 diameter 8 mm.
82
  gold_roles:
83
  frame: lc_frame
84
  shaft: lc_shaft
 
115
  rocker_b z∈[-20,-14];mpin_b z∈[-26,-14];foot_b z∈[-32,-20]。
116
  - 两组的连杆中点都在摇杆轴上方偏右(推爪在曲柄轴上方,y 约 80~98)。曲柄一整圈:推爪 X 向行程约 94.1 mm、Y 向约 18.0 mm。各齿轮互不穿模,啮合齿相位要对上。
117
  对 shaft 做 check_motion(一整圈),确认无穿模后再保存。
118
+ prompt_en: |
119
+ Assemble a Chebyshev �� walking-beam conveyor: two λ four-bars (crank 20, ground link 40, rocker 50, λ coupler 100, with the rocker attached at the coupler midpoint) share the crank shaft with cranks 180° apart;
120
+ the pusher (end of the coupler) moves along a horizontal straight line for about 65% of the time, and the two sets push alternately. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
121
+ - frame is fixed, z∈[0,8]. Crank shaft hole (0,0) and motor shaft hole (0,-45), diameter 10; rocker pivot hole (-40,0), diameter 8.
122
+ - shaft passes through the (0,0) hole and rotates about Z (z∈[-20,14]); the 30-tooth crank_gear is fixed on it (z∈[-8,0]).
123
+ motor_shaft passes through the motor shaft hole and rotates about Z (z∈[-14,8]); the 15-tooth pinion (z∈[-8,0]) and the center hole of handwheel (z∈[-14,-8]) are fixed on it,
124
+ and pinion meshes externally with crank_gear (module 2, center distance 45).
125
+ - d_pin is fixed in the rocker pivot hole and protrudes on both sides (z∈[-20,14]).
126
+ - Front set (in front of the plate): the 10 mm hole of crank_f is fixed on shaft (z∈[8,14]); cpin_f is fixed in the 8 mm hole of crank_f (z∈[8,20]);
127
+ the origin hole of coupler_f (three holes: 0, 50, 100) fits on cpin_f and rotates (z∈[14,20]); the origin hole of rocker_f fits on d_pin and rotates (z∈[8,14]),
128
+ mpin_f is fixed in the other hole of rocker_f (z∈[8,20]), and the middle hole of coupler_f fits on mpin_f; foot_f is fixed in the end hole of coupler_f (z∈[14,26]).
129
+ - Rear set (behind the plate, clear of the gear layer): crank_b z∈[-20,-14], pointing 180° away from crank_f; cpin_b z∈[-26,-14]; coupler_b z∈[-26,-20];
130
+ rocker_b z∈[-20,-14]; mpin_b z∈[-26,-14]; foot_b z∈[-32,-20].
131
+ - In both sets the coupler midpoint is above and to the right of the rocker pivot (the pusher is above the crank shaft, y about 80 to 98). Over one full crank revolution: pusher travel about 94.1 mm in X and about 18.0 mm in Y. Gears must not interfere, and meshing teeth must be phased correctly.
132
+ Run check_motion on shaft (one full turn), confirm there is no interference, then save.
133
  motion:
134
  driver: shaft
135
  sweep_deg: 360
assembly/cases/lead_screw_stage.yaml CHANGED
@@ -8,27 +8,41 @@ parts:
8
  prompt: |
9
  创建底板:在 front_plane 上画矩形,X 从 -30 到 70 mm,Y 从 -30 到 30 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(40,0) 直径 8 mm。不要抽壳。
 
 
 
11
  - id: ls_screw
12
  extra_tools: []
13
  prompt: |
14
  创建丝杠:直径 10 mm、长 128 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: ls_handwheel
16
  extra_tools: []
17
  prompt: |
18
  创建手轮:外径 50 mm、厚 8 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。
 
 
19
  - id: ls_guide_rod
20
  extra_tools: []
21
  prompt: |
22
  创建导杆:直径 8 mm、长 120 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
23
  - id: ls_carriage
24
  extra_tools: []
25
  prompt: |
26
  创建滑台:在 front_plane 上画矩形,X 从 -15 到 55 mm,Y 从 -15 到 15 mm,向 +Z 拉伸 10 mm。
27
  开贯穿孔:(0,0) 直径 20 mm,(40,0) 直径 8 mm。不要抽壳。
 
 
 
28
  - id: ls_nut
29
  extra_tools: []
30
  prompt: |
31
  创建螺母:外径 20 mm、厚 10 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。
 
 
32
  gold_roles:
33
  frame: ls_frame
34
  screw: ls_screw
@@ -45,6 +59,14 @@ assembly:
45
  - carriage 的 8 mm 孔套在 guide_rod 上,只能沿 Z 滑动(初始 z∈[50,60]);nut 固定在 carriage 的 20 mm 孔里(z∈[50,60]),
46
  nut 与 screw 组成螺旋副,导程 2 mm:丝杠转一圈滑台沿 Z 移动 2 mm。
47
  对 screw 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
48
  motion:
49
  driver: screw
50
  sweep_deg: 360
 
8
  prompt: |
9
  创建底板:在 front_plane 上画矩形,X 从 -30 到 70 mm,Y 从 -30 到 30 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(40,0) 直径 8 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the bottom plate: on front_plane draw a rectangle with X from -30 to 70 mm and Y from -30 to 30 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm, (40,0) diameter 8 mm. Do not shell.
14
  - id: ls_screw
15
  extra_tools: []
16
  prompt: |
17
  创建丝杠:直径 10 mm、长 128 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the lead screw: a cylinder 10 mm in diameter and 128 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: ls_handwheel
21
  extra_tools: []
22
  prompt: |
23
  创建手轮:外径 50 mm、厚 8 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。
24
+ prompt_en: |
25
+ Create the handwheel: a disk with outer diameter 50 mm and thickness 8 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 10 mm.
26
  - id: ls_guide_rod
27
  extra_tools: []
28
  prompt: |
29
  创建导杆:直径 8 mm、长 120 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
30
+ prompt_en: |
31
+ Create the guide rod: a cylinder 8 mm in diameter and 120 mm long, axis along Z, extruded from Z=0 toward +Z.
32
  - id: ls_carriage
33
  extra_tools: []
34
  prompt: |
35
  创建滑台:在 front_plane 上画矩形,X 从 -15 到 55 mm,Y 从 -15 到 15 mm,向 +Z 拉伸 10 mm。
36
  开贯穿孔:(0,0) 直径 20 mm,(40,0) 直径 8 mm。不要抽壳。
37
+ prompt_en: |
38
+ Create the carriage: on front_plane draw a rectangle with X from -15 to 55 mm and Y from -15 to 15 mm, and extrude it 10 mm toward +Z.
39
+ Cut through holes: (0,0) diameter 20 mm, (40,0) diameter 8 mm. Do not shell.
40
  - id: ls_nut
41
  extra_tools: []
42
  prompt: |
43
  创建螺母:外径 20 mm、厚 10 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。
44
+ prompt_en: |
45
+ Create the nut: a disk with outer diameter 20 mm and thickness 10 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 10 mm.
46
  gold_roles:
47
  frame: ls_frame
48
  screw: ls_screw
 
59
  - carriage 的 8 mm 孔套在 guide_rod 上,只能沿 Z 滑动(初始 z∈[50,60]);nut 固定在 carriage 的 20 mm 孔里(z∈[50,60]),
60
  nut 与 screw 组成螺旋副,导程 2 mm:丝杠转一圈滑台沿 Z 移动 2 mm。
61
  对 screw 做 check_motion(一整圈),确认无穿模后再保存。
62
+ prompt_en: |
63
+ Assemble a vertical lead-screw stage. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
64
+ - frame is fixed, z∈[0,8], screw hole (0,0) of diameter 10, guide-rod hole (40,0) of diameter 8.
65
+ - screw passes through the (0,0) hole and rotates about Z (z∈[-16,112]); handwheel is fixed at the lower end of screw (z∈[-16,-8]).
66
+ - guide_rod is fixed in the (40,0) hole (z∈[0,120]).
67
+ - The 8 mm hole of carriage fits on guide_rod and can only slide along Z (initially z∈[50,60]); nut is fixed in the 20 mm hole of carriage (z∈[50,60]),
68
+ and nut forms a screw pair with screw, lead 2 mm: for one screw revolution the carriage moves 2 mm along Z.
69
+ Run check_motion on screw (one full turn), confirm there is no interference, then save.
70
  motion:
71
  driver: screw
72
  sweep_deg: 360
assembly/cases/luffing_crane.yaml CHANGED
@@ -8,55 +8,85 @@ parts:
8
  prompt: |
9
  创建塔身板:在 front_plane 上画矩形,X 从 -60 到 240 mm,Y 从 -50 到 200 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(-25,75) 直径 8 mm,(90,-30) 直径 8 mm。不要抽壳。
 
 
 
11
  - id: lu_boom
12
  extra_tools: []
13
  prompt: |
14
  创建主臂:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (170,0),向 +Z 拉伸 6 mm。
15
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=60 处直径 6 mm,X=170 处直径 8 mm。
 
 
 
16
  - id: lu_rocker
17
  extra_tools: []
18
  prompt: |
19
  创建拉杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (130,0),向 +Z 拉伸 6 mm。
20
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=130 处直径 8 mm。
 
 
 
21
  - id: lu_head
22
  extra_tools: []
23
  prompt: |
24
  创建象鼻梁:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (120,0),向 +Z 拉伸 6 mm。
25
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=40 处直径 8 mm,X=120 处直径 6 mm。
 
 
 
26
  - id: lu_barrel
27
  extra_tools: []
28
  prompt: |
29
  创建油缸筒:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (70,0),向 +Z 拉伸 6 mm。
30
  在 X 轴上开贯穿孔:X=0 处直径 8 mm。
 
 
 
31
  - id: lu_ram
32
  extra_tools: []
33
  prompt: |
34
  创建活塞杆:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (70,0),向 +Z 拉伸 6 mm。
35
  在 X 轴上开贯穿孔:X=0 处直径 6 mm。
 
 
 
36
  - id: lu_a_pin
37
  extra_tools: []
38
  prompt: |
39
  创建主臂根销:直径 10 mm、长 20 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
40
  - id: lu_pin20
41
  extra_tools: []
42
  prompt: |
43
  创建拉杆根销:直径 8 mm、长 20 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
44
  - id: lu_pin14
45
  extra_tools: []
46
  prompt: |
47
  创建缸底销:直径 8 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
48
  - id: lu_pin8_12
49
  extra_tools: []
50
  prompt: |
51
  创建臂头销:直径 8 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
52
  - id: lu_pin6_12
53
  extra_tools: []
54
  prompt: |
55
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
56
  - id: lu_hook
57
  extra_tools: []
58
  prompt: |
59
  创建吊钩:外径 24 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 6 mm。
 
 
60
  gold_roles:
61
  base: lu_base
62
  a_pin: lu_a_pin
@@ -84,6 +114,17 @@ assembly:
84
  - f_pin 固���在 F 孔(z∈[0,14]);barrel(油缸筒)的孔套在 f_pin 上转动(z∈[8,14]),筒身朝 g_pin 伸出;
85
  ram(活塞杆)的孔套在 g_pin 上转动(z∈[20,26]),杆身朝 f_pin 伸进缸筒,ram 与 barrel 轴线始终共线、只能相对伸缩。
86
  - 主臂俯仰这 1 个自由度保持自由(整机活动度 1),不要固定角度。各件互不穿模,装好后保存。
 
 
 
 
 
 
 
 
 
 
 
87
  motion:
88
  mode: poses
89
  frame: base
 
8
  prompt: |
9
  创建塔身板:在 front_plane 上画矩形,X 从 -60 到 240 mm,Y 从 -50 到 200 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(-25,75) 直径 8 mm,(90,-30) 直径 8 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the tower plate: on front_plane draw a rectangle with X from -60 to 240 mm and Y from -50 to 200 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm, (-25,75) diameter 8 mm, (90,-30) diameter 8 mm. Do not shell.
14
  - id: lu_boom
15
  extra_tools: []
16
  prompt: |
17
  创建主臂:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (170,0),向 +Z 拉伸 6 mm。
18
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=60 处直径 6 mm,X=170 处直径 8 mm。
19
+ prompt_en: |
20
+ Create the main boom: on front_plane draw a bar with rounded ends, 16 mm wide, with the end-arc centers at the origin and at (170,0), and extrude it 6 mm toward +Z.
21
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=60 diameter 6 mm, at X=170 diameter 8 mm.
22
  - id: lu_rocker
23
  extra_tools: []
24
  prompt: |
25
  创建拉杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (130,0),向 +Z 拉伸 6 mm。
26
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=130 处直径 8 mm。
27
+ prompt_en: |
28
+ Create the tie rod: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (130,0), and extrude it 6 mm toward +Z.
29
+ Cut through holes on the X axis: at X=0 diameter 8 mm, at X=130 diameter 8 mm.
30
  - id: lu_head
31
  extra_tools: []
32
  prompt: |
33
  创建象鼻梁:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (120,0),向 +Z 拉伸 6 mm。
34
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=40 处直径 8 mm,X=120 处直径 6 mm。
35
+ prompt_en: |
36
+ Create the jib head: on front_plane draw a bar with rounded ends, 14 mm wide, with the end-arc centers at the origin and at (120,0), and extrude it 6 mm toward +Z.
37
+ Cut through holes on the X axis: at X=0 diameter 8 mm, at X=40 diameter 8 mm, at X=120 diameter 6 mm.
38
  - id: lu_barrel
39
  extra_tools: []
40
  prompt: |
41
  创建油缸筒:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (70,0),向 +Z 拉伸 6 mm。
42
  在 X 轴上开贯穿孔:X=0 处直径 8 mm。
43
+ prompt_en: |
44
+ Create the cylinder barrel: on front_plane draw a bar with rounded ends, 16 mm wide, with the end-arc centers at the origin and at (70,0), and extrude it 6 mm toward +Z.
45
+ Cut through holes on the X axis: at X=0 diameter 8 mm.
46
  - id: lu_ram
47
  extra_tools: []
48
  prompt: |
49
  创建活塞杆:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (70,0),向 +Z 拉伸 6 mm。
50
  在 X 轴上开贯穿孔:X=0 处直径 6 mm。
51
+ prompt_en: |
52
+ Create the piston rod: on front_plane draw a bar with rounded ends, 10 mm wide, with the end-arc centers at the origin and at (70,0), and extrude it 6 mm toward +Z.
53
+ Cut through holes on the X axis: at X=0 diameter 6 mm.
54
  - id: lu_a_pin
55
  extra_tools: []
56
  prompt: |
57
  创建主臂根销:直径 10 mm、长 20 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
58
+ prompt_en: |
59
+ Create the boom root pin: a cylinder 10 mm in diameter and 20 mm long, axis along Z, extruded from Z=0 toward +Z.
60
  - id: lu_pin20
61
  extra_tools: []
62
  prompt: |
63
  创建拉杆根销:直径 8 mm、长 20 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
64
+ prompt_en: |
65
+ Create the tie rod root pin: a cylinder 8 mm in diameter and 20 mm long, axis along Z, extruded from Z=0 toward +Z.
66
  - id: lu_pin14
67
  extra_tools: []
68
  prompt: |
69
  创建缸底销:直径 8 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
70
+ prompt_en: |
71
+ Create the cylinder base pin: a cylinder 8 mm in diameter and 14 mm long, axis along Z, extruded from Z=0 toward +Z.
72
  - id: lu_pin8_12
73
  extra_tools: []
74
  prompt: |
75
  创建臂头销:直径 8 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
76
+ prompt_en: |
77
+ Create the boom head pin: a cylinder 8 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
78
  - id: lu_pin6_12
79
  extra_tools: []
80
  prompt: |
81
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
82
+ prompt_en: |
83
+ Create the hinge pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
84
  - id: lu_hook
85
  extra_tools: []
86
  prompt: |
87
  创建吊钩:外径 24 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 6 mm。
88
+ prompt_en: |
89
+ Create the hook: a disk with outer diameter 24 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 6 mm.
90
  gold_roles:
91
  base: lu_base
92
  a_pin: lu_a_pin
 
114
  - f_pin 固���在 F 孔(z∈[0,14]);barrel(油缸筒)的孔套在 f_pin 上转动(z∈[8,14]),筒身朝 g_pin 伸出;
115
  ram(活塞杆)的孔套在 g_pin 上转动(z∈[20,26]),杆身朝 f_pin 伸进缸筒,ram 与 barrel 轴线始终共线、只能相对伸缩。
116
  - 主臂俯仰这 1 个自由度保持自由(整机活动度 1),不要固定角度。各件互不穿模,装好后保存。
117
+ prompt_en: |
118
+ Assemble the jib system of a level-luffing crane: the main boom, tie rod and jib head form a four-bar linkage, so that when the luffing cylinder raises or lowers the boom, the hook point rises and falls much less than the boom head (approximately level luffing). Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
119
+ - base is fixed, z∈[0,8]: boom root hole A=(0,0) of diameter 10, tie-rod root hole D=(-25,75) and cylinder base hole F=(90,-30) of diameter 8.
120
+ - a_pin is fixed in hole A (z∈[0,20]); the origin hole of boom (main boom, holes at 0, 60, 170) fits on a_pin and rotates (z∈[14,20]);
121
+ b_pin is fixed in the X=170 hole of boom (z∈[8,20]), and g_pin in the X=60 hole of boom (z∈[14,26]).
122
+ - d_pin is fixed in hole D (z∈[0,20]); the origin hole of rocker (tie rod, length 130) fits on d_pin and rotates (z∈[14,20]); c_pin is fixed in the other hole of rocker (z∈[8,20]).
123
+ - The origin hole of head (jib head, holes at 0, 40, 120) fits on c_pin (z∈[8,14]) and its X=40 hole on b_pin, with the hook end (X=120) pointing outward;
124
+ the tie-rod hinge C is behind and above the boom head B. t_pin is fixed in the X=120 hole of head (z∈[8,20]), and hook is fixed on t_pin (z∈[14,20]).
125
+ - f_pin is fixed in hole F (z∈[0,14]); the hole of barrel (cylinder barrel) fits on f_pin and rotates (z∈[8,14]), with the barrel body extending toward g_pin;
126
+ the hole of ram (piston rod) fits on g_pin and rotates (z∈[20,26]), with the rod extending toward f_pin into the barrel; the axes of ram and barrel always stay collinear and they can only extend or retract relative to each other.
127
+ - Keep the 1 degree of freedom of boom luffing free (mobility 1 for the whole crane); do not fix the angle. No parts may interfere. Save when assembled.
128
  motion:
129
  mode: poses
130
  frame: base
assembly/cases/mechanical_iris.yaml CHANGED
@@ -8,52 +8,79 @@ parts:
8
  prompt: |
9
  创建底座:在 front_plane 上画矩形,X 从 -80 到 80 mm,Y 从 -80 到 80 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(60,0) 直径 6 mm,(18.54,57.06) 直径 6 mm,(-48.54,35.27) 直径 6 mm,(-48.54,-35.27) 直径 6 mm,(18.54,-57.06) 直径 6 mm。不要抽壳。
 
 
 
11
  - id: ir_center
12
  extra_tools: []
13
  prompt: |
14
  创建中心轴:直径 10 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: ir_actuator
16
  extra_tools: []
17
  prompt: |
18
  创建驱动环:外径 110 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(45,0) 直径 6 mm,(13.91,42.8) 直径 6 mm,(-36.41,26.45) 直径 6 mm,(-36.41,-26.45) 直径 6 mm,(13.91,-42.8) 直径 6 mm。
 
 
19
  - id: ir_blade
20
  extra_tools: []
21
  prompt: |
22
  创建叶片:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (50,0),向 +Z 拉伸 6 mm。
23
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=25 处直径 6 mm。
 
 
 
24
  - id: ir_conn
25
  extra_tools: []
26
  prompt: |
27
  创建连杆:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (25,0),向 +Z 拉伸 6 mm。
28
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=25 处直径 6 mm。
 
 
 
29
  - id: ir_apin
30
  extra_tools: []
31
  prompt: |
32
  创建驱动销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
33
  - id: ir_bpin26
34
  extra_tools: []
35
  prompt: |
36
  创建叶片轴:直径 6 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
37
  - id: ir_qpin12
38
  extra_tools: []
39
  prompt: |
40
  创建叶片销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
41
  - id: ir_bpin32
42
  extra_tools: []
43
  prompt: |
44
  创建叶片轴:直径 6 mm、长 32 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
45
  - id: ir_qpin18
46
  extra_tools: []
47
  prompt: |
48
  创建叶片销:直径 6 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
49
  - id: ir_bpin38
50
  extra_tools: []
51
  prompt: |
52
  创建叶片轴:直径 6 mm、长 38 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
53
  - id: ir_qpin24
54
  extra_tools: []
55
  prompt: |
56
  创建叶片销:直径 6 mm、长 24 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
57
  gold_roles:
58
  base: ir_base
59
  center_pin: ir_center
@@ -94,6 +121,16 @@ assembly:
94
  - 叶片分层:blade_1 z∈[20,26];blade_2 z∈[26,32];blade_3 z∈[20,26];blade_4 z∈[26,32];blade_5 z∈[32,38];bpin_k 从 z=0 伸到所在叶片层顶面,qpin_k 从 z=14 伸到所在叶片层顶面。
95
  - 叶片从轴孔出发朝圆心一侧(顺时针方向)伸出,各叶片尖端在三个位姿下离中心约 41、22���11 mm。
96
  - 驱动环转角这 1 个自由度保持自由(整机活动度 1),不要固定。各件互不穿模,装好后保存。
 
 
 
 
 
 
 
 
 
 
97
  motion:
98
  mode: poses
99
  frame: base
 
8
  prompt: |
9
  创建底座:在 front_plane 上画矩形,X 从 -80 到 80 mm,Y 从 -80 到 80 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(60,0) 直径 6 mm,(18.54,57.06) 直径 6 mm,(-48.54,35.27) 直径 6 mm,(-48.54,-35.27) 直径 6 mm,(18.54,-57.06) 直径 6 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the base: on front_plane draw a rectangle with X from -80 to 80 mm and Y from -80 to 80 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm, (60,0) diameter 6 mm, (18.54,57.06) diameter 6 mm, (-48.54,35.27) diameter 6 mm, (-48.54,-35.27) diameter 6 mm, (18.54,-57.06) diameter 6 mm. Do not shell.
14
  - id: ir_center
15
  extra_tools: []
16
  prompt: |
17
  创建中心轴:直径 10 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the center shaft: a cylinder 10 mm in diameter and 14 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: ir_actuator
21
  extra_tools: []
22
  prompt: |
23
  创建驱动环:外径 110 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(45,0) 直径 6 mm,(13.91,42.8) 直径 6 mm,(-36.41,26.45) 直径 6 mm,(-36.41,-26.45) 直径 6 mm,(13.91,-42.8) 直径 6 mm。
24
+ prompt_en: |
25
+ Create the drive ring: a disk with outer diameter 110 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 10 mm. Also cut through holes: (45,0) diameter 6 mm, (13.91,42.8) diameter 6 mm, (-36.41,26.45) diameter 6 mm, (-36.41,-26.45) diameter 6 mm, (13.91,-42.8) diameter 6 mm.
26
  - id: ir_blade
27
  extra_tools: []
28
  prompt: |
29
  创建叶片:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (50,0),向 +Z 拉伸 6 mm。
30
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=25 处直径 6 mm。
31
+ prompt_en: |
32
+ Create the blade: on front_plane draw a bar with rounded ends, 14 mm wide, with the end-arc centers at the origin and at (50,0), and extrude it 6 mm toward +Z.
33
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=25 diameter 6 mm.
34
  - id: ir_conn
35
  extra_tools: []
36
  prompt: |
37
  创建连杆:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (25,0),向 +Z 拉伸 6 mm。
38
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=25 处直径 6 mm。
39
+ prompt_en: |
40
+ Create the link: on front_plane draw a bar with rounded ends, 10 mm wide, with the end-arc centers at the origin and at (25,0), and extrude it 6 mm toward +Z.
41
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=25 diameter 6 mm.
42
  - id: ir_apin
43
  extra_tools: []
44
  prompt: |
45
  创建驱动销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
46
+ prompt_en: |
47
+ Create the drive pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
48
  - id: ir_bpin26
49
  extra_tools: []
50
  prompt: |
51
  创建叶片轴:直径 6 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
52
+ prompt_en: |
53
+ Create the blade pivot: a cylinder 6 mm in diameter and 26 mm long, axis along Z, extruded from Z=0 toward +Z.
54
  - id: ir_qpin12
55
  extra_tools: []
56
  prompt: |
57
  创建叶片销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
58
+ prompt_en: |
59
+ Create the blade pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
60
  - id: ir_bpin32
61
  extra_tools: []
62
  prompt: |
63
  创建叶片轴:直径 6 mm、长 32 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
64
+ prompt_en: |
65
+ Create the blade pivot: a cylinder 6 mm in diameter and 32 mm long, axis along Z, extruded from Z=0 toward +Z.
66
  - id: ir_qpin18
67
  extra_tools: []
68
  prompt: |
69
  创建叶片销:直径 6 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
70
+ prompt_en: |
71
+ Create the blade pin: a cylinder 6 mm in diameter and 18 mm long, axis along Z, extruded from Z=0 toward +Z.
72
  - id: ir_bpin38
73
  extra_tools: []
74
  prompt: |
75
  创建叶片轴:直径 6 mm、长 38 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
76
+ prompt_en: |
77
+ Create the blade pivot: a cylinder 6 mm in diameter and 38 mm long, axis along Z, extruded from Z=0 toward +Z.
78
  - id: ir_qpin24
79
  extra_tools: []
80
  prompt: |
81
  创建叶片销:直径 6 mm、长 24 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
82
+ prompt_en: |
83
+ Create the blade pin: a cylinder 6 mm in diameter and 24 mm long, axis along Z, extruded from Z=0 toward +Z.
84
  gold_roles:
85
  base: ir_base
86
  center_pin: ir_center
 
121
  - 叶片分层:blade_1 z∈[20,26];blade_2 z∈[26,32];blade_3 z∈[20,26];blade_4 z∈[26,32];blade_5 z∈[32,38];bpin_k 从 z=0 伸到所在叶片层顶面,qpin_k 从 z=14 伸到所在叶片层顶面。
122
  - 叶片从轴孔出发朝圆心一侧(顺时针方向)伸出,各叶片尖端在三个位姿下离中心约 41、22���11 mm。
123
  - 驱动环转角这 1 个自由度保持自由(整机活动度 1),不要固定。各件互不穿模,装好后保存。
124
+ prompt_en: |
125
+ Assemble a five-blade mechanical iris: rotating the drive ring actuates five "drive pin—link—blade" four-bars at once, and the blade tips close toward or open away from the center. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
126
+ - base is fixed, z∈[0,8]: center hole (0,0) of diameter 10; five blade pivot holes on a circle of radius 60, the k-th in direction 72·(k−1)° (k=1 on +X), diameter 6.
127
+ - center_pin is fixed in the center hole (z∈[0,14]); the center hole of actuator (drive ring) fits on center_pin and rotates (z∈[8,14]);
128
+ actuator has five 6 mm holes on a circle of radius 45, the k-th in local direction 72·(k−1)°.
129
+ - Set k (k=1..5): bpin_k is fixed in the k-th blade pivot hole, and the origin hole of blade_k fits on bpin_k and rotates; apin_k is fixed in the k-th hole of actuator (z∈[8,20]),
130
+ and the origin hole of conn_k fits on apin_k and rotates (z∈[14,20]); qpin_k is fixed in the X=25 hole of blade_k, and the other hole of conn_k fits on qpin_k.
131
+ - Blade layers: blade_1 z∈[20,26]; blade_2 z∈[26,32]; blade_3 z∈[20,26]; blade_4 z∈[26,32]; blade_5 z∈[32,38]; bpin_k extends from z=0 to the top face of its blade layer, and qpin_k from z=14 to the top face of its blade layer.
132
+ - Each blade extends from its pivot hole toward the center (clockwise), and in the three poses the blade tips are about 41, 22 and 11 mm from the center.
133
+ - Keep the 1 degree of freedom of the drive-ring rotation free (mobility 1 for the whole iris); do not fix it. No parts may interfere. Save when assembled.
134
  motion:
135
  mode: poses
136
  frame: base
assembly/cases/offset_slider_crank.yaml CHANGED
@@ -8,29 +8,45 @@ parts:
8
  prompt: |
9
  创建机架板:在 front_plane 上画矩形,X 从 -30 到 110 mm,Y 从 -30 到 40 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm。不要抽壳。
 
 
 
11
  - id: os_shaft
12
  extra_tools: []
13
  prompt: |
14
  创建曲柄轴:直径 10 mm、长 24 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: os_crank
16
  extra_tools: []
17
  prompt: |
18
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (15,0),向 +Z 拉伸 6 mm。
19
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=15 处直径 6 mm。
 
 
 
20
  - id: os_pin12
21
  extra_tools: []
22
  prompt: |
23
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
24
  - id: os_rod
25
  extra_tools: []
26
  prompt: |
27
  创建连杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (60,0),向 +Z 拉伸 6 mm。
28
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=60 处直径 6 mm。
 
 
 
29
  - id: os_slider
30
  extra_tools: []
31
  prompt: |
32
  创建滑块:在 front_plane 上画矩形,X 从 -12 到 12 mm,Y 从 -8 到 8 mm,向 +Z 拉伸 6 mm。
33
  开贯穿孔:(0,0) 直径 6 mm。不要抽壳。
 
 
 
34
  gold_roles:
35
  frame: os_frame
36
  shaft: os_shaft
@@ -49,6 +65,15 @@ assembly:
49
  - slider 只能沿 frame 的 X 方向移动,导路偏置:slider 孔心始终在 y=+10 的直线上,位于曲柄轴 +X 侧。
50
  - 曲柄 15、连杆 60、偏距 10,曲柄转一圈滑块行程约 30.46 mm。
51
  对 shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
52
  motion:
53
  driver: shaft
54
  sweep_deg: 360
 
8
  prompt: |
9
  创建机架板:在 front_plane 上画矩形,X 从 -30 到 110 mm,Y 从 -30 到 40 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the frame plate: on front_plane draw a rectangle with X from -30 to 110 mm and Y from -30 to 40 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm. Do not shell.
14
  - id: os_shaft
15
  extra_tools: []
16
  prompt: |
17
  创建曲柄轴:直径 10 mm、长 24 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the crank shaft: a cylinder 10 mm in diameter and 24 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: os_crank
21
  extra_tools: []
22
  prompt: |
23
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (15,0),向 +Z 拉伸 6 mm。
24
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=15 处直径 6 mm。
25
+ prompt_en: |
26
+ Create the crank: on front_plane draw a bar with rounded ends, 16 mm wide, with the end-arc centers at the origin and at (15,0), and extrude it 6 mm toward +Z.
27
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=15 diameter 6 mm.
28
  - id: os_pin12
29
  extra_tools: []
30
  prompt: |
31
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
32
+ prompt_en: |
33
+ Create the hinge pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
34
  - id: os_rod
35
  extra_tools: []
36
  prompt: |
37
  创建连杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (60,0),向 +Z 拉伸 6 mm。
38
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=60 处直径 6 mm。
39
+ prompt_en: |
40
+ Create the link: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (60,0), and extrude it 6 mm toward +Z.
41
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=60 diameter 6 mm.
42
  - id: os_slider
43
  extra_tools: []
44
  prompt: |
45
  创建滑块:在 front_plane 上画矩形,X 从 -12 到 12 mm,Y 从 -8 到 8 mm,向 +Z 拉伸 6 mm。
46
  开贯穿孔:(0,0) 直径 6 mm。不要抽壳。
47
+ prompt_en: |
48
+ Create the slider: on front_plane draw a rectangle with X from -12 to 12 mm and Y from -8 to 8 mm, and extrude it 6 mm toward +Z.
49
+ Cut through holes: (0,0) diameter 6 mm. Do not shell.
50
  gold_roles:
51
  frame: os_frame
52
  shaft: os_shaft
 
65
  - slider 只能沿 frame 的 X 方向移动,导路偏置:slider 孔心始终在 y=+10 的直线上,位于曲柄轴 +X 侧。
66
  - 曲柄 15、连杆 60、偏距 10,曲柄转一圈滑块行程约 30.46 mm。
67
  对 shaft 做 check_motion(一整圈),确认无穿模后再保存。
68
+ prompt_en: |
69
+ Assemble an offset slider-crank mechanism. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
70
+ - frame is fixed, z∈[0,8], crank bearing hole at the origin.
71
+ - shaft passes through the bearing hole and rotates about Z (z∈[-10,14]); the 10 mm hole of crank is fixed on shaft (z∈[8,14]).
72
+ - crank_pin is fixed in the 6 mm hole of crank (z∈[8,20]); one end of rod fits on crank_pin and rotates (z∈[14,20]).
73
+ - wrist_pin is fixed in the hole at the other end of rod (z∈[14,26]); the hole of slider fits on wrist_pin and rotates (z∈[20,26]).
74
+ - slider can only move along the X direction of frame with an offset guide: the hole center of slider always stays on the line y=+10, on the +X side of the crank shaft.
75
+ - Crank 15, connecting rod 60, offset 10; for one crank revolution the slider stroke is about 30.46 mm.
76
+ Run check_motion on shaft (one full turn), confirm there is no interference, then save.
77
  motion:
78
  driver: shaft
79
  sweep_deg: 360
assembly/cases/oldham_coupling.yaml CHANGED
@@ -8,45 +8,67 @@ parts:
8
  prompt: |
9
  创建底板:在 front_plane 上画矩形,X 从 -80 到 60 mm,Y 从 -80 到 50 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(0,-48) 直径 10 mm,(-50,0) 直径 10 mm。不要抽壳。
 
 
 
11
  - id: od_shaft
12
  extra_tools: []
13
  prompt: |
14
  创建轴:直径 10 mm、长 22 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: od_gear
16
  extra_tools:
17
  - spur_gear
18
  prompt: |
19
  创建渐开线直齿轮,模数 2 mm,齿数 36,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
20
  - id: od_pinion
21
  extra_tools:
22
  - spur_gear
23
  prompt: |
24
  创建渐开线直齿轮,模数 2 mm,齿数 12,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
25
  - id: od_handwheel
26
  extra_tools: []
27
  prompt: |
28
  创建手轮:外径 44 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(14,0) 直径 6 mm。
 
 
29
  - id: od_hub
30
  extra_tools: []
31
  prompt: |
32
  创建半联轴器:外径 50 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(16,0) 直径 6 mm,(-16,0) 直径 6 mm。
 
 
33
  - id: od_middle
34
  extra_tools: []
35
  prompt: |
36
  创建十字滑块:外径 40 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 12 mm。另开贯穿孔:(0,14) 直径 4 mm,(0,-14) 直径 4 mm,(14,0) 直径 4 mm,(-14,0) 直径 4 mm。
 
 
37
  - id: od_out_shaft
38
  extra_tools: []
39
  prompt: |
40
  创建输出轴:直径 10 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
41
  - id: od_bracket
42
  extra_tools: []
43
  prompt: |
44
  创建轴承架:在 front_plane 上画矩形,X 从 -60 到 24 mm,Y 从 -12 到 12 mm,向 +Z 拉伸 6 mm。
45
  开贯穿孔:(-50,0) 直径 10 mm,(12,0) 直径 10 mm。不要抽壳。
 
 
 
46
  - id: od_standoff
47
  extra_tools: []
48
  prompt: |
49
  创建支柱:直径 10 mm、长 32 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
50
  gold_roles:
51
  frame: od_frame
52
  input_shaft: od_shaft
@@ -73,6 +95,18 @@ assembly:
73
  两者转角相同);同时只能相对 hub_out 沿 hub_out 局部 Y 方向滑动(middle 中心始终在 hub_out 局部 Y 轴上)。
74
  - 两轴转角始终相等;输入轴转一圈,middle 中心在 X、Y 方向各走 12 mm。各齿轮互不穿模,啮合齿相位要对上。
75
  对 input_shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
 
 
 
76
  motion:
77
  driver: input_shaft
78
  sweep_deg: 360
 
8
  prompt: |
9
  创建底板:在 front_plane 上画矩形,X 从 -80 到 60 mm,Y 从 -80 到 50 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(0,-48) 直径 10 mm,(-50,0) 直径 10 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the bottom plate: on front_plane draw a rectangle with X from -80 to 60 mm and Y from -80 to 50 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm, (0,-48) diameter 10 mm, (-50,0) diameter 10 mm. Do not shell.
14
  - id: od_shaft
15
  extra_tools: []
16
  prompt: |
17
  创建轴:直径 10 mm、长 22 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the shaft: a cylinder 10 mm in diameter and 22 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: od_gear
21
  extra_tools:
22
  - spur_gear
23
  prompt: |
24
  创建渐开线直齿轮,模数 2 mm,齿数 36,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
25
+ prompt_en: |
26
+ Create an involute spur gear: module 2 mm, 36 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
27
  - id: od_pinion
28
  extra_tools:
29
  - spur_gear
30
  prompt: |
31
  创建渐开线直齿轮,模数 2 mm,齿数 12,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
32
+ prompt_en: |
33
+ Create an involute spur gear: module 2 mm, 12 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
34
  - id: od_handwheel
35
  extra_tools: []
36
  prompt: |
37
  创建手轮:外径 44 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(14,0) 直径 6 mm。
38
+ prompt_en: |
39
+ Create the handwheel: a disk with outer diameter 44 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 10 mm. Also cut through holes: (14,0) diameter 6 mm.
40
  - id: od_hub
41
  extra_tools: []
42
  prompt: |
43
  创建半联轴器:外径 50 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(16,0) 直径 6 mm,(-16,0) 直径 6 mm。
44
+ prompt_en: |
45
+ Create the coupling hub: a disk with outer diameter 50 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 10 mm. Also cut through holes: (16,0) diameter 6 mm, (-16,0) diameter 6 mm.
46
  - id: od_middle
47
  extra_tools: []
48
  prompt: |
49
  创建十字滑块:外径 40 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 12 mm。另开贯穿孔:(0,14) 直径 4 mm,(0,-14) 直径 4 mm,(14,0) 直径 4 mm,(-14,0) 直径 4 mm。
50
+ prompt_en: |
51
+ Create the cross slider: a disk with outer diameter 40 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 12 mm. Also cut through holes: (0,14) diameter 4 mm, (0,-14) diameter 4 mm, (14,0) diameter 4 mm, (-14,0) diameter 4 mm.
52
  - id: od_out_shaft
53
  extra_tools: []
54
  prompt: |
55
  创建输出轴:直径 10 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
56
+ prompt_en: |
57
+ Create the output shaft: a cylinder 10 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
58
  - id: od_bracket
59
  extra_tools: []
60
  prompt: |
61
  创建轴承架:在 front_plane 上画矩形,X 从 -60 到 24 mm,Y 从 -12 到 12 mm,向 +Z 拉伸 6 mm。
62
  开贯穿孔:(-50,0) 直径 10 mm,(12,0) 直径 10 mm。不要抽壳。
63
+ prompt_en: |
64
+ Create the bearing bracket: on front_plane draw a rectangle with X from -60 to 24 mm and Y from -12 to 12 mm, and extrude it 6 mm toward +Z.
65
+ Cut through holes: (-50,0) diameter 10 mm, (12,0) diameter 10 mm. Do not shell.
66
  - id: od_standoff
67
  extra_tools: []
68
  prompt: |
69
  创建支柱:直径 10 mm、长 32 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
70
+ prompt_en: |
71
+ Create the standoff: a cylinder 10 mm in diameter and 32 mm long, axis along Z, extruded from Z=0 toward +Z.
72
  gold_roles:
73
  frame: od_frame
74
  input_shaft: od_shaft
 
95
  两者转角相同);同时只能相对 hub_out 沿 hub_out 局部 Y 方向滑动(middle 中心始终在 hub_out 局部 Y 轴上)。
96
  - 两轴转角始终相等;输入轴转一圈,middle 中心在 X、Y 方向各走 12 mm。各齿轮互不穿模,啮合齿相位要对上。
97
  对 input_shaft 做 check_motion(一整圈),确认无穿模后再保存。
98
+ prompt_en: |
99
+ Assemble an Oldham coupling: the input and output shafts are parallel but offset by 12 mm, the middle disk slides in two perpendicular directions, and the two shafts turn at equal speed in the same direction. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
100
+ - frame is fixed, z∈[0,8]. Input shaft hole (0,0), motor shaft hole (0,-48), standoff hole (-50,0), all of diameter 10.
101
+ - input_shaft passes through the (0,0) hole and rotates about Z (z∈[-8,14]); the 36-tooth input_gear is fixed on it (z∈[-8,0]), and the center hole of hub_in is fixed on it (z∈[8,14]).
102
+ - motor_shaft passes through the (0,-48) hole and rotates about Z (z∈[-14,8]); the 12-tooth pinion (z∈[-8,0]) and the center hole of handwheel (z∈[-14,-8]) are fixed on it,
103
+ and pinion meshes externally with input_gear (module 2, center distance 48).
104
+ - standoff is fixed in the (-50,0) hole (z∈[0,32]); the (-50,0) hole of bracket is fixed on standoff (z∈[26,32]), with its long side along the X direction of frame.
105
+ - out_shaft passes through the (12,0) hole of bracket and rotates about Z (z∈[20,32]); the center hole of hub_out is fixed on out_shaft (z∈[20,26]).
106
+ - middle (z∈[14,20]): lies against the top face of hub_in and can only slide relative to hub_in along the local X direction of hub_in (the center of middle always stays on the local X axis of hub_in,
107
+ and both have the same rotation angle); at the same time it can only slide relative to hub_out along the local Y direction of hub_out (the center of middle always stays on the local Y axis of hub_out).
108
+ - The two shafts always have equal rotation angles; for one input revolution the center of middle travels 12 mm in both X and Y. Gears must not interfere, and meshing teeth must be phased correctly.
109
+ Run check_motion on input_shaft (one full turn), confirm there is no interference, then save.
110
  motion:
111
  driver: input_shaft
112
  sweep_deg: 360
assembly/cases/orrery.yaml CHANGED
@@ -8,73 +8,108 @@ parts:
8
  prompt: |
9
  创建底座:在 front_plane 上画矩形,X 从 -100 到 100 mm,Y 从 -100 到 100 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(-48,0) 直径 10 mm。不要抽壳。
 
 
 
11
  - id: or_arm_shaft
12
  extra_tools: []
13
  prompt: |
14
  创建主轴:直径 10 mm、长 30 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: or_arm_gear
16
  extra_tools:
17
  - spur_gear
18
  prompt: |
19
  创建渐开线直齿轮,模数 2 mm,齿数 36,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
20
  - id: or_motor_shaft
21
  extra_tools: []
22
  prompt: |
23
  创建电机轴:直径 10 mm、长 22 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
24
  - id: or_pinion
25
  extra_tools:
26
  - spur_gear
27
  prompt: |
28
  创建渐开线直齿轮,模数 2 mm,齿数 12,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
29
  - id: or_handwheel
30
  extra_tools: []
31
  prompt: |
32
  创建手轮:外径 40 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(12,0) 直径 6 mm。
 
 
33
  - id: or_sun
34
  extra_tools:
35
  - spur_gear
36
  prompt: |
37
  创建渐开线直齿轮,模数 2 mm,齿数 24,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
38
  - id: or_arm
39
  extra_tools: []
40
  prompt: |
41
  创建行星臂:在 front_plane 上画两端圆头的长条,宽 18 mm,两端半圆的圆心分别在原点和 (64,0),向 +Z 拉伸 6 mm。
42
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=36 处直径 8 mm,X=64 处直径 8 mm。
 
 
 
43
  - id: or_idler_axle
44
  extra_tools: []
45
  prompt: |
46
  创建惰轮轴:直径 8 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
47
  - id: or_idler
48
  extra_tools:
49
  - spur_gear
50
  prompt: |
51
  创建渐开线直齿轮,模数 2 mm,齿数 12,压力角 30°,齿宽 8 mm,轴孔直径 8 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
52
  - id: or_earth_axle
53
  extra_tools: []
54
  prompt: |
55
  创建地球轴:直径 8 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
56
  - id: or_earth_gear
57
  extra_tools:
58
  - spur_gear
59
  prompt: |
60
  创建渐开线直齿轮,模数 2 mm,齿数 16,压力角 30°,齿宽 8 mm,轴孔直径 8 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
61
  - id: or_earth
62
  extra_tools: []
63
  prompt: |
64
  创建地球:外径 30 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 8 mm。另开贯穿孔:(9,0) 直径 4 mm,(-9,0) 直径 4 mm。
 
 
65
  - id: or_moon_arm
66
  extra_tools: []
67
  prompt: |
68
  创建月球臂:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (30,0),向 +Z 拉伸 6 mm。
69
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=30 处直径 6 mm。
 
 
 
70
  - id: or_moon_pin
71
  extra_tools: []
72
  prompt: |
73
  创建月球销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
74
  - id: or_moon
75
  extra_tools: []
76
  prompt: |
77
  创建月球:外径 14 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 6 mm。
 
 
78
  gold_roles:
79
  frame: or_frame
80
  arm_shaft: or_arm_shaft
@@ -105,6 +140,18 @@ assembly:
105
  - moon_pin 固定在 moon_arm 的 6 mm 孔里(z∈[28,40]);moon 的孔固定在 moon_pin 上(z∈[34,40])。全部齿轮模数 2。
106
  - 电机转 3 圈行星臂反向转 1 圈;地球绝对转速是行星臂的 1/2、反向(与电机同向)。各齿轮互不穿模,啮合齿相位要对上。
107
  对 motor_shaft 做 check_motion(电机转 3 圈,行星臂正好转一周),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
 
 
 
108
  motion:
109
  driver: motor_shaft
110
  sweep_deg: 1080
 
8
  prompt: |
9
  创建底座:在 front_plane 上画矩形,X 从 -100 到 100 mm,Y 从 -100 到 100 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(-48,0) 直径 10 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the base: on front_plane draw a rectangle with X from -100 to 100 mm and Y from -100 to 100 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm, (-48,0) diameter 10 mm. Do not shell.
14
  - id: or_arm_shaft
15
  extra_tools: []
16
  prompt: |
17
  创建主轴:直径 10 mm、长 30 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the main shaft: a cylinder 10 mm in diameter and 30 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: or_arm_gear
21
  extra_tools:
22
  - spur_gear
23
  prompt: |
24
  创建渐开线直齿轮,模数 2 mm,齿数 36,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
25
+ prompt_en: |
26
+ Create an involute spur gear: module 2 mm, 36 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
27
  - id: or_motor_shaft
28
  extra_tools: []
29
  prompt: |
30
  创建电机轴:直径 10 mm、长 22 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
31
+ prompt_en: |
32
+ Create the motor shaft: a cylinder 10 mm in diameter and 22 mm long, axis along Z, extruded from Z=0 toward +Z.
33
  - id: or_pinion
34
  extra_tools:
35
  - spur_gear
36
  prompt: |
37
  创建渐开线直齿轮,模数 2 mm,齿数 12,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
38
+ prompt_en: |
39
+ Create an involute spur gear: module 2 mm, 12 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
40
  - id: or_handwheel
41
  extra_tools: []
42
  prompt: |
43
  创建手轮:外径 40 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(12,0) 直径 6 mm。
44
+ prompt_en: |
45
+ Create the handwheel: a disk with outer diameter 40 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 10 mm. Also cut through holes: (12,0) diameter 6 mm.
46
  - id: or_sun
47
  extra_tools:
48
  - spur_gear
49
  prompt: |
50
  创建渐开线直齿轮,模数 2 mm,齿数 24,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
51
+ prompt_en: |
52
+ Create an involute spur gear: module 2 mm, 24 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
53
  - id: or_arm
54
  extra_tools: []
55
  prompt: |
56
  创建行星臂:在 front_plane 上画两端圆头的长条,宽 18 mm,两端半圆的圆心分别在原点和 (64,0),向 +Z 拉伸 6 mm。
57
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=36 处直径 8 mm,X=64 处直径 8 mm。
58
+ prompt_en: |
59
+ Create the planet arm: on front_plane draw a bar with rounded ends, 18 mm wide, with the end-arc centers at the origin and at (64,0), and extrude it 6 mm toward +Z.
60
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=36 diameter 8 mm, at X=64 diameter 8 mm.
61
  - id: or_idler_axle
62
  extra_tools: []
63
  prompt: |
64
  创建惰轮轴:直径 8 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
65
+ prompt_en: |
66
+ Create the idler axle: a cylinder 8 mm in diameter and 14 mm long, axis along Z, extruded from Z=0 toward +Z.
67
  - id: or_idler
68
  extra_tools:
69
  - spur_gear
70
  prompt: |
71
  创建渐开线直齿轮,模数 2 mm,齿数 12,压力角 30°,齿宽 8 mm,轴孔直径 8 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
72
+ prompt_en: |
73
+ Create an involute spur gear: module 2 mm, 12 teeth, pressure angle 30°, face width 8 mm, bore diameter 8 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
74
  - id: or_earth_axle
75
  extra_tools: []
76
  prompt: |
77
  创建地球轴:直径 8 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
78
+ prompt_en: |
79
+ Create the earth axle: a cylinder 8 mm in diameter and 26 mm long, axis along Z, extruded from Z=0 toward +Z.
80
  - id: or_earth_gear
81
  extra_tools:
82
  - spur_gear
83
  prompt: |
84
  创建渐开线直齿轮,模数 2 mm,齿数 16,压力角 30°,齿宽 8 mm,轴孔直径 8 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
85
+ prompt_en: |
86
+ Create an involute spur gear: module 2 mm, 16 teeth, pressure angle 30°, face width 8 mm, bore diameter 8 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
87
  - id: or_earth
88
  extra_tools: []
89
  prompt: |
90
  创建地球:外径 30 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 8 mm。另开贯穿孔:(9,0) 直径 4 mm,(-9,0) 直径 4 mm。
91
+ prompt_en: |
92
+ Create the earth: a disk with outer diameter 30 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 8 mm. Also cut through holes: (9,0) diameter 4 mm, (-9,0) diameter 4 mm.
93
  - id: or_moon_arm
94
  extra_tools: []
95
  prompt: |
96
  创建月球臂:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (30,0),向 +Z 拉伸 6 mm。
97
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=30 处直径 6 mm。
98
+ prompt_en: |
99
+ Create the moon arm: on front_plane draw a bar with rounded ends, 10 mm wide, with the end-arc centers at the origin and at (30,0), and extrude it 6 mm toward +Z.
100
+ Cut through holes on the X axis: at X=0 diameter 8 mm, at X=30 diameter 6 mm.
101
  - id: or_moon_pin
102
  extra_tools: []
103
  prompt: |
104
  创建月球销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
105
+ prompt_en: |
106
+ Create the moon pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
107
  - id: or_moon
108
  extra_tools: []
109
  prompt: |
110
  创建月球:外径 14 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 6 mm。
111
+ prompt_en: |
112
+ Create the moon: a disk with outer diameter 14 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 6 mm.
113
  gold_roles:
114
  frame: or_frame
115
  arm_shaft: or_arm_shaft
 
140
  - moon_pin 固定在 moon_arm 的 6 mm 孔里(z∈[28,40]);moon 的孔固定在 moon_pin 上(z∈[34,40])。全部齿轮模数 2。
141
  - 电机转 3 圈行星臂反向转 1 圈;地球绝对转速是行星臂的 1/2、反向(与电机同向)。各齿轮互不穿模,啮合齿相位要对上。
142
  对 motor_shaft 做 check_motion(电机转 3 圈,行星臂正好转一周),确认无穿模后再保存。
143
+ prompt_en: |
144
+ Assemble an orrery (earth—moon): the sun gear is fixed and the motor drives the planet arm around it through gears; the idler on the arm transfers the relative rotation of the sun gear to the earth gear,
145
+ and the earth carries the moon arm with it. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
146
+ - frame is fixed, z∈[0,8]. Center hole (0,0) and motor shaft hole (-48,0), diameter 10. The 24-tooth sun is fixed on frame, coaxial with the center hole (z∈[8,16]).
147
+ - arm_shaft passes through the center hole (and the hole of sun) and rotates about Z (z∈[-8,22]); the 36-tooth arm_gear is fixed on it (z∈[-8,0]), and the origin hole of arm (three holes: 0, 36, 64) is fixed on it (z∈[16,22]).
148
+ - motor_shaft passes through the motor shaft hole and rotates about Z (z∈[-14,8]); the 12-tooth pinion (z∈[-8,0]) and the center hole of handwheel (z∈[-14,-8]) are fixed on it, and pinion meshes externally with arm_gear.
149
+ - idler_axle is fixed in the X=36 hole of arm (z∈[8,22]); the 12-tooth idler fits on idler_axle and rotates (z∈[8,16]), meshing externally with sun.
150
+ - earth_axle is inserted in the X=64 hole of arm and rotates about Z (z∈[8,34]); the 16-tooth earth_gear (z∈[8,16]) is fixed on it and meshes externally with idler;
151
+ the 8 mm hole of earth (z∈[22,28]) and the 8 mm hole of moon_arm (z∈[28,34]) are also fixed on earth_axle.
152
+ - moon_pin is fixed in the 6 mm hole of moon_arm (z∈[28,40]); the hole of moon is fixed on moon_pin (z∈[34,40]). All gears have module 2.
153
+ - For 3 motor revolutions the planet arm turns 1 revolution in the opposite direction; the absolute speed of the earth is 1/2 of the planet-arm speed, in the opposite direction (the same direction as the motor). Gears must not interfere, and meshing teeth must be phased correctly.
154
+ Run check_motion on motor_shaft (3 motor revolutions, exactly one revolution of the planet arm), confirm there is no interference, then save.
155
  motion:
156
  driver: motor_shaft
157
  sweep_deg: 1080
assembly/cases/oscillating_fan.yaml CHANGED
@@ -8,55 +8,83 @@ parts:
8
  prompt: |
9
  创建底座板:在 front_plane 上画矩形,X 从 -90 到 150 mm,Y 从 -90 到 70 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(-48,0) 直径 10 mm,(-48,-48) 直径 10 mm,(80,0) 直径 10 mm。不要抽壳。
 
 
 
11
  - id: of_crank_shaft
12
  extra_tools: []
13
  prompt: |
14
  创建曲柄轴:直径 10 mm、长 30 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: of_mid_shaft
16
  extra_tools: []
17
  prompt: |
18
  创建中间轴:直径 10 mm、长 24 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
19
  - id: of_motor_shaft
20
  extra_tools: []
21
  prompt: |
22
  创建电机轴:直径 10 mm、长 16 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
23
  - id: of_gear
24
  extra_tools:
25
  - spur_gear
26
  prompt: |
27
  创建渐开线直齿轮,模数 2 mm,齿数 36,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
28
  - id: of_pinion
29
  extra_tools:
30
  - spur_gear
31
  prompt: |
32
  创建渐开线直齿轮,模数 2 mm,齿数 12,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
33
  - id: of_crank
34
  extra_tools: []
35
  prompt: |
36
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 20 mm,两端半圆的圆心分别在原点和 (20,0),向 +Z 拉伸 6 mm。
37
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=20 处直径 8 mm。
 
 
 
38
  - id: of_pin8
39
  extra_tools: []
40
  prompt: |
41
  创建铰销:直径 8 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
42
  - id: of_coupler
43
  extra_tools: []
44
  prompt: |
45
  创建连杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (70,0),向 +Z 拉伸 6 mm。
46
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=70 处直径 8 mm。
 
 
 
47
  - id: of_rocker
48
  extra_tools: []
49
  prompt: |
50
  创建摇杆:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (40,0),向 +Z 拉伸 6 mm。
51
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=40 处直径 8 mm。
 
 
 
52
  - id: of_pivot
53
  extra_tools: []
54
  prompt: |
55
  创建摇头轴:直径 10 mm、长 32 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
56
  - id: of_head
57
  extra_tools: []
58
  prompt: |
59
  创建扇罩:外径 120 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(40,0) 直径 8 mm,(20,34.64) 直径 8 mm,(-20,34.64) 直径 8 mm,(-40,0) 直径 8 mm,(-20,-34.64) 直径 8 mm,(20,-34.64) 直径 8 mm。
 
 
60
  gold_roles:
61
  frame: of_frame
62
  crank_shaft: of_crank_shaft
@@ -87,6 +115,19 @@ assembly:
87
  - rocker_pin 固定在 rocker 的 8 mm 孔里(z∈[14,26]),coupler 的另一孔套在 rocker_pin 上。rocker_pin 在摇头轴上方一侧(左转支)。
88
  - 曲柄 20、连杆 70、摇杆 40、机架 80。曲柄一整圈扇头摆角约 60.1°。各齿轮互不穿模,啮合齿相位要对上。
89
  对 crank_shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  motion:
91
  driver: crank_shaft
92
  sweep_deg: 360
 
8
  prompt: |
9
  创建底座板:在 front_plane 上画矩形,X 从 -90 到 150 mm,Y 从 -90 到 70 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(-48,0) 直径 10 mm,(-48,-48) 直径 10 mm,(80,0) 直径 10 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the base plate: on front_plane draw a rectangle with X from -90 to 150 mm and Y from -90 to 70 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm, (-48,0) diameter 10 mm, (-48,-48) diameter 10 mm, (80,0) diameter 10 mm. Do not shell.
14
  - id: of_crank_shaft
15
  extra_tools: []
16
  prompt: |
17
  创建曲柄轴:直径 10 mm、长 30 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the crank shaft: a cylinder 10 mm in diameter and 30 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: of_mid_shaft
21
  extra_tools: []
22
  prompt: |
23
  创建中间轴:直径 10 mm、长 24 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
24
+ prompt_en: |
25
+ Create the intermediate shaft: a cylinder 10 mm in diameter and 24 mm long, axis along Z, extruded from Z=0 toward +Z.
26
  - id: of_motor_shaft
27
  extra_tools: []
28
  prompt: |
29
  创建电机轴:直径 10 mm、长 16 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
30
+ prompt_en: |
31
+ Create the motor shaft: a cylinder 10 mm in diameter and 16 mm long, axis along Z, extruded from Z=0 toward +Z.
32
  - id: of_gear
33
  extra_tools:
34
  - spur_gear
35
  prompt: |
36
  创建渐开线直齿轮,模数 2 mm,齿数 36,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
37
+ prompt_en: |
38
+ Create an involute spur gear: module 2 mm, 36 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
39
  - id: of_pinion
40
  extra_tools:
41
  - spur_gear
42
  prompt: |
43
  创建渐开线直齿轮,模数 2 mm,齿数 12,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
44
+ prompt_en: |
45
+ Create an involute spur gear: module 2 mm, 12 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
46
  - id: of_crank
47
  extra_tools: []
48
  prompt: |
49
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 20 mm,两端半圆的圆心分别在原点和 (20,0),向 +Z 拉伸 6 mm。
50
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=20 处直径 8 mm。
51
+ prompt_en: |
52
+ Create the crank: on front_plane draw a bar with rounded ends, 20 mm wide, with the end-arc centers at the origin and at (20,0), and extrude it 6 mm toward +Z.
53
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=20 diameter 8 mm.
54
  - id: of_pin8
55
  extra_tools: []
56
  prompt: |
57
  创建铰销:直径 8 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
58
+ prompt_en: |
59
+ Create the hinge pin: a cylinder 8 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
60
  - id: of_coupler
61
  extra_tools: []
62
  prompt: |
63
  创建连杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (70,0),向 +Z 拉伸 6 mm。
64
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=70 处直径 8 mm。
65
+ prompt_en: |
66
+ Create the link: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (70,0), and extrude it 6 mm toward +Z.
67
+ Cut through holes on the X axis: at X=0 diameter 8 mm, at X=70 diameter 8 mm.
68
  - id: of_rocker
69
  extra_tools: []
70
  prompt: |
71
  创建摇杆:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (40,0),向 +Z 拉伸 6 mm。
72
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=40 处直径 8 mm。
73
+ prompt_en: |
74
+ Create the rocker: on front_plane draw a bar with rounded ends, 16 mm wide, with the end-arc centers at the origin and at (40,0), and extrude it 6 mm toward +Z.
75
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=40 diameter 8 mm.
76
  - id: of_pivot
77
  extra_tools: []
78
  prompt: |
79
  创建摇头轴:直径 10 mm、长 32 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
80
+ prompt_en: |
81
+ Create the oscillation pivot: a cylinder 10 mm in diameter and 32 mm long, axis along Z, extruded from Z=0 toward +Z.
82
  - id: of_head
83
  extra_tools: []
84
  prompt: |
85
  创建扇罩:外径 120 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(40,0) 直径 8 mm,(20,34.64) 直径 8 mm,(-20,34.64) 直径 8 mm,(-40,0) 直径 8 mm,(-20,-34.64) 直径 8 mm,(20,-34.64) 直径 8 mm。
86
+ prompt_en: |
87
+ Create the fan head: a disk with outer diameter 120 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 10 mm. Also cut through holes: (40,0) diameter 8 mm, (20,34.64) diameter 8 mm, (-20,34.64) diameter 8 mm, (-40,0) diameter 8 mm, (-20,-34.64) diameter 8 mm, (20,-34.64) diameter 8 mm.
88
  gold_roles:
89
  frame: of_frame
90
  crank_shaft: of_crank_shaft
 
115
  - rocker_pin 固定在 rocker 的 8 mm 孔里(z∈[14,26]),coupler 的另一孔套在 rocker_pin 上。rocker_pin 在摇头轴上方一侧(左转支)。
116
  - 曲柄 20、连杆 70、摇杆 40、机架 80。曲柄一整圈扇头摆角约 60.1°。各齿轮互不穿模,啮合齿相位要对上。
117
  对 crank_shaft 做 check_motion(一整圈),确认无穿模后再保存。
118
+ prompt_en: |
119
+ Assemble the oscillation mechanism of an oscillating fan: the motor drives the crank through a two-stage 12/36 gear reduction (overall ratio 9), and crank—coupler—rocker makes the fan head swing back and forth. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
120
+ - frame is fixed, z∈[0,8]. Crank shaft hole (0,0), intermediate shaft hole (-48,0), motor shaft hole (-48,-48), oscillation pivot hole (80,0), all of diameter 10.
121
+ - motor_shaft passes through the motor shaft hole and rotates about Z (z∈[-8,8]); the 12-tooth motor_pinion is fixed on it (z∈[-8,0]).
122
+ - mid_shaft passes through the intermediate shaft hole and rotates about Z (z∈[-16,8]); the 36-tooth mid_gear (z∈[-8,0]) and the 12-tooth mid_pinion (z∈[-16,-8]) are fixed on it;
123
+ motor_pinion meshes externally with mid_gear (module 2, center distance 48).
124
+ - crank_shaft passes through the crank shaft hole and rotates about Z (z∈[-16,14]); the 36-tooth crank_gear (z∈[-16,-8]) is fixed on it and meshes externally with mid_pinion (center distance 48);
125
+ the 10 mm hole of crank is fixed on it (z∈[8,14]). crank_pin is fixed in the 8 mm hole of crank (z∈[8,20]).
126
+ - The origin hole of coupler fits on crank_pin and rotates (z∈[14,20]). pivot is fixed in the oscillation pivot hole (z∈[0,32]);
127
+ the 10 mm hole of rocker fits on pivot and rotates (z∈[20,26]); the center hole of head also fits on pivot (z∈[26,32]) and is fixed to rocker.
128
+ - rocker_pin is fixed in the 8 mm hole of rocker (z∈[14,26]), and the other hole of coupler fits on rocker_pin. rocker_pin is on the upper side of the oscillation pivot (left-hand branch).
129
+ - Crank 20, coupler 70, rocker 40, ground link 80. Over one full crank revolution the fan head swings by about 60.1°. Gears must not interfere, and meshing teeth must be phased correctly.
130
+ Run check_motion on crank_shaft (one full turn), confirm there is no interference, then save.
131
  motion:
132
  driver: crank_shaft
133
  sweep_deg: 360
assembly/cases/palletizing_robot.yaml CHANGED
@@ -8,61 +8,95 @@ parts:
8
  prompt: |
9
  创建底座:在 front_plane 上画矩形,X 从 -60 到 80 mm,Y 从 -40 到 60 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(-30,0) 直径 6 mm。不要抽壳。
 
 
 
11
  - id: pr_lower
12
  extra_tools: []
13
  prompt: |
14
  创建大臂:在 front_plane 上画两端圆头的长条,宽 18 mm,两端半圆的圆心分别在原点和 (120,0),向 +Z 拉伸 6 mm。
15
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=120 处直径 8 mm。
 
 
 
16
  - id: pr_crank
17
  extra_tools: []
18
  prompt: |
19
  创建驱动曲柄:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (30,0),向 +Z 拉伸 6 mm。
20
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=30 处直径 6 mm。
 
 
 
21
  - id: pr_upper
22
  extra_tools: []
23
  prompt: |
24
  创建小臂:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (170,0),向 +Z 拉伸 6 mm。
25
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=30 处直径 8 mm,X=170 处直径 6 mm。
 
 
 
26
  - id: pr_bar120
27
  extra_tools: []
28
  prompt: |
29
  创建拉杆 120:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (120,0),向 +Z 拉伸 6 mm。
30
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=120 处直径 6 mm。
 
 
 
31
  - id: pr_bar140
32
  extra_tools: []
33
  prompt: |
34
  创建调平拉杆 140:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (140,0),向 +Z 拉伸 6 mm。
35
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=140 处直径 6 mm。
 
 
 
36
  - id: pr_tri
37
  extra_tools: []
38
  prompt: |
39
  创建三角板:在 front_plane 上画矩形,X 从 -38 到 8 mm,Y 从 -38 到 8 mm,向 +Z 拉伸 6 mm。
40
  开贯穿孔:(0,0) 直径 8 mm,(-30,0) 直径 6 mm,(0,-30) 直径 6 mm。不要抽壳。
 
 
 
41
  - id: pr_wrist
42
  extra_tools: []
43
  prompt: |
44
  创建腕部法兰:在 front_plane 上画矩形,X 从 -8 到 30 mm,Y 从 -38 到 8 mm,向 +Z 拉伸 6 mm。
45
  开贯穿孔:(0,0) 直径 6 mm,(0,-30) 直径 6 mm。不要抽壳。
 
 
 
46
  - id: pr_s_pin
47
  extra_tools: []
48
  prompt: |
49
  创建肩轴:直径 10 mm、长 20 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
50
  - id: pr_pin14
51
  extra_tools: []
52
  prompt: |
53
  创建底铰销:直径 6 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
54
  - id: pr_e_pin
55
  extra_tools: []
56
  prompt: |
57
  创建肘轴:直径 8 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
58
  - id: pr_pin12
59
  extra_tools: []
60
  prompt: |
61
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
62
  - id: pr_pin18
63
  extra_tools: []
64
  prompt: |
65
  创建长铰销:直径 6 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
66
  gold_roles:
67
  frame: pr_frame
68
  s_pin: pr_s_pin
@@ -97,6 +131,20 @@ assembly:
97
  - w_pin 固定在 upper 的 X=170 孔(腕点 W,z∈[8,26]);wrist(孔 (0,0)、(0,-30))的原点孔套在 w_pin 上(z∈[8,14]);
98
  lev2(长 140)原点孔套在 t2_pin 上(z∈[20,26]),w2_pin 固定在 lev2 的另一孔(z∈[8,26]),wrist 的 (0,-30) 孔套在 w2_pin 上。wrist 始终不转。
99
  - 大臂、小臂两个转角保持自由(整机活动度 2),不要固定。各件互不穿模,装好后保存。
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
  motion:
101
  mode: poses
102
  frame: frame
 
8
  prompt: |
9
  创建底座:在 front_plane 上画矩形,X 从 -60 到 80 mm,Y 从 -40 到 60 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(-30,0) 直径 6 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the base: on front_plane draw a rectangle with X from -60 to 80 mm and Y from -40 to 60 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm, (-30,0) diameter 6 mm. Do not shell.
14
  - id: pr_lower
15
  extra_tools: []
16
  prompt: |
17
  创建大臂:在 front_plane 上画两端圆头的长条,宽 18 mm,两端半圆的圆心分别在原点和 (120,0),向 +Z 拉伸 6 mm。
18
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=120 处直径 8 mm。
19
+ prompt_en: |
20
+ Create the main arm: on front_plane draw a bar with rounded ends, 18 mm wide, with the end-arc centers at the origin and at (120,0), and extrude it 6 mm toward +Z.
21
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=120 diameter 8 mm.
22
  - id: pr_crank
23
  extra_tools: []
24
  prompt: |
25
  创建驱动曲柄:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (30,0),向 +Z 拉伸 6 mm。
26
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=30 处直径 6 mm。
27
+ prompt_en: |
28
+ Create the drive crank: on front_plane draw a bar with rounded ends, 16 mm wide, with the end-arc centers at the origin and at (30,0), and extrude it 6 mm toward +Z.
29
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=30 diameter 6 mm.
30
  - id: pr_upper
31
  extra_tools: []
32
  prompt: |
33
  创建小臂:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (170,0),向 +Z 拉伸 6 mm。
34
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=30 处直径 8 mm,X=170 处直径 6 mm。
35
+ prompt_en: |
36
+ Create the forearm: on front_plane draw a bar with rounded ends, 16 mm wide, with the end-arc centers at the origin and at (170,0), and extrude it 6 mm toward +Z.
37
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=30 diameter 8 mm, at X=170 diameter 6 mm.
38
  - id: pr_bar120
39
  extra_tools: []
40
  prompt: |
41
  创建拉杆 120:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (120,0),向 +Z 拉伸 6 mm。
42
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=120 处直径 6 mm。
43
+ prompt_en: |
44
+ Create the tie rod 120: on front_plane draw a bar with rounded ends, 10 mm wide, with the end-arc centers at the origin and at (120,0), and extrude it 6 mm toward +Z.
45
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=120 diameter 6 mm.
46
  - id: pr_bar140
47
  extra_tools: []
48
  prompt: |
49
  创建调平拉杆 140:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (140,0),向 +Z 拉伸 6 mm。
50
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=140 处直径 6 mm。
51
+ prompt_en: |
52
+ Create the leveling link 140: on front_plane draw a bar with rounded ends, 10 mm wide, with the end-arc centers at the origin and at (140,0), and extrude it 6 mm toward +Z.
53
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=140 diameter 6 mm.
54
  - id: pr_tri
55
  extra_tools: []
56
  prompt: |
57
  创建三角板:在 front_plane 上画矩形,X 从 -38 到 8 mm,Y 从 -38 到 8 mm,向 +Z 拉伸 6 mm。
58
  开贯穿孔:(0,0) 直径 8 mm,(-30,0) 直径 6 mm,(0,-30) 直径 6 mm。不要抽壳。
59
+ prompt_en: |
60
+ Create the triangle plate: on front_plane draw a rectangle with X from -38 to 8 mm and Y from -38 to 8 mm, and extrude it 6 mm toward +Z.
61
+ Cut through holes: (0,0) diameter 8 mm, (-30,0) diameter 6 mm, (0,-30) diameter 6 mm. Do not shell.
62
  - id: pr_wrist
63
  extra_tools: []
64
  prompt: |
65
  创建腕部法兰:在 front_plane 上画矩形,X 从 -8 到 30 mm,Y 从 -38 到 8 mm,向 +Z 拉伸 6 mm。
66
  开贯穿孔:(0,0) 直径 6 mm,(0,-30) 直径 6 mm。不要抽壳。
67
+ prompt_en: |
68
+ Create the wrist flange: on front_plane draw a rectangle with X from -8 to 30 mm and Y from -38 to 8 mm, and extrude it 6 mm toward +Z.
69
+ Cut through holes: (0,0) diameter 6 mm, (0,-30) diameter 6 mm. Do not shell.
70
  - id: pr_s_pin
71
  extra_tools: []
72
  prompt: |
73
  创建肩轴:直径 10 mm、长 20 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
74
+ prompt_en: |
75
+ Create the shoulder shaft: a cylinder 10 mm in diameter and 20 mm long, axis along Z, extruded from Z=0 toward +Z.
76
  - id: pr_pin14
77
  extra_tools: []
78
  prompt: |
79
  创建底铰销:直径 6 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
80
+ prompt_en: |
81
+ Create the bottom hinge pin: a cylinder 6 mm in diameter and 14 mm long, axis along Z, extruded from Z=0 toward +Z.
82
  - id: pr_e_pin
83
  extra_tools: []
84
  prompt: |
85
  创建肘轴:直径 8 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
86
+ prompt_en: |
87
+ Create the elbow shaft: a cylinder 8 mm in diameter and 18 mm long, axis along Z, extruded from Z=0 toward +Z.
88
  - id: pr_pin12
89
  extra_tools: []
90
  prompt: |
91
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
92
+ prompt_en: |
93
+ Create the hinge pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
94
  - id: pr_pin18
95
  extra_tools: []
96
  prompt: |
97
  创建长铰销:直径 6 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
98
+ prompt_en: |
99
+ Create the long hinge pin: a cylinder 6 mm in diameter and 18 mm long, axis along Z, extruded from Z=0 toward +Z.
100
  gold_roles:
101
  frame: pr_frame
102
  s_pin: pr_s_pin
 
131
  - w_pin 固定在 upper 的 X=170 孔(腕点 W,z∈[8,26]);wrist(孔 (0,0)、(0,-30))的原点孔套在 w_pin 上(z∈[8,14]);
132
  lev2(长 140)原点孔套在 t2_pin 上(z∈[20,26]),w2_pin 固定在 lev2 的另一孔(z∈[8,26]),wrist 的 (0,-30) 孔套在 w2_pin 上。wrist 始终不转。
133
  - 大臂、小臂两个转角保持自由(整机活动度 2),不要固定。各件互不穿模,装好后保存。
134
+ prompt_en: |
135
+ Assemble the arm of a palletizing robot: the main arm and the forearm are each driven by one input (two coaxial rotating members at the shoulder), and the forearm is driven through a parallelogram linkage;
136
+ two further parallelogram leveling linkages keep the wrist flange level at all times. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
137
+ - frame is fixed, z∈[0,8]. Shoulder hole S=(0,0) of diameter 10, leveling hinge hole F=(-30,0) of diameter 6.
138
+ s_pin is fixed in hole S (z∈[0,20]), and f1_pin in hole F (z∈[0,14]).
139
+ - The 10 mm hole of lower (main arm, length 120) fits on s_pin and rotates (z∈[8,14]); e_pin is fixed in the 8 mm hole of lower (z∈[8,26]), called elbow point E.
140
+ - The 10 mm hole of crank (length 30) also fits on s_pin and rotates (z∈[14,20]); k_pin is fixed in the 6 mm hole of crank (z∈[14,32]).
141
+ - The X=30 hole of upper (forearm, three holes: 0, 30, 170) fits on e_pin and rotates (z∈[20,26]); r_pin is fixed in the origin hole of upper (z∈[20,32]).
142
+ The two holes of drive (length 120) fit on k_pin and r_pin respectively (z∈[26,32]), so crank and the rear extension of upper always stay parallel.
143
+ - The 8 mm hole of tri (triangle plate, holes (0,0) 8 mm, (-30,0) and (0,-30) 6 mm) fits on e_pin and rotates (z∈[14,20]); t1_pin and t2_pin are fixed in its (-30,0) and (0,-30) holes respectively
144
+ (t1_pin z∈[8,20], t2_pin z∈[14,26]). The two holes of lev1 (length 120) fit on f1_pin and t1_pin respectively (z∈[8,14]), so tri never rotates.
145
+ - w_pin is fixed in the X=170 hole of upper (wrist point W, z∈[8,26]); the origin hole of wrist (holes (0,0) and (0,-30)) fits on w_pin (z∈[8,14]);
146
+ the origin hole of lev2 (length 140) fits on t2_pin (z∈[20,26]), w2_pin is fixed in the other hole of lev2 (z∈[8,26]), and the (0,-30) hole of wrist fits on w2_pin. wrist never rotates.
147
+ - Keep the two rotations of the main arm and the forearm free (mobility 2 for the whole robot); do not fix them. No parts may interfere. Save when assembled.
148
  motion:
149
  mode: poses
150
  frame: frame
assembly/cases/pantograph.yaml CHANGED
@@ -8,24 +8,37 @@ parts:
8
  prompt: |
9
  创建底座:在 front_plane 上画矩形,X 从 -30 到 30 mm,Y 从 -30 到 30 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 6 mm。不要抽壳。
 
 
 
11
  - id: pg_long_bar
12
  extra_tools: []
13
  prompt: |
14
  创建长杆:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (120,0),向 +Z 拉伸 6 mm。
15
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=60 处直径 6 mm,X=120 处直径 6 mm。
 
 
 
16
  - id: pg_short_bar
17
  extra_tools: []
18
  prompt: |
19
  创建短杆:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (60,0),向 +Z 拉伸 6 mm。
20
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=60 处直径 6 mm。
 
 
 
21
  - id: pg_pin14
22
  extra_tools: []
23
  prompt: |
24
  创建支点销:直径 6 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
25
  - id: pg_pin12
26
  extra_tools: []
27
  prompt: |
28
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
29
  gold_roles:
30
  base: pg_base
31
  pin_o: pg_pin14
@@ -47,6 +60,15 @@ assembly:
47
  bar4 两端孔分别套在 pin_t 与 pin_d 上(z∈[20,26])。bar3 与 bar2 平行、bar4 与 bar1 平行,
48
  bar3 远端(描点 T)与 bar2 远端(笔尖 P)始终满足 P = 2·T(以支点为原点)。
49
  - 两个转角保持自由(活动度 2),不要固定。各杆互不穿模,装好后保存。
 
 
 
 
 
 
 
 
 
50
  motion:
51
  mode: poses
52
  frame: base
 
8
  prompt: |
9
  创建底座:在 front_plane 上画矩形,X 从 -30 到 30 mm,Y 从 -30 到 30 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 6 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the base: on front_plane draw a rectangle with X from -30 to 30 mm and Y from -30 to 30 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 6 mm. Do not shell.
14
  - id: pg_long_bar
15
  extra_tools: []
16
  prompt: |
17
  创建长杆:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (120,0),向 +Z 拉伸 6 mm。
18
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=60 处直径 6 mm,X=120 处直径 6 mm。
19
+ prompt_en: |
20
+ Create the long link: on front_plane draw a bar with rounded ends, 10 mm wide, with the end-arc centers at the origin and at (120,0), and extrude it 6 mm toward +Z.
21
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=60 diameter 6 mm, at X=120 diameter 6 mm.
22
  - id: pg_short_bar
23
  extra_tools: []
24
  prompt: |
25
  创建短杆:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (60,0),向 +Z 拉伸 6 mm。
26
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=60 处直径 6 mm。
27
+ prompt_en: |
28
+ Create the short link: on front_plane draw a bar with rounded ends, 10 mm wide, with the end-arc centers at the origin and at (60,0), and extrude it 6 mm toward +Z.
29
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=60 diameter 6 mm.
30
  - id: pg_pin14
31
  extra_tools: []
32
  prompt: |
33
  创建支点销:直径 6 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
34
+ prompt_en: |
35
+ Create the pivot pin: a cylinder 6 mm in diameter and 14 mm long, axis along Z, extruded from Z=0 toward +Z.
36
  - id: pg_pin12
37
  extra_tools: []
38
  prompt: |
39
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
40
+ prompt_en: |
41
+ Create the hinge pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
42
  gold_roles:
43
  base: pg_base
44
  pin_o: pg_pin14
 
60
  bar4 两端孔分别套在 pin_t 与 pin_d 上(z∈[20,26])。bar3 与 bar2 平行、bar4 与 bar1 平行,
61
  bar3 远端(描点 T)与 bar2 远端(笔尖 P)始终满足 P = 2·T(以支点为原点)。
62
  - 两个转角保持自由(活动度 2),不要固定。各杆互不穿模,装好后保存。
63
+ prompt_en: |
64
+ Assemble a 2x pantograph (parallelogram linkage). Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
65
+ - base is fixed, z∈[0,8], pivot hole at (0,0). pin_o is fixed in the pivot hole (z∈[0,14]); the origin hole of bar1 fits on pin_o and rotates (z∈[8,14]).
66
+ - pin_c and pin_a are fixed in the X=60 and X=120 holes of bar1 respectively (z∈[8,20]).
67
+ - The origin hole of bar2 fits on pin_a and rotates (z∈[14,20]); the origin hole of bar3 fits on pin_c and rotates (z∈[14,20]).
68
+ - pin_d is fixed in the X=60 hole of bar2 (z∈[14,26]), and pin_t in the X=60 hole of bar3 (z∈[14,26]);
69
+ the two end holes of bar4 fit on pin_t and pin_d respectively (z∈[20,26]). bar3 is parallel to bar2 and bar4 parallel to bar1,
70
+ and the far end of bar3 (tracing point T) and the far end of bar2 (pen tip P) always satisfy P = 2·T (with the pivot as origin).
71
+ - Keep the two rotations free (mobility 2); do not fix them. The bars must not interfere with each other. Save when assembled.
72
  motion:
73
  mode: poses
74
  frame: base
assembly/cases/parallel_gripper.yaml CHANGED
@@ -8,24 +8,37 @@ parts:
8
  prompt: |
9
  创建夹爪底座:在 front_plane 上画矩形,X 从 -80 到 80 mm,Y 从 -20 到 50 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(-60,0) 直径 6 mm,(-60,30) 直径 6 mm,(60,0) 直径 6 mm,(60,30) 直径 6 mm。不要抽壳。
 
 
 
11
  - id: gp_link
12
  extra_tools: []
13
  prompt: |
14
  创建摆杆:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (40,0),向 +Z 拉伸 6 mm。
15
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=40 处直径 6 mm。
 
 
 
16
  - id: gp_finger
17
  extra_tools: []
18
  prompt: |
19
  创建指板:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (60,0),向 +Z 拉伸 6 mm。
20
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=30 处直径 6 mm。
 
 
 
21
  - id: gp_pin14
22
  extra_tools: []
23
  prompt: |
24
  创建底座销:直径 6 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
25
  - id: gp_pin12
26
  extra_tools: []
27
  prompt: |
28
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
29
  gold_roles:
30
  base: gp_base
31
  lower_l: gp_link
@@ -53,6 +66,16 @@ assembly:
53
  - finger_l 的原点孔套在 link_pin_lo_l 上、X=30 孔套在 link_pin_up_l 上(z∈[14,20]),指尖朝 +Y;finger_r 同理接右侧。
54
  每侧摆杆、指板与底座组成平行四边形,指板始终竖直平移。
55
  - 两指各 1 个自由度(整机活动度 2),不要固定。各件互不穿模,装好后保存。
 
 
 
 
 
 
 
 
 
 
56
  motion:
57
  mode: poses
58
  frame: base
 
8
  prompt: |
9
  创建夹爪底座:在 front_plane 上画矩形,X 从 -80 到 80 mm,Y 从 -20 到 50 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(-60,0) 直径 6 mm,(-60,30) 直径 6 mm,(60,0) 直径 6 mm,(60,30) 直径 6 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the gripper base: on front_plane draw a rectangle with X from -80 to 80 mm and Y from -20 to 50 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (-60,0) diameter 6 mm, (-60,30) diameter 6 mm, (60,0) diameter 6 mm, (60,30) diameter 6 mm. Do not shell.
14
  - id: gp_link
15
  extra_tools: []
16
  prompt: |
17
  创建摆杆:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (40,0),向 +Z 拉伸 6 mm。
18
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=40 处直径 6 mm。
19
+ prompt_en: |
20
+ Create the lever: on front_plane draw a bar with rounded ends, 10 mm wide, with the end-arc centers at the origin and at (40,0), and extrude it 6 mm toward +Z.
21
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=40 diameter 6 mm.
22
  - id: gp_finger
23
  extra_tools: []
24
  prompt: |
25
  创建指板:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (60,0),向 +Z 拉伸 6 mm。
26
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=30 处直径 6 mm。
27
+ prompt_en: |
28
+ Create the finger plate: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (60,0), and extrude it 6 mm toward +Z.
29
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=30 diameter 6 mm.
30
  - id: gp_pin14
31
  extra_tools: []
32
  prompt: |
33
  创建底座销:直径 6 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
34
+ prompt_en: |
35
+ Create the base pin: a cylinder 6 mm in diameter and 14 mm long, axis along Z, extruded from Z=0 toward +Z.
36
  - id: gp_pin12
37
  extra_tools: []
38
  prompt: |
39
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
40
+ prompt_en: |
41
+ Create the hinge pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
42
  gold_roles:
43
  base: gp_base
44
  lower_l: gp_link
 
66
  - finger_l 的原点孔套在 link_pin_lo_l 上、X=30 孔套在 link_pin_up_l 上(z∈[14,20]),指尖朝 +Y;finger_r 同理接右侧。
67
  每侧摆杆、指板与底座组成平行四边形,指板始终竖直平移。
68
  - 两指各 1 个自由度(整机活动度 2),不要固定。各件互不穿模,装好后保存。
69
+ prompt_en: |
70
+ Assemble a parallelogram gripper (each of the left and right fingers is guided by its own parallelogram linkage; the two fingers are independent). Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
71
+ - base is fixed, z∈[0,8], left hinge holes (-60,0) and (-60,30), right hinge holes (60,0) and (60,30).
72
+ - base_pin_lo_l / base_pin_up_l / base_pin_lo_r / base_pin_up_r are fixed in these four holes in that order (z∈[0,14]).
73
+ - The origin holes of lower_l and upper_l fit on the two left base pins respectively and rotate, and lower_r and upper_r on the two right ones (z∈[8,14]);
74
+ all four levers initially point toward the center line of the mechanism (the left ones toward +X, the right ones toward −X).
75
+ - link_pin_lo_* / link_pin_up_* are fixed in the X=40 holes of the corresponding levers (z∈[8,20]).
76
+ - The origin hole of finger_l fits on link_pin_lo_l and its X=30 hole on link_pin_up_l (z∈[14,20]), with the fingertip pointing to +Y; finger_r is connected to the right side in the same way.
77
+ On each side the levers, the finger plate and the base form a parallelogram, so the finger plate always translates vertically.
78
+ - Each finger has 1 degree of freedom (mobility 2 for the whole gripper); do not fix them. No parts may interfere. Save when assembled.
79
  motion:
80
  mode: poses
81
  frame: base
assembly/cases/peaucellier_linkage.yaml CHANGED
@@ -8,37 +8,57 @@ parts:
8
  prompt: |
9
  创建底板:在 front_plane 上画矩形,X 从 -30 到 130 mm,Y 从 -80 到 130 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 8 mm,(40,0) 直径 8 mm。不要抽壳。
 
 
 
11
  - id: pl_crank
12
  extra_tools: []
13
  prompt: |
14
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (40,0),向 +Z 拉伸 6 mm。
15
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=40 处直径 6 mm。
 
 
 
16
  - id: pl_long
17
  extra_tools: []
18
  prompt: |
19
  创建长杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (100,0),向 +Z 拉伸 6 mm。
20
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=100 处直径 6 mm。
 
 
 
21
  - id: pl_side
22
  extra_tools: []
23
  prompt: |
24
  创建菱形边:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (50,0),向 +Z 拉伸 6 mm。
25
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=50 处直径 6 mm。
 
 
 
26
  - id: pl_o_pin
27
  extra_tools: []
28
  prompt: |
29
  创建机架销:直径 8 mm、长 20 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
30
  - id: pl_c_pin
31
  extra_tools: []
32
  prompt: |
33
  创建曲柄轴:直径 8 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
34
  - id: pl_pin18
35
  extra_tools: []
36
  prompt: |
37
  创建铰销:直径 6 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
38
  - id: pl_pen
39
  extra_tools: []
40
  prompt: |
41
  创建笔:直径 6 mm、长 24 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
42
  gold_roles:
43
  frame: pl_frame
44
  o_pin: pl_o_pin
@@ -65,6 +85,16 @@ assembly:
65
  - 菱形四边(长 50):qb(z∈[14,20])连 Q—B,qd(z∈[20,26])连 Q—D,原点孔都在 Q;bp(z∈[20,26])原点孔在 B,dp(z∈[8,14])原点孔在 D。
66
  - p_pin(笔)固定在 dp 的另一孔里(z∈[8,32]),bp 的另一孔也套在 p_pin 上,记为 P。
67
  - 曲柄转角这 1 个自由度保持自由(整机活动度 1),不要固定。各件互不穿模,装好后保存。
 
 
 
 
 
 
 
 
 
 
68
  motion:
69
  mode: poses
70
  frame: frame
 
8
  prompt: |
9
  创建底板:在 front_plane 上画矩形,X 从 -30 到 130 mm,Y 从 -80 到 130 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 8 mm,(40,0) 直径 8 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the bottom plate: on front_plane draw a rectangle with X from -30 to 130 mm and Y from -80 to 130 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 8 mm, (40,0) diameter 8 mm. Do not shell.
14
  - id: pl_crank
15
  extra_tools: []
16
  prompt: |
17
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (40,0),向 +Z 拉伸 6 mm。
18
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=40 处直径 6 mm。
19
+ prompt_en: |
20
+ Create the crank: on front_plane draw a bar with rounded ends, 14 mm wide, with the end-arc centers at the origin and at (40,0), and extrude it 6 mm toward +Z.
21
+ Cut through holes on the X axis: at X=0 diameter 8 mm, at X=40 diameter 6 mm.
22
  - id: pl_long
23
  extra_tools: []
24
  prompt: |
25
  创建长杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (100,0),向 +Z 拉伸 6 mm。
26
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=100 处直径 6 mm。
27
+ prompt_en: |
28
+ Create the long link: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (100,0), and extrude it 6 mm toward +Z.
29
+ Cut through holes on the X axis: at X=0 diameter 8 mm, at X=100 diameter 6 mm.
30
  - id: pl_side
31
  extra_tools: []
32
  prompt: |
33
  创建菱形边:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (50,0),向 +Z 拉伸 6 mm。
34
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=50 处直径 6 mm。
35
+ prompt_en: |
36
+ Create the rhombus link: on front_plane draw a bar with rounded ends, 10 mm wide, with the end-arc centers at the origin and at (50,0), and extrude it 6 mm toward +Z.
37
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=50 diameter 6 mm.
38
  - id: pl_o_pin
39
  extra_tools: []
40
  prompt: |
41
  创建机架销:直径 8 mm、长 20 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
42
+ prompt_en: |
43
+ Create the frame pin: a cylinder 8 mm in diameter and 20 mm long, axis along Z, extruded from Z=0 toward +Z.
44
  - id: pl_c_pin
45
  extra_tools: []
46
  prompt: |
47
  创建曲柄轴:直径 8 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
48
+ prompt_en: |
49
+ Create the crank shaft: a cylinder 8 mm in diameter and 14 mm long, axis along Z, extruded from Z=0 toward +Z.
50
  - id: pl_pin18
51
  extra_tools: []
52
  prompt: |
53
  创建铰销:直径 6 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
54
+ prompt_en: |
55
+ Create the hinge pin: a cylinder 6 mm in diameter and 18 mm long, axis along Z, extruded from Z=0 toward +Z.
56
  - id: pl_pen
57
  extra_tools: []
58
  prompt: |
59
  创建笔:直径 6 mm、长 24 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
60
+ prompt_en: |
61
+ Create the pen: a cylinder 6 mm in diameter and 24 mm long, axis along Z, extruded from Z=0 toward +Z.
62
  gold_roles:
63
  frame: pl_frame
64
  o_pin: pl_o_pin
 
85
  - 菱形四边(长 50):qb(z∈[14,20])连 Q—B,qd(z∈[20,26])连 Q—D,原点孔都在 Q;bp(z∈[20,26])原点孔在 B,dp(z∈[8,14])原点孔在 D。
86
  - p_pin(笔)固定在 dp 的另一孔里(z∈[8,32]),bp 的另一孔也套在 p_pin 上,记为 P。
87
  - 曲柄转角这 1 个自由度保持自由(整机活动度 1),不要固定。各件互不穿模,装好后保存。
88
+ prompt_en: |
89
+ Assemble a Peaucellier–Lipkin straight-line linkage: the inversor turns the circular arc of the crank end point into a straight line at the pen tip, which always stays on the vertical line x=93.75. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
90
+ - frame is fixed, z∈[0,8]. Frame hinge hole O=(0,0) and crank shaft hole C=(40,0), diameter 8.
91
+ - o_pin is fixed in hole O (z∈[0,20]); c_pin is fixed in hole C (z∈[0,14]).
92
+ - The 8 mm hole of crank (length 40) fits on c_pin and rotates (z∈[8,14]); q_pin is fixed in the 6 mm hole of crank (z∈[8,26]); call this point Q.
93
+ - The 8 mm origin holes of ob and od (length 100) both fit on o_pin and rotate: ob at z∈[8,14], od at z∈[14,20]; b_pin and d_pin are fixed in the 6 mm holes of ob and od respectively (z∈[8,26]),
94
+ called B and D. B is on the left of line OQ (the counterclockwise side) and D on the right.
95
+ - The four rhombus sides (length 50): qb (z∈[14,20]) connects Q—B and qd (z∈[20,26]) connects Q—D, both with their origin holes at Q; bp (z∈[20,26]) has its origin hole at B, and dp (z∈[8,14]) at D.
96
+ - p_pin (the pen) is fixed in the other hole of dp (z∈[8,32]), and the other hole of bp also fits on p_pin; call it P.
97
+ - Keep the 1 degree of freedom of the crank rotation free (mobility 1 for the whole linkage); do not fix it. No parts may interfere. Save when assembled.
98
  motion:
99
  mode: poses
100
  frame: frame
assembly/cases/planetary_carrier.yaml CHANGED
@@ -8,37 +8,54 @@ parts:
8
  prompt: |
9
  创建箱体板:在 front_plane 上画矩形,X 从 -60 到 60 mm,Y 从 -60 到 60 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm。不要抽壳。
 
 
 
11
  - id: pc_input_shaft
12
  extra_tools: []
13
  prompt: |
14
  创建输入轴:直径 10 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: pc_output_shaft
16
  extra_tools: []
17
  prompt: |
18
  创建输出轴:直径 10 mm、长 20 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
19
  - id: pc_sun
20
  extra_tools:
21
  - spur_gear
22
  prompt: |
23
  创建渐开线直齿轮,模数 2 mm,齿数 12,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
24
  - id: pc_planet
25
  extra_tools:
26
  - spur_gear
27
  prompt: |
28
  创建渐开线直齿轮,模数 2 mm,齿数 18,压力角 30°,齿宽 8 mm,轴孔直径 6 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
29
  - id: pc_ring
30
  extra_tools:
31
  - internal_gear
32
  prompt: |
33
  创建渐开线内齿圈,模数 2 mm,齿数 48,压力角 30°,齿宽 8 mm,外径 106 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 internal_gear。
 
 
34
  - id: pc_carrier
35
  extra_tools: []
36
  prompt: |
37
  创建行星架:外径 76 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(30,0) 直径 6 mm。
 
 
38
  - id: pc_planet_pin
39
  extra_tools: []
40
  prompt: |
41
  创建行星轮销:直径 6 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
42
  gold_roles:
43
  frame: pc_frame
44
  ring: pc_ring
@@ -58,6 +75,15 @@ assembly:
58
  同时与 sun 外啮合、与 ring 内啮合(模数 2,中心距 30)。
59
  - 传动比 5:input_shaft 转 5 圈,carrier 同向转 1 圈。各齿轮互不穿模,啮合齿相位要对上。
60
  对 input_shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
61
  motion:
62
  driver: input_shaft
63
  sweep_deg: 360
 
8
  prompt: |
9
  创建箱体板:在 front_plane 上画矩形,X 从 -60 到 60 mm,Y 从 -60 到 60 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the housing plate: on front_plane draw a rectangle with X from -60 to 60 mm and Y from -60 to 60 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm. Do not shell.
14
  - id: pc_input_shaft
15
  extra_tools: []
16
  prompt: |
17
  创建输入轴:直径 10 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the input shaft: a cylinder 10 mm in diameter and 26 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: pc_output_shaft
21
  extra_tools: []
22
  prompt: |
23
  创建输出轴:直径 10 mm、长 20 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
24
+ prompt_en: |
25
+ Create the output shaft: a cylinder 10 mm in diameter and 20 mm long, axis along Z, extruded from Z=0 toward +Z.
26
  - id: pc_sun
27
  extra_tools:
28
  - spur_gear
29
  prompt: |
30
  创建渐开线直齿轮,模数 2 mm,齿数 12,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
31
+ prompt_en: |
32
+ Create an involute spur gear: module 2 mm, 12 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
33
  - id: pc_planet
34
  extra_tools:
35
  - spur_gear
36
  prompt: |
37
  创建渐开线直齿轮,模数 2 mm,齿数 18,压力角 30°,齿宽 8 mm,轴孔直径 6 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
38
+ prompt_en: |
39
+ Create an involute spur gear: module 2 mm, 18 teeth, pressure angle 30°, face width 8 mm, bore diameter 6 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
40
  - id: pc_ring
41
  extra_tools:
42
  - internal_gear
43
  prompt: |
44
  创建渐开线内齿圈,模数 2 mm,齿数 48,压力角 30°,齿宽 8 mm,外径 106 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 internal_gear。
45
+ prompt_en: |
46
+ Create an involute internal ring gear: module 2 mm, 48 teeth, pressure angle 30°, face width 8 mm, outer diameter 106 mm, axis along Z, extruded from Z=0 toward +Z. Prefer internal_gear.
47
  - id: pc_carrier
48
  extra_tools: []
49
  prompt: |
50
  创建行星架:外径 76 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(30,0) 直径 6 mm。
51
+ prompt_en: |
52
+ Create the planet carrier: a disk with outer diameter 76 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 10 mm. Also cut through holes: (30,0) diameter 6 mm.
53
  - id: pc_planet_pin
54
  extra_tools: []
55
  prompt: |
56
  创建行星轮销:直径 6 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
57
+ prompt_en: |
58
+ Create the planet pin: a cylinder 6 mm in diameter and 14 mm long, axis along Z, extruded from Z=0 toward +Z.
59
  gold_roles:
60
  frame: pc_frame
61
  ring: pc_ring
 
75
  同时与 sun 外啮合、与 ring 内啮合(模数 2,中心距 30)。
76
  - 传动比 5:input_shaft 转 5 圈,carrier 同向转 1 圈。各齿轮互不穿模,啮合齿相位要对上。
77
  对 input_shaft 做 check_motion(一整圈),确认无穿模后再保存。
78
+ prompt_en: |
79
+ Assemble a single-stage planetary reducer (ring fixed, carrier output). Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
80
+ - frame is fixed, z∈[0,8], main bearing hole (0,0) of diameter 10. The 48-tooth internal ring gear ring is fixed on frame, coaxial with the main bearing hole (z∈[8,16]).
81
+ - input_shaft passes through the main bearing hole and rotates about Z (z∈[-10,16]); the 12-tooth sun is fixed on it (z∈[8,16]).
82
+ - output_shaft is coaxial with the main bearing hole and rotates about Z (z∈[16,36]); the center hole of carrier is fixed on output_shaft (z∈[16,22]).
83
+ - planet_pin is fixed in the 6 mm offset hole of carrier and extends toward −Z (z∈[8,22]); the 18-tooth planet fits on planet_pin and rotates (z∈[8,16]),
84
+ meshing externally with sun and internally with ring at the same time (module 2, center distance 30).
85
+ - Ratio 5: when input_shaft turns 5 revolutions, carrier turns 1 revolution in the same direction. Gears must not interfere, and meshing teeth must be phased correctly.
86
+ Run check_motion on input_shaft (one full turn), confirm there is no interference, then save.
87
  motion:
88
  driver: input_shaft
89
  sweep_deg: 360
assembly/cases/planetary_mixer.yaml CHANGED
@@ -8,52 +8,77 @@ parts:
8
  prompt: |
9
  创建底座板:在 front_plane 上画矩形,X 从 -110 到 90 mm,Y 从 -80 到 80 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(-64,0) 直径 10 mm。不要抽壳。
 
 
 
11
  - id: pm_post
12
  extra_tools: []
13
  prompt: |
14
  创建中心柱:直径 10 mm、长 30 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: pm_sun
16
  extra_tools:
17
  - spur_gear
18
  prompt: |
19
  创建渐开线直齿轮,模数 2 mm,齿数 24,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
20
  - id: pm_carrier_gear
21
  extra_tools:
22
  - spur_gear
23
  prompt: |
24
  创建渐开线直齿轮,模数 2 mm,齿数 48,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
25
  - id: pm_arm
26
  extra_tools: []
27
  prompt: |
28
  创建行星架:在 front_plane 上画两端圆头的长条,宽 20 mm,两端半圆的圆心分别在原点和 (96,0),向 +Z 拉伸 6 mm。
29
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=48 处直径 10 mm,X=96 处直径 8 mm。
 
 
 
30
  - id: pm_planet
31
  extra_tools:
32
  - spur_gear
33
  prompt: |
34
  创建渐开线直齿轮,模数 2 mm,齿数 24,压力角 30°,齿宽 8 mm,轴孔直径 8 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
35
  - id: pm_axle
36
  extra_tools: []
37
  prompt: |
38
  创建行星轴:直径 8 mm、长 20 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
39
  - id: pm_beater
40
  extra_tools: []
41
  prompt: |
42
  创建搅拌头:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (40,0),向 +Z 拉伸 6 mm。
43
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=40 处直径 6 mm。
 
 
 
44
  - id: pm_motor_shaft
45
  extra_tools: []
46
  prompt: |
47
  创建电机轴:直径 10 mm、长 30 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
48
  - id: pm_pinion
49
  extra_tools:
50
  - spur_gear
51
  prompt: |
52
  创建渐开线直齿轮,模数 2 mm,齿数 16,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
53
  - id: pm_handwheel
54
  extra_tools: []
55
  prompt: |
56
  创建手轮:外径 50 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(16,0) 直径 6 mm。
 
 
57
  gold_roles:
58
  frame: pm_frame
59
  post: pm_post
@@ -81,6 +106,17 @@ assembly:
81
  都与 sun 外啮合(中心距 48);beater_a/beater_b 的 8 mm 孔固定在对应轴上(z∈[30,36])。
82
  - 电机转 3 圈行星架反向转 1 圈;行星轮绝对转速是行星架的 2 倍、同向。各齿轮互不穿模,啮合齿相位要对上。
83
  对 motor_shaft 做 check_motion(电机转 3 圈,行星架正好转一周),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
 
 
84
  motion:
85
  driver: motor_shaft
86
  sweep_deg: 1080
 
8
  prompt: |
9
  创建底座板:在 front_plane 上画矩形,X 从 -110 到 90 mm,Y 从 -80 到 80 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(-64,0) 直径 10 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the base plate: on front_plane draw a rectangle with X from -110 to 90 mm and Y from -80 to 80 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm, (-64,0) diameter 10 mm. Do not shell.
14
  - id: pm_post
15
  extra_tools: []
16
  prompt: |
17
  创建中心柱:直径 10 mm、长 30 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the center post: a cylinder 10 mm in diameter and 30 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: pm_sun
21
  extra_tools:
22
  - spur_gear
23
  prompt: |
24
  创建渐开线直齿轮,模数 2 mm,齿数 24,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
25
+ prompt_en: |
26
+ Create an involute spur gear: module 2 mm, 24 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
27
  - id: pm_carrier_gear
28
  extra_tools:
29
  - spur_gear
30
  prompt: |
31
  创建渐开线直齿轮,模数 2 mm,齿数 48,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
32
+ prompt_en: |
33
+ Create an involute spur gear: module 2 mm, 48 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
34
  - id: pm_arm
35
  extra_tools: []
36
  prompt: |
37
  创建行星架:在 front_plane 上画两端圆头的长条,宽 20 mm,两端半圆的圆心分别在原点和 (96,0),向 +Z 拉伸 6 mm。
38
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=48 处直径 10 mm,X=96 处直径 8 mm。
39
+ prompt_en: |
40
+ Create the planet carrier: on front_plane draw a bar with rounded ends, 20 mm wide, with the end-arc centers at the origin and at (96,0), and extrude it 6 mm toward +Z.
41
+ Cut through holes on the X axis: at X=0 diameter 8 mm, at X=48 diameter 10 mm, at X=96 diameter 8 mm.
42
  - id: pm_planet
43
  extra_tools:
44
  - spur_gear
45
  prompt: |
46
  创建渐开线直齿轮,模数 2 mm,齿数 24,压力角 30°,齿宽 8 mm,轴孔直径 8 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
47
+ prompt_en: |
48
+ Create an involute spur gear: module 2 mm, 24 teeth, pressure angle 30°, face width 8 mm, bore diameter 8 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
49
  - id: pm_axle
50
  extra_tools: []
51
  prompt: |
52
  创建行星轴:直径 8 mm、长 20 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
53
+ prompt_en: |
54
+ Create the planet axle: a cylinder 8 mm in diameter and 20 mm long, axis along Z, extruded from Z=0 toward +Z.
55
  - id: pm_beater
56
  extra_tools: []
57
  prompt: |
58
  创建搅拌头:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (40,0),向 +Z 拉伸 6 mm。
59
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=40 处直径 6 mm。
60
+ prompt_en: |
61
+ Create the beater: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (40,0), and extrude it 6 mm toward +Z.
62
+ Cut through holes on the X axis: at X=0 diameter 8 mm, at X=40 diameter 6 mm.
63
  - id: pm_motor_shaft
64
  extra_tools: []
65
  prompt: |
66
  创建电机轴:直径 10 mm、长 30 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
67
+ prompt_en: |
68
+ Create the motor shaft: a cylinder 10 mm in diameter and 30 mm long, axis along Z, extruded from Z=0 toward +Z.
69
  - id: pm_pinion
70
  extra_tools:
71
  - spur_gear
72
  prompt: |
73
  创建渐开线直齿轮,模数 2 mm,齿数 16,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
74
+ prompt_en: |
75
+ Create an involute spur gear: module 2 mm, 16 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
76
  - id: pm_handwheel
77
  extra_tools: []
78
  prompt: |
79
  创建手轮:外径 50 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(16,0) 直径 6 mm。
80
+ prompt_en: |
81
+ Create the handwheel: a disk with outer diameter 50 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 10 mm. Also cut through holes: (16,0) diameter 6 mm.
82
  gold_roles:
83
  frame: pm_frame
84
  post: pm_post
 
106
  都与 sun 外啮合(中心距 48);beater_a/beater_b 的 8 mm 孔固定在对应轴上(z∈[30,36])。
107
  - 电机转 3 圈行星架反向转 1 圈;行星轮绝对转速是行星架的 2 倍、同向。各齿轮互不穿模,啮合齿相位要对上。
108
  对 motor_shaft 做 check_motion(电机转 3 圈,行星架正好转一周),确认无穿模后再保存。
109
+ prompt_en: |
110
+ Assemble a planetary mixer: the sun gear is fixed, the motor drives the planet carrier around through a pinion, and two planets roll around the sun, carrying the beaters so that they orbit and spin at the same time. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
111
+ - frame is fixed, z∈[0,8]. Center hole (0,0) and motor shaft hole (-64,0), diameter 10.
112
+ - post is fixed in the center hole (z∈[0,30]); the 24-tooth sun is fixed on post (z∈[16,24]).
113
+ - The 48-tooth carrier_gear fits on post and rotates (z∈[8,16]); the X=48 hole of arm (three holes: 0, 48, 96) fits on post (z∈[24,30]) and is fixed to carrier_gear.
114
+ - motor_shaft passes through the motor shaft hole and rotates about Z (z∈[-14,16]); the 16-tooth pinion (z∈[8,16]) and the center hole of handwheel (z∈[-14,-8]) are fixed on it,
115
+ and pinion meshes externally with carrier_gear (module 2, center distance 64).
116
+ - Two planet sets: axle_a and axle_b are inserted in the X=0 and X=96 holes of arm respectively and rotate about Z (z∈[16,36]); the 24-tooth planet_a/planet_b are fixed on the corresponding axles (z∈[16,24]),
117
+ and both mesh externally with sun (center distance 48); the 8 mm holes of beater_a/beater_b are fixed on the corresponding axles (z∈[30,36]).
118
+ - For 3 motor revolutions the carrier turns 1 revolution in the opposite direction; the absolute speed of the planets is 2 times the carrier speed, in the same direction. Gears must not interfere, and meshing teeth must be phased correctly.
119
+ Run check_motion on motor_shaft (3 motor revolutions, exactly one revolution of the carrier), confirm there is no interference, then save.
120
  motion:
121
  driver: motor_shaft
122
  sweep_deg: 1080
assembly/cases/projector.yaml CHANGED
@@ -12,35 +12,54 @@ parts:
12
  创建机体板:在 front_plane 上画矩形,X 从 -60 到 90 mm,Y 从 -120 到 40 mm,向 +Z 拉伸 8 mm。
13
  开四个直径 10.4 mm 贯穿轴承孔:(0,0) 主动轴,(31.5,0) 惰轮轴,(63,0) 快门轴,(0,-60) 输片轴。
14
  原点在主动轴孔轴线。不要抽壳。
 
 
 
 
15
  - id: proj_shaft
16
  extra_tools: []
17
  prompt: |
18
  创建轴:直径 10 mm,长 50 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
19
  - id: proj_gear24
20
  extra_tools: [spur_gear]
21
  prompt: |
22
  创建渐开线直齿轮,模数 1.5 mm,齿数 24,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z。优先 spur_gear。
 
 
23
  - id: proj_idler18
24
  extra_tools: [spur_gear]
25
  prompt: |
26
  创建渐开线直齿轮,模数 1.5 mm,齿数 18,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z。优先 spur_gear。
 
 
27
  - id: proj_pinion16
28
  extra_tools: [spur_gear]
29
  prompt: |
30
  创建渐开线直齿轮,模数 1.5 mm,齿数 16,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z。优先 spur_gear。
 
 
31
  - id: proj_gear64
32
  extra_tools: [spur_gear]
33
  prompt: |
34
  创建渐开线直齿轮,模数 1.5 mm,齿数 64,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z。优先 spur_gear。
 
 
35
  - id: proj_shutter
36
  extra_tools: []
37
  prompt: |
38
  创建快门盘:外径 50 mm、厚 3 mm 的圆盘,轴线沿 Z,中心孔直径 10 mm;
39
  在 (15,0) 与 (-15,0) 各开一个直径 12 mm 的贯穿透光窗。
 
 
 
40
  - id: proj_sprocket
41
  extra_tools: []
42
  prompt: |
43
  创建输片鼓:外径 30 mm、长 16 mm 的圆柱,轴线沿 Z,中心贯穿孔直径 10 mm。
 
 
44
 
45
  gold_roles:
46
  frame: proj_frame
@@ -67,6 +86,16 @@ assembly:
67
  - shutter 快门盘装在 shutter_shaft 最外端;sprocket 输片鼓装在 sprocket_shaft 板后一端。
68
  - 每个齿轮、快门盘、输片鼓都与各自的轴 1:1 同转。各件互不穿模。
69
  对 drive_shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
 
70
 
71
  motion:
72
  driver: drive_shaft
 
12
  创建机体板:在 front_plane 上画矩形,X 从 -60 到 90 mm,Y 从 -120 到 40 mm,向 +Z 拉伸 8 mm。
13
  开四个直径 10.4 mm 贯穿轴承孔:(0,0) 主动轴,(31.5,0) 惰轮轴,(63,0) 快门轴,(0,-60) 输片轴。
14
  原点在主动轴孔轴线。不要抽壳。
15
+ prompt_en: |
16
+ Create the body plate: on front_plane draw a rectangle with X from -60 to 90 mm and Y from -120 to 40 mm, and extrude it 8 mm toward +Z.
17
+ Cut four through bearing holes of diameter 10.4 mm: (0,0) drive shaft, (31.5,0) idler shaft, (63,0) shutter shaft, (0,-60) sprocket shaft.
18
+ The origin is on the axis of the drive-shaft hole. Do not shell.
19
  - id: proj_shaft
20
  extra_tools: []
21
  prompt: |
22
  创建轴:直径 10 mm,长 50 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。
23
+ prompt_en: |
24
+ Create a shaft: diameter 10 mm, length 50 mm, axis along Z, extruded from Z=0 toward +Z.
25
  - id: proj_gear24
26
  extra_tools: [spur_gear]
27
  prompt: |
28
  创建渐开线直齿轮,模数 1.5 mm,齿数 24,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z。优先 spur_gear。
29
+ prompt_en: |
30
+ Create an involute spur gear: module 1.5 mm, 24 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z. Prefer spur_gear.
31
  - id: proj_idler18
32
  extra_tools: [spur_gear]
33
  prompt: |
34
  创建渐开线直齿轮,模数 1.5 mm,齿数 18,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z。优先 spur_gear。
35
+ prompt_en: |
36
+ Create an involute spur gear: module 1.5 mm, 18 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z. Prefer spur_gear.
37
  - id: proj_pinion16
38
  extra_tools: [spur_gear]
39
  prompt: |
40
  创建渐开线直齿轮,模数 1.5 mm,齿数 16,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z。优先 spur_gear。
41
+ prompt_en: |
42
+ Create an involute spur gear: module 1.5 mm, 16 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z. Prefer spur_gear.
43
  - id: proj_gear64
44
  extra_tools: [spur_gear]
45
  prompt: |
46
  创建渐开线直齿轮,模数 1.5 mm,齿数 64,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z。优先 spur_gear。
47
+ prompt_en: |
48
+ Create an involute spur gear: module 1.5 mm, 64 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z. Prefer spur_gear.
49
  - id: proj_shutter
50
  extra_tools: []
51
  prompt: |
52
  创建快门盘:外径 50 mm、厚 3 mm 的圆盘,轴线沿 Z,中心孔直径 10 mm;
53
  在 (15,0) 与 (-15,0) 各开一个直径 12 mm 的贯穿透光窗。
54
+ prompt_en: |
55
+ Create the shutter disk: a disk with outer diameter 50 mm and thickness 3 mm, axis along Z, central hole diameter 10 mm;
56
+ cut a through light window of diameter 12 mm at each of (15,0) and (-15,0).
57
  - id: proj_sprocket
58
  extra_tools: []
59
  prompt: |
60
  创建输片鼓:外径 30 mm、长 16 mm 的圆柱,轴线沿 Z,中心贯穿孔直径 10 mm。
61
+ prompt_en: |
62
+ Create the film sprocket drum: a cylinder with outer diameter 30 mm and length 16 mm, axis along Z, central through hole of diameter 10 mm.
63
 
64
  gold_roles:
65
  frame: proj_frame
 
86
  - shutter 快门盘装在 shutter_shaft 最外端;sprocket 输片鼓装在 sprocket_shaft 板后一端。
87
  - 每个齿轮、快门盘、输片鼓都与各自的轴 1:1 同转。各件互不穿模。
88
  对 drive_shaft 做 check_motion(一整圈),确认无穿模后再保存。
89
+ prompt_en: |
90
+ Assemble a film projector drive. Do not treat the insertion coordinates as the final poses.
91
+ - frame is fixed. The four shafts pass through the four bearing holes of frame and each rotates about Z: drive_shaft (0,0), idler_shaft (31.5,0),
92
+ shutter_shaft (63,0), sprocket_shaft (0,-60).
93
+ - First layer (in front of the plate, one axial layer): drive_gear on drive_shaft, idler_gear on idler_shaft, shutter_gear on shutter_shaft;
94
+ the 24-tooth drive_gear meshes externally with the 18-tooth idler_gear, which in turn meshes externally with the 24-tooth shutter_gear, so the shutter turns 1:1 with the drive shaft in the same direction.
95
+ - Second layer (outside the first layer): drive_pinion (16 teeth) on drive_shaft meshes externally with the 64-tooth sprocket_gear on sprocket_shaft, reducing the sprocket shaft 4:1 in the opposite direction.
96
+ - The shutter disk shutter sits at the outermost end of shutter_shaft; the sprocket drum sprocket sits at the end of sprocket_shaft behind the plate.
97
+ - Every gear, the shutter disk and the sprocket drum turn 1:1 with their shafts. No parts may interfere.
98
+ Run check_motion on drive_shaft (one full turn), confirm there is no interference, then save.
99
 
100
  motion:
101
  driver: drive_shaft
assembly/cases/pumpjack.yaml CHANGED
@@ -8,47 +8,71 @@ parts:
8
  prompt: |
9
  创建机架板:在 front_plane 上画矩形,X 从 -80 到 40 mm,Y 从 -30 到 110 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(-50,0) 直径 10 mm,(0,0) 直径 10 mm,(-30,90) 直径 6 mm。不要抽壳。
 
 
 
11
  - id: pj_motor_shaft
12
  extra_tools: []
13
  prompt: |
14
  创建电机轴:直径 10 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: pj_crank_shaft
16
  extra_tools: []
17
  prompt: |
18
  创建曲柄轴:直径 10 mm、长 32 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
19
  - id: pj_pinion
20
  extra_tools:
21
  - spur_gear
22
  prompt: |
23
  创建渐开线直齿轮,模数 2.5 mm,齿数 10,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
24
  - id: pj_bull_gear
25
  extra_tools:
26
  - spur_gear
27
  prompt: |
28
  创建渐开线直齿轮,模数 2.5 mm,齿数 30,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
29
  - id: pj_crank
30
  extra_tools: []
31
  prompt: |
32
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (20,0),向 +Z 拉伸 6 mm。
33
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=20 处直径 6 mm。
 
 
 
34
  - id: pj_pin12
35
  extra_tools: []
36
  prompt: |
37
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
38
  - id: pj_pitman
39
  extra_tools: []
40
  prompt: |
41
  创建连杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (90,0),向 +Z 拉伸 6 mm。
42
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=90 处直径 6 mm。
 
 
 
43
  - id: pj_beam
44
  extra_tools: []
45
  prompt: |
46
  创建游梁:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (130,0),向 +Z 拉伸 6 mm。
47
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=50 处直径 6 mm,X=130 处直径 6 mm。
 
 
 
48
  - id: pj_pivot_pin
49
  extra_tools: []
50
  prompt: |
51
  创建游梁支销:直径 6 mm、长 34 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
52
  gold_roles:
53
  frame: pj_frame
54
  motor_shaft: pj_motor_shaft
@@ -75,6 +99,19 @@ assembly:
75
  曲柄 20、连杆 90、游梁后臂 50、机架 94.9;beam 的 X=0 端在 pivot_pin 的 +X 侧。
76
  - 曲柄整周转动时游梁往复摆动约 47.7°。各齿轮互不穿模,啮合齿相位要对上。
77
  对 motor_shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  motion:
79
  driver: motor_shaft
80
  sweep_deg: 360
 
8
  prompt: |
9
  创建机架板:在 front_plane 上画矩形,X 从 -80 到 40 mm,Y 从 -30 到 110 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(-50,0) 直径 10 mm,(0,0) 直径 10 mm,(-30,90) 直径 6 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the frame plate: on front_plane draw a rectangle with X from -80 to 40 mm and Y from -30 to 110 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (-50,0) diameter 10 mm, (0,0) diameter 10 mm, (-30,90) diameter 6 mm. Do not shell.
14
  - id: pj_motor_shaft
15
  extra_tools: []
16
  prompt: |
17
  创建电机轴:直径 10 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the motor shaft: a cylinder 10 mm in diameter and 26 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: pj_crank_shaft
21
  extra_tools: []
22
  prompt: |
23
  创建曲柄轴:直径 10 mm、长 32 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
24
+ prompt_en: |
25
+ Create the crank shaft: a cylinder 10 mm in diameter and 32 mm long, axis along Z, extruded from Z=0 toward +Z.
26
  - id: pj_pinion
27
  extra_tools:
28
  - spur_gear
29
  prompt: |
30
  创建渐开线直齿轮,模数 2.5 mm,齿数 10,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
31
+ prompt_en: |
32
+ Create an involute spur gear: module 2.5 mm, 10 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
33
  - id: pj_bull_gear
34
  extra_tools:
35
  - spur_gear
36
  prompt: |
37
  创建渐开线直齿轮,模数 2.5 mm,齿数 30,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
38
+ prompt_en: |
39
+ Create an involute spur gear: module 2.5 mm, 30 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
40
  - id: pj_crank
41
  extra_tools: []
42
  prompt: |
43
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (20,0),向 +Z 拉伸 6 mm。
44
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=20 处直径 6 mm。
45
+ prompt_en: |
46
+ Create the crank: on front_plane draw a bar with rounded ends, 16 mm wide, with the end-arc centers at the origin and at (20,0), and extrude it 6 mm toward +Z.
47
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=20 diameter 6 mm.
48
  - id: pj_pin12
49
  extra_tools: []
50
  prompt: |
51
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
52
+ prompt_en: |
53
+ Create the hinge pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
54
  - id: pj_pitman
55
  extra_tools: []
56
  prompt: |
57
  创建连杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (90,0),向 +Z 拉伸 6 mm。
58
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=90 处直径 6 mm。
59
+ prompt_en: |
60
+ Create the link: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (90,0), and extrude it 6 mm toward +Z.
61
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=90 diameter 6 mm.
62
  - id: pj_beam
63
  extra_tools: []
64
  prompt: |
65
  创建游梁:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (130,0),向 +Z 拉伸 6 mm。
66
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=50 处直径 6 mm,X=130 处直径 6 mm。
67
+ prompt_en: |
68
+ Create the walking beam: on front_plane draw a bar with rounded ends, 14 mm wide, with the end-arc centers at the origin and at (130,0), and extrude it 6 mm toward +Z.
69
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=50 diameter 6 mm, at X=130 diameter 6 mm.
70
  - id: pj_pivot_pin
71
  extra_tools: []
72
  prompt: |
73
  创建游梁支销:直径 6 mm、长 34 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
74
+ prompt_en: |
75
+ Create the beam pivot pin: a cylinder 6 mm in diameter and 34 mm long, axis along Z, extruded from Z=0 toward +Z.
76
  gold_roles:
77
  frame: pj_frame
78
  motor_shaft: pj_motor_shaft
 
99
  曲柄 20、连杆 90、游梁后臂 50、机架 94.9;beam 的 X=0 端在 pivot_pin 的 +X 侧。
100
  - 曲柄整周转动时游梁往复摆动约 47.7°。各齿轮互不穿模,啮合齿相位要对上。
101
  对 motor_shaft 做 check_motion(一整圈),确认无穿模后再保存。
102
+ prompt_en: |
103
+ Assemble a beam pumping unit (pumpjack; a gear reduction drives the crank, and a crank-rocker mechanism swings the walking beam). Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
104
+ - frame is fixed, z∈[0,8]. Bearing holes: motor shaft (-50,0), crank shaft (0,0); beam pivot hole (-30,90).
105
+ - motor_shaft passes through the (-50,0) hole and rotates about Z (z∈[-10,16]); the 10-tooth pinion is fixed on it (z∈[8,16]).
106
+ - crank_shaft passes through the (0,0) hole and rotates about Z (z∈[-10,22]); the 30-tooth bull_gear (z∈[8,16]) and the 10 mm hole of crank (z∈[16,22])
107
+ are both fixed on crank_shaft. pinion meshes externally with bull_gear (module 2.5, center distance 50), reduction ratio 3.
108
+ - crank_pin is fixed in the 6 mm hole of crank (z∈[16,28]); one end of pitman rotates about crank_pin (z∈[22,28]);
109
+ pitman_pin is fixed in the hole at the other end of pitman (z∈[22,34]).
110
+ - pivot_pin is fixed in the (-30,90) hole of frame (z∈[0,34]); the X=50 hole of beam fits on pivot_pin and rotates (z∈[28,34]),
111
+ the X=0 hole of beam fits on pitman_pin, and the X=130 end (horse head) extends to the other side of pivot_pin.
112
+ Crank 20, connecting rod 90, rear beam arm 50, ground link 94.9; the X=0 end of beam is on the +X side of pivot_pin.
113
+ - Over a full crank revolution the walking beam oscillates by about 47.7°. Gears must not interfere, and meshing teeth must be phased correctly.
114
+ Run check_motion on motor_shaft (one full turn), confirm there is no interference, then save.
115
  motion:
116
  driver: motor_shaft
117
  sweep_deg: 360
assembly/cases/quick_return_shaper.yaml CHANGED
@@ -8,61 +8,93 @@ parts:
8
  prompt: |
9
  创建床身板:在 front_plane 上画矩形,X 从 -100 到 150 mm,Y 从 -100 到 87 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(-48,0) 直径 10 mm,(0,-60) 直径 8 mm。不要抽壳。
 
 
 
11
  - id: qr_shaft
12
  extra_tools: []
13
  prompt: |
14
  创建传动轴:直径 10 mm、长 22 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: qr_gear
16
  extra_tools:
17
  - spur_gear
18
  prompt: |
19
  创建渐开线直齿轮,模数 2 mm,齿数 36,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
20
  - id: qr_pinion
21
  extra_tools:
22
  - spur_gear
23
  prompt: |
24
  创建渐开线直齿轮,模数 2 mm,齿数 12,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
25
  - id: qr_handwheel
26
  extra_tools: []
27
  prompt: |
28
  创建手轮:外径 50 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(16,0) 直径 6 mm。
 
 
29
  - id: qr_crank
30
  extra_tools: []
31
  prompt: |
32
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 20 mm,两端半圆的圆心分别在原点和 (25,0),向 +Z 拉伸 6 mm。
33
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=25 处直径 8 mm。
 
 
 
34
  - id: qr_crank_pin
35
  extra_tools: []
36
  prompt: |
37
  创建曲柄销:直径 8 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
38
  - id: qr_block
39
  extra_tools: []
40
  prompt: |
41
  创建滑块:在 front_plane 上画矩形,X 从 -14 到 14 mm,Y 从 -8 到 8 mm,向 +Z 拉伸 6 mm。
42
  开贯穿孔:(0,0) 直径 8 mm。不要抽壳。
 
 
 
43
  - id: qr_pivot
44
  extra_tools: []
45
  prompt: |
46
  创建摆杆轴:直径 8 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
47
  - id: qr_lever
48
  extra_tools: []
49
  prompt: |
50
  创建摆杆:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (140,0),向 +Z 拉伸 6 mm。
51
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=140 处直径 6 mm。
 
 
 
52
  - id: qr_pin12
53
  extra_tools: []
54
  prompt: |
55
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
56
  - id: qr_rod
57
  extra_tools: []
58
  prompt: |
59
  创建连杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (50,0),向 +Z 拉伸 6 mm。
60
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=50 处直径 6 mm。
 
 
 
61
  - id: qr_ram
62
  extra_tools: []
63
  prompt: |
64
  创建滑枕:在 front_plane 上画矩形,X 从 -30 到 30 mm,Y 从 -8 到 8 mm��向 +Z 拉伸 6 mm。
65
  开贯穿孔:(0,0) 直径 6 mm。不要抽壳。
 
 
 
66
  gold_roles:
67
  frame: qr_frame
68
  crank_shaft: qr_shaft
@@ -94,6 +126,20 @@ assembly:
94
  孔心始终在 y=95 的直线上(ram 的下沿面与 frame 的上沿面 y=87 平齐),位于 tip_pin 的 +X 侧。
95
  - 曲柄 25、摆杆 140(轴心距曲柄轴 60)、连杆 50。曲柄一整圈:摆杆摆角约 49.2°,滑枕行程约 116.7 mm。各齿轮互不穿模,啮合齿相位要对上。
96
  对 crank_shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  motion:
98
  driver: crank_shaft
99
  sweep_deg: 360
 
8
  prompt: |
9
  创建床身板:在 front_plane 上画矩形,X 从 -100 到 150 mm,Y 从 -100 到 87 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(-48,0) 直径 10 mm,(0,-60) 直径 8 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the bed plate: on front_plane draw a rectangle with X from -100 to 150 mm and Y from -100 to 87 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm, (-48,0) diameter 10 mm, (0,-60) diameter 8 mm. Do not shell.
14
  - id: qr_shaft
15
  extra_tools: []
16
  prompt: |
17
  创建传动轴:直径 10 mm、长 22 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the transmission shaft: a cylinder 10 mm in diameter and 22 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: qr_gear
21
  extra_tools:
22
  - spur_gear
23
  prompt: |
24
  创建渐开线直齿轮,模数 2 mm,齿数 36,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
25
+ prompt_en: |
26
+ Create an involute spur gear: module 2 mm, 36 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
27
  - id: qr_pinion
28
  extra_tools:
29
  - spur_gear
30
  prompt: |
31
  创建渐开线直齿轮,模数 2 mm,齿数 12,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
32
+ prompt_en: |
33
+ Create an involute spur gear: module 2 mm, 12 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
34
  - id: qr_handwheel
35
  extra_tools: []
36
  prompt: |
37
  创建手轮:外径 50 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(16,0) 直径 6 mm。
38
+ prompt_en: |
39
+ Create the handwheel: a disk with outer diameter 50 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 10 mm. Also cut through holes: (16,0) diameter 6 mm.
40
  - id: qr_crank
41
  extra_tools: []
42
  prompt: |
43
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 20 mm,两端半圆的圆心分别在原点和 (25,0),向 +Z 拉伸 6 mm。
44
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=25 处直径 8 mm。
45
+ prompt_en: |
46
+ Create the crank: on front_plane draw a bar with rounded ends, 20 mm wide, with the end-arc centers at the origin and at (25,0), and extrude it 6 mm toward +Z.
47
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=25 diameter 8 mm.
48
  - id: qr_crank_pin
49
  extra_tools: []
50
  prompt: |
51
  创建曲柄销:直径 8 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
52
+ prompt_en: |
53
+ Create the crank pin: a cylinder 8 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
54
  - id: qr_block
55
  extra_tools: []
56
  prompt: |
57
  创建滑块:在 front_plane 上画矩形,X 从 -14 到 14 mm,Y 从 -8 到 8 mm,向 +Z 拉伸 6 mm。
58
  开贯穿孔:(0,0) 直径 8 mm。不要抽壳。
59
+ prompt_en: |
60
+ Create the slider: on front_plane draw a rectangle with X from -14 to 14 mm and Y from -8 to 8 mm, and extrude it 6 mm toward +Z.
61
+ Cut through holes: (0,0) diameter 8 mm. Do not shell.
62
  - id: qr_pivot
63
  extra_tools: []
64
  prompt: |
65
  创建摆杆轴:直径 8 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
66
+ prompt_en: |
67
+ Create the lever pivot: a cylinder 8 mm in diameter and 26 mm long, axis along Z, extruded from Z=0 toward +Z.
68
  - id: qr_lever
69
  extra_tools: []
70
  prompt: |
71
  创建摆杆:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (140,0),向 +Z 拉伸 6 mm。
72
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=140 处直径 6 mm。
73
+ prompt_en: |
74
+ Create the lever: on front_plane draw a bar with rounded ends, 16 mm wide, with the end-arc centers at the origin and at (140,0), and extrude it 6 mm toward +Z.
75
+ Cut through holes on the X axis: at X=0 diameter 8 mm, at X=140 diameter 6 mm.
76
  - id: qr_pin12
77
  extra_tools: []
78
  prompt: |
79
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
80
+ prompt_en: |
81
+ Create the hinge pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
82
  - id: qr_rod
83
  extra_tools: []
84
  prompt: |
85
  创建连杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (50,0),向 +Z 拉伸 6 mm。
86
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=50 处直径 6 mm。
87
+ prompt_en: |
88
+ Create the link: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (50,0), and extrude it 6 mm toward +Z.
89
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=50 diameter 6 mm.
90
  - id: qr_ram
91
  extra_tools: []
92
  prompt: |
93
  创建滑枕:在 front_plane 上画矩形,X 从 -30 到 30 mm,Y 从 -8 到 8 mm��向 +Z 拉伸 6 mm。
94
  开贯穿孔:(0,0) 直径 6 mm。不要抽壳。
95
+ prompt_en: |
96
+ Create the ram: on front_plane draw a rectangle with X from -30 to 30 mm and Y from -8 to 8 mm, and extrude it 6 mm toward +Z.
97
+ Cut through holes: (0,0) diameter 6 mm. Do not shell.
98
  gold_roles:
99
  frame: qr_frame
100
  crank_shaft: qr_shaft
 
126
  孔心始终在 y=95 的直线上(ram 的下沿面与 frame 的上沿面 y=87 平齐),位于 tip_pin 的 +X 侧。
127
  - 曲柄 25、摆杆 140(轴心距曲柄轴 60)、连杆 50。曲柄一整圈:摆杆摆角约 49.2°,滑枕行程约 116.7 mm。各齿轮互不穿模,啮合齿相位要对上。
128
  对 crank_shaft 做 check_motion(一整圈),确认无穿模后再保存。
129
+ prompt_en: |
130
+ Assemble the quick-return mechanism of a shaping machine: the crank drives a block that slides on a slotted lever, and the top of the lever pushes the ram back and forth through a link, with a slow cutting stroke and a fast return stroke. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
131
+ - frame is fixed, z∈[0,8]. Crank shaft hole (0,0) and motor shaft hole (-48,0) of diameter 10, lever pivot hole (0,-60) of diameter 8.
132
+ - crank_shaft passes through the (0,0) hole and rotates about Z (z∈[-8,14]); the 36-tooth crank_gear is fixed on it (z∈[-8,0]), and the 10 mm hole of crank is fixed on it (z∈[8,14]).
133
+ crank_pin is fixed in the 8 mm hole of crank (z∈[8,20]).
134
+ - motor_shaft passes through the (-48,0) hole and rotates about Z (z∈[-14,8]); the 12-tooth pinion (z∈[-8,0]) and the center hole of handwheel (z∈[-14,-8]) are fixed on it.
135
+ pinion meshes externally with crank_gear (module 2, center distance 48), reduction ratio 3.
136
+ - pivot is fixed in the (0,-60) hole (z∈[0,26]); the 8 mm hole of lever fits on pivot and rotates (z∈[20,26]).
137
+ - The hole of block fits on crank_pin and rotates (z∈[14,20]), and block can only slide along the body of lever: the hole center of block always stays on the line through the two holes of lever, with their long sides parallel.
138
+ - tip_pin is fixed in the 6 mm hole of lever (z∈[20,32]); the origin hole of rod fits on tip_pin and rotates (z∈[26,32]);
139
+ ram_pin is fixed in the other hole of rod (z∈[26,38]); the hole of ram fits on ram_pin and rotates (z∈[32,38]), and ram can only move along the X direction of frame,
140
+ with its hole center always on the line y=95 (the lower face of ram is flush with the upper face y=87 of frame), on the +X side of tip_pin.
141
+ - Crank 25, lever 140 (pivot 60 from the crank shaft), link 50. Over one full crank revolution: lever swing about 49.2°, ram stroke about 116.7 mm. Gears must not interfere, and meshing teeth must be phased correctly.
142
+ Run check_motion on crank_shaft (one full turn), confirm there is no interference, then save.
143
  motion:
144
  driver: crank_shaft
145
  sweep_deg: 360
assembly/cases/radial_engine.yaml CHANGED
@@ -8,47 +8,73 @@ parts:
8
  prompt: |
9
  创建机匣板:在 front_plane 上画矩形,X 从 -110 到 110 mm,Y 从 -110 到 110 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm。不要抽壳。
 
 
 
11
  - id: re_shaft
12
  extra_tools: []
13
  prompt: |
14
  创建曲轴:直径 10 mm、长 28 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: re_prop
16
  extra_tools: []
17
  prompt: |
18
  创建螺旋桨:在 front_plane 上画矩形,X 从 -90 到 90 mm,Y 从 -8 到 8 mm,向 +Z 拉伸 6 mm。
19
  开贯穿孔:(0,0) 直径 10 mm。不要抽壳。
 
 
 
20
  - id: re_crank
21
  extra_tools: []
22
  prompt: |
23
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 20 mm,两端半圆的圆心分别在原点和 (15,0),向 +Z 拉伸 6 mm。
24
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=15 处直径 8 mm。
 
 
 
25
  - id: re_crank_pin
26
  extra_tools: []
27
  prompt: |
28
  创建曲柄销:直径 8 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
29
  - id: re_flange
30
  extra_tools: []
31
  prompt: |
32
  创建主连杆法兰:外径 60 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 8 mm。另开贯穿孔:(0,-26) 直径 6 mm,(0,26) 直径 6 mm,(-26,0) 直径 6 mm。
 
 
33
  - id: re_master
34
  extra_tools: []
35
  prompt: |
36
  创建主连杆:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (70,0),向 +Z 拉伸 6 mm。
37
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=70 处直径 6 mm。
 
 
 
38
  - id: re_rod
39
  extra_tools: []
40
  prompt: |
41
  创建副连杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (44,0),向 +Z 拉伸 6 mm。
42
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=44 处直径 6 mm。
 
 
 
43
  - id: re_pin12
44
  extra_tools: []
45
  prompt: |
46
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
47
  - id: re_piston
48
  extra_tools: []
49
  prompt: |
50
  创建活塞:在 front_plane 上画矩形,X 从 -12 到 12 mm,Y 从 -12 到 12 mm,向 +Z 拉伸 6 mm。
51
  开贯穿孔:(0,0) 直径 6 mm。不要抽壳。
 
 
 
52
  gold_roles:
53
  frame: re_frame
54
  shaft: re_shaft
@@ -86,6 +112,20 @@ assembly:
86
  - piston_e 孔心始终在 y=0 直线上、+X 侧;piston_w 在 y=0 直线上、−X 侧;piston_s 在 x=0 直线上、−Y 侧(都只能沿各自导路移动)。
87
  - 曲柄 15、主连杆 70、副连杆 44、法兰铰孔半径 26。四缸行程分别约 上 30.0、右 30.2、左 30.2、下 30.0 mm。
88
  对 shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  motion:
90
  driver: shaft
91
  sweep_deg: 360
 
8
  prompt: |
9
  创建机匣板:在 front_plane 上画矩形,X 从 -110 到 110 mm,Y 从 -110 到 110 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the casing plate: on front_plane draw a rectangle with X from -110 to 110 mm and Y from -110 to 110 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm. Do not shell.
14
  - id: re_shaft
15
  extra_tools: []
16
  prompt: |
17
  创建曲轴:直径 10 mm、长 28 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the crankshaft: a cylinder 10 mm in diameter and 28 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: re_prop
21
  extra_tools: []
22
  prompt: |
23
  创建螺旋桨:在 front_plane 上画矩形,X 从 -90 到 90 mm,Y 从 -8 到 8 mm,向 +Z 拉伸 6 mm。
24
  开贯穿孔:(0,0) 直径 10 mm。不要抽壳。
25
+ prompt_en: |
26
+ Create the propeller: on front_plane draw a rectangle with X from -90 to 90 mm and Y from -8 to 8 mm, and extrude it 6 mm toward +Z.
27
+ Cut through holes: (0,0) diameter 10 mm. Do not shell.
28
  - id: re_crank
29
  extra_tools: []
30
  prompt: |
31
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 20 mm,两端半圆的圆心分别在原点和 (15,0),向 +Z 拉伸 6 mm。
32
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=15 处直径 8 mm。
33
+ prompt_en: |
34
+ Create the crank: on front_plane draw a bar with rounded ends, 20 mm wide, with the end-arc centers at the origin and at (15,0), and extrude it 6 mm toward +Z.
35
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=15 diameter 8 mm.
36
  - id: re_crank_pin
37
  extra_tools: []
38
  prompt: |
39
  创建曲柄销:直径 8 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
40
+ prompt_en: |
41
+ Create the crank pin: a cylinder 8 mm in diameter and 18 mm long, axis along Z, extruded from Z=0 toward +Z.
42
  - id: re_flange
43
  extra_tools: []
44
  prompt: |
45
  创建主连杆法兰:外径 60 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 8 mm。另开贯穿孔:(0,-26) 直径 6 mm,(0,26) 直径 6 mm,(-26,0) 直径 6 mm。
46
+ prompt_en: |
47
+ Create the master rod flange: a disk with outer diameter 60 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 8 mm. Also cut through holes: (0,-26) diameter 6 mm, (0,26) diameter 6 mm, (-26,0) diameter 6 mm.
48
  - id: re_master
49
  extra_tools: []
50
  prompt: |
51
  创建主连杆:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (70,0),向 +Z 拉伸 6 mm。
52
  在 X 轴上开贯穿孔:X=0 处直径 8 mm,X=70 处直径 6 mm。
53
+ prompt_en: |
54
+ Create the master rod: on front_plane draw a bar with rounded ends, 16 mm wide, with the end-arc centers at the origin and at (70,0), and extrude it 6 mm toward +Z.
55
+ Cut through holes on the X axis: at X=0 diameter 8 mm, at X=70 diameter 6 mm.
56
  - id: re_rod
57
  extra_tools: []
58
  prompt: |
59
  创建副连杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (44,0),向 +Z 拉伸 6 mm。
60
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=44 处直径 6 mm。
61
+ prompt_en: |
62
+ Create the articulated rod: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (44,0), and extrude it 6 mm toward +Z.
63
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=44 diameter 6 mm.
64
  - id: re_pin12
65
  extra_tools: []
66
  prompt: |
67
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
68
+ prompt_en: |
69
+ Create the hinge pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
70
  - id: re_piston
71
  extra_tools: []
72
  prompt: |
73
  创建活塞:在 front_plane 上画矩形,X 从 -12 到 12 mm,Y 从 -12 到 12 mm,向 +Z 拉伸 6 mm。
74
  开贯穿孔:(0,0) 直径 6 mm。不要抽壳。
75
+ prompt_en: |
76
+ Create the piston: on front_plane draw a rectangle with X from -12 to 12 mm and Y from -12 to 12 mm, and extrude it 6 mm toward +Z.
77
+ Cut through holes: (0,0) diameter 6 mm. Do not shell.
78
  gold_roles:
79
  frame: re_frame
80
  shaft: re_shaft
 
112
  - piston_e 孔心始终在 y=0 直线上、+X 侧;piston_w 在 y=0 直线上、−X 侧;piston_s 在 x=0 直线上、−Y 侧(都只能沿各自导路移动)。
113
  - 曲柄 15、主连杆 70、副连杆 44、法兰铰孔半径 26。四缸行程分别约 上 30.0、右 30.2、左 30.2、下 30.0 mm。
114
  对 shaft 做 check_motion(一整圈),确认无穿模后再保存。
115
+ prompt_en: |
116
+ Assemble a four-cylinder radial engine: one master rod plus three articulated rods, with the four cylinders arranged in a cross along ±X and ±Y and sharing one crank pin. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
117
+ - frame is fixed, z∈[0,8], crankshaft hole (0,0) of diameter 10. shaft passes through this hole and rotates about Z (z∈[-14,14]);
118
+ behind the plate the center hole of prop is fixed on shaft (z∈[-14,-8]); in front of the plate the 10 mm hole of crank is fixed on shaft (z∈[8,14]).
119
+ - crank_pin is fixed in the 8 mm hole of crank (z∈[8,26]). The 8 mm center hole of flange fits on crank_pin and rotates (z∈[14,20]);
120
+ the 8 mm hole of master also fits on crank_pin (z∈[20,26]) and is fixed to flange: the body of master points along the local +X direction of flange.
121
+ - Top cylinder: wrist_n is fixed in the 6 mm hole of master (z∈[20,32]), and the hole of piston_n fits on wrist_n and rotates (z∈[26,32]);
122
+ it can only move along the Y direction of frame, with its hole center always on the line x=0, on the +Y side of the crankshaft.
123
+ - The three 6 mm holes of flange (local (0,-26), (0,26), (-26,0)) each hold one hinge pin knuckle_e, knuckle_w, knuckle_s (z∈[14,26]).
124
+ The origin holes of the articulated rods rod_e, rod_w, rod_s fit on these three pins respectively and rotate (z∈[20,26]); wrist_e/w/s are fixed in the other holes of the articulated rods (z∈[20,32]);
125
+ the holes of piston_e/w/s fit on the corresponding wrist pins and rotate (z∈[26,32]).
126
+ - The hole center of piston_e always stays on the line y=0, +X side; piston_w on the line y=0, −X side; piston_s on the line x=0, −Y side (each can only move along its own guide).
127
+ - Crank 15, master rod 70, articulated rods 44, flange hinge-hole radius 26. The four cylinder strokes are about top 30.0, right 30.2, left 30.2 and bottom 30.0 mm.
128
+ Run check_motion on shaft (one full turn), confirm there is no interference, then save.
129
  motion:
130
  driver: shaft
131
  sweep_deg: 360
assembly/cases/robot_finger.yaml CHANGED
@@ -8,51 +8,79 @@ parts:
8
  prompt: |
9
  创建掌板:在 front_plane 上画矩形,X 从 -40 到 40 mm,Y 从 -60 到 8 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 8 mm,(14,0) 直径 4 mm。不要抽壳。
 
 
 
11
  - id: rf_p1
12
  extra_tools: []
13
  prompt: |
14
  创建近节指骨:在 front_plane 上画矩形,X 从 -8 到 58 mm,Y 从 -20 到 7 mm,向 +Z 拉伸 6 mm。
15
  开贯穿孔:(0,0) 直径 8 mm,(50,0) 直径 8 mm,(50,-14) 直径 4 mm。不要抽壳。
 
 
 
16
  - id: rf_p2
17
  extra_tools: []
18
  prompt: |
19
  创建中节指骨:在 front_plane 上画矩形,X 从 -12 到 48 mm,Y 从 -7 到 18 mm,向 +Z 拉伸 6 mm。
20
  开贯穿孔:(0,0) 直径 8 mm,(40,0) 直径 8 mm,(-7.27,11.96) 直径 4 mm。不要抽壳。
 
 
 
21
  - id: rf_p3
22
  extra_tools: []
23
  prompt: |
24
  创建远节指骨:在 front_plane 上画矩形,X 从 -13 到 34 mm,Y 从 -7 到 17 mm,向 +Z 拉伸 6 mm。
25
  开贯穿孔:(0,0) 直径 8 mm,(-8.73,10.94) 直径 4 mm。不要抽壳。
 
 
 
26
  - id: rf_link1
27
  extra_tools: []
28
  prompt: |
29
  创建耦合杆 1:在 front_plane 上画两端圆头的长条,宽 8 mm,两端半圆的圆心分别在原点和 (50,0),向 +Z 拉伸 6 mm。
30
  在 X 轴上开贯穿孔:X=0 处直径 4 mm,X=50 处直径 4 mm。
 
 
 
31
  - id: rf_link2
32
  extra_tools: []
33
  prompt: |
34
  创建耦合杆 2:在 front_plane 上画两端圆头的长条,宽 8 mm,两端半圆的圆心分别在原点和 (40,0),向 +Z 拉伸 6 mm。
35
  在 X 轴上开贯穿孔:X=0 处直径 4 mm,X=40 处直径 4 mm。
 
 
 
36
  - id: rf_m_pin
37
  extra_tools: []
38
  prompt: |
39
  创建掌指关节轴:直径 8 mm、长 20 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
40
  - id: rf_pin8
41
  extra_tools: []
42
  prompt: |
43
  创建指关节轴:直径 8 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
44
  - id: rf_pin4_14
45
  extra_tools: []
46
  prompt: |
47
  创建短耦合销:直径 4 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
48
  - id: rf_pin4_12
49
  extra_tools: []
50
  prompt: |
51
  创建耦合销:直径 4 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
52
  - id: rf_pin4_18
53
  extra_tools: []
54
  prompt: |
55
  创建长耦合销:直径 4 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
56
  gold_roles:
57
  palm: rf_palm
58
  m_pin: rf_m_pin
@@ -79,6 +107,17 @@ assembly:
79
  - link1(长 50)两孔分别套在 g0_pin、h1_pin 上(z∈[8,14]);link2(长 40)两孔分别套在 g1_pin、h2_pin 上(z∈[8,14])。
80
  两根耦合杆都与相邻指骨交叉(反平行四边形),因此近节向 +X 侧屈曲时中节、远节也随之向同侧屈曲;伸直时手指沿 +Y。
81
  - 近节转角这 1 个自由度保持自由(整机活动度 1),不要固定。各件互不穿模,装好后保存。
 
 
 
 
 
 
 
 
 
 
 
82
  motion:
83
  mode: poses
84
  frame: palm
 
8
  prompt: |
9
  创建掌板:在 front_plane 上画矩形,X 从 -40 到 40 mm,Y 从 -60 到 8 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 8 mm,(14,0) 直径 4 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the palm plate: on front_plane draw a rectangle with X from -40 to 40 mm and Y from -60 to 8 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 8 mm, (14,0) diameter 4 mm. Do not shell.
14
  - id: rf_p1
15
  extra_tools: []
16
  prompt: |
17
  创建近节指骨:在 front_plane 上画矩形,X 从 -8 到 58 mm,Y 从 -20 到 7 mm,向 +Z 拉伸 6 mm。
18
  开贯穿孔:(0,0) 直径 8 mm,(50,0) 直径 8 mm,(50,-14) 直径 4 mm。不要抽壳。
19
+ prompt_en: |
20
+ Create the proximal phalanx: on front_plane draw a rectangle with X from -8 to 58 mm and Y from -20 to 7 mm, and extrude it 6 mm toward +Z.
21
+ Cut through holes: (0,0) diameter 8 mm, (50,0) diameter 8 mm, (50,-14) diameter 4 mm. Do not shell.
22
  - id: rf_p2
23
  extra_tools: []
24
  prompt: |
25
  创建中节指骨:在 front_plane 上画矩形,X 从 -12 到 48 mm,Y 从 -7 到 18 mm,向 +Z 拉伸 6 mm。
26
  开贯穿孔:(0,0) 直径 8 mm,(40,0) 直径 8 mm,(-7.27,11.96) 直径 4 mm。不要抽壳。
27
+ prompt_en: |
28
+ Create the middle phalanx: on front_plane draw a rectangle with X from -12 to 48 mm and Y from -7 to 18 mm, and extrude it 6 mm toward +Z.
29
+ Cut through holes: (0,0) diameter 8 mm, (40,0) diameter 8 mm, (-7.27,11.96) diameter 4 mm. Do not shell.
30
  - id: rf_p3
31
  extra_tools: []
32
  prompt: |
33
  创建远节指骨:在 front_plane 上画矩形,X 从 -13 到 34 mm,Y 从 -7 到 17 mm,向 +Z 拉伸 6 mm。
34
  开贯穿孔:(0,0) 直径 8 mm,(-8.73,10.94) 直径 4 mm。不要抽壳。
35
+ prompt_en: |
36
+ Create the distal phalanx: on front_plane draw a rectangle with X from -13 to 34 mm and Y from -7 to 17 mm, and extrude it 6 mm toward +Z.
37
+ Cut through holes: (0,0) diameter 8 mm, (-8.73,10.94) diameter 4 mm. Do not shell.
38
  - id: rf_link1
39
  extra_tools: []
40
  prompt: |
41
  创建耦合杆 1:在 front_plane 上画两端圆头的长条,宽 8 mm,两端半圆的圆心分别在原点和 (50,0),向 +Z 拉伸 6 mm。
42
  在 X 轴上开贯穿孔:X=0 处直径 4 mm,X=50 处直径 4 mm。
43
+ prompt_en: |
44
+ Create the coupling link 1: on front_plane draw a bar with rounded ends, 8 mm wide, with the end-arc centers at the origin and at (50,0), and extrude it 6 mm toward +Z.
45
+ Cut through holes on the X axis: at X=0 diameter 4 mm, at X=50 diameter 4 mm.
46
  - id: rf_link2
47
  extra_tools: []
48
  prompt: |
49
  创建耦合杆 2:在 front_plane 上画两端圆头的长条,宽 8 mm,两端半圆的圆心分别在原点和 (40,0),向 +Z 拉伸 6 mm。
50
  在 X 轴上开贯穿孔:X=0 处直径 4 mm,X=40 处直径 4 mm。
51
+ prompt_en: |
52
+ Create the coupling link 2: on front_plane draw a bar with rounded ends, 8 mm wide, with the end-arc centers at the origin and at (40,0), and extrude it 6 mm toward +Z.
53
+ Cut through holes on the X axis: at X=0 diameter 4 mm, at X=40 diameter 4 mm.
54
  - id: rf_m_pin
55
  extra_tools: []
56
  prompt: |
57
  创建掌指关节轴:直径 8 mm、长 20 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
58
+ prompt_en: |
59
+ Create the knuckle joint pin: a cylinder 8 mm in diameter and 20 mm long, axis along Z, extruded from Z=0 toward +Z.
60
  - id: rf_pin8
61
  extra_tools: []
62
  prompt: |
63
  创建指关节轴:直径 8 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
64
+ prompt_en: |
65
+ Create the finger joint pin: a cylinder 8 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
66
  - id: rf_pin4_14
67
  extra_tools: []
68
  prompt: |
69
  创建短耦合销:直径 4 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
70
+ prompt_en: |
71
+ Create the short coupling pin: a cylinder 4 mm in diameter and 14 mm long, axis along Z, extruded from Z=0 toward +Z.
72
  - id: rf_pin4_12
73
  extra_tools: []
74
  prompt: |
75
  创建耦合销:直径 4 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
76
+ prompt_en: |
77
+ Create the coupling pin: a cylinder 4 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
78
  - id: rf_pin4_18
79
  extra_tools: []
80
  prompt: |
81
  创建长耦合销:直径 4 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
82
+ prompt_en: |
83
+ Create the long coupling pin: a cylinder 4 mm in diameter and 18 mm long, axis along Z, extruded from Z=0 toward +Z.
84
  gold_roles:
85
  palm: rf_palm
86
  m_pin: rf_m_pin
 
107
  - link1(长 50)两孔分别套在 g0_pin、h1_pin 上(z∈[8,14]);link2(长 40)两孔分别套在 g1_pin、h2_pin 上(z∈[8,14])。
108
  两根耦合杆都与相邻指骨交叉(反平行四边形),因此近节向 +X 侧屈曲时中节、远节也随之向同侧屈曲;伸直时手指沿 +Y。
109
  - 近节转角这 1 个自由度保持自由(整机活动度 1),不要固定。各件互不穿模,装好后保存。
110
+ prompt_en: |
111
+ Assemble a linkage-driven three-phalanx robot finger: only the proximal phalanx is driven, and the middle and distal phalanges follow through two crossed (anti-parallelogram) coupling links, so the whole finger flexes. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
112
+ - palm is fixed, z∈[0,8]: knuckle joint hole M=(0,0) of diameter 8, coupling hinge hole G0=(14,0) of diameter 4. m_pin is fixed in hole M (z∈[0,20]), and g0_pin in hole G0 (z∈[0,14]).
113
+ - The origin hole of p1 (proximal phalanx, holes (0,0) and (50,0) of diameter 8, (50,-14) of diameter 4) fits on m_pin and rotates (z∈[14,20]);
114
+ j1_pin is fixed in the (50,0) hole of p1 (z∈[14,26]), and g1_pin in the 4 mm hole of p1 (z∈[8,20]).
115
+ - The origin hole of p2 (middle phalanx, holes (0,0) and (40,0) of diameter 8, (-7.27,11.96) of diameter 4) fits on j1_pin and rotates (z∈[20,26]);
116
+ h1_pin is fixed in the 4 mm hole of p2 (z∈[8,26]), and j2_pin in the (40,0) hole of p2 (z∈[14,26]).
117
+ - The origin hole of p3 (distal phalanx, hole (0,0) of diameter 8, (-8.73,10.94) of diameter 4, fingertip at local (30,0)) fits on j2_pin and rotates (z∈[14,20]); h2_pin is fixed in the 4 mm hole of p3 (z∈[8,20]).
118
+ - The two holes of link1 (length 50) fit on g0_pin and h1_pin respectively (z∈[8,14]); the two holes of link2 (length 40) fit on g1_pin and h2_pin respectively (z∈[8,14]).
119
+ Both coupling links cross the adjacent phalanx (anti-parallelogram), so when the proximal phalanx flexes toward +X the middle and distal phalanges flex toward the same side; when straight, the finger points along +Y.
120
+ - Keep the 1 degree of freedom of the proximal-phalanx rotation free (mobility 1 for the whole finger); do not fix it. No parts may interfere. Save when assembled.
121
  motion:
122
  mode: poses
123
  frame: palm
assembly/cases/scara_arm.yaml CHANGED
@@ -8,28 +8,43 @@ parts:
8
  prompt: |
9
  创建底座:在 front_plane 上画矩形,X 从 -60 到 60 mm,Y 从 -60 到 60 mm,向 +Z 拉伸 10 mm。
10
  开贯穿孔:(0,0) 直径 10 mm。不要抽壳。
 
 
 
11
  - id: sc_column
12
  extra_tools: []
13
  prompt: |
14
  创建立柱:直径 10 mm、长 40 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: sc_upper_arm
16
  extra_tools: []
17
  prompt: |
18
  创建大臂:在 front_plane 上画两端圆头的长条,宽 30 mm,两端半圆的圆心分别在原点和 (150,0),向 +Z 拉伸 10 mm。
19
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=150 处直径 10 mm。
 
 
 
20
  - id: sc_elbow_pin
21
  extra_tools: []
22
  prompt: |
23
  创建肘销:直径 10 mm、长 20 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
24
  - id: sc_forearm
25
  extra_tools: []
26
  prompt: |
27
  创建小臂:在 front_plane 上画两端圆头的长条,宽 24 mm,两端半圆的圆心分别在原点和 (120,0),向 +Z 拉伸 10 mm。
28
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=120 处直径 10 mm。
 
 
 
29
  - id: sc_quill
30
  extra_tools: []
31
  prompt: |
32
  创建升降杆:直径 10 mm、长 100 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
33
  gold_roles:
34
  base: sc_base
35
  column: sc_column
@@ -45,6 +60,13 @@ assembly:
45
  - forearm 的原点孔套在 elbow_pin 上绕 Z 转动(z∈[40,50])。
46
  - quill 插在 forearm 的 X=120 孔里,可沿 Z 升降、也可绕自身轴线转动(圆柱副);初始 z∈[0,100]。
47
  - 两个转角、升降与 quill 自转都保持自由(整机活动度 4),不要固定。各件互不穿模,装好后保存。
 
 
 
 
 
 
 
48
  motion:
49
  mode: poses
50
  frame: base
 
8
  prompt: |
9
  创建底座:在 front_plane 上画矩形,X 从 -60 到 60 mm,Y 从 -60 到 60 mm,向 +Z 拉伸 10 mm。
10
  开贯穿孔:(0,0) 直径 10 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the base: on front_plane draw a rectangle with X from -60 to 60 mm and Y from -60 to 60 mm, and extrude it 10 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm. Do not shell.
14
  - id: sc_column
15
  extra_tools: []
16
  prompt: |
17
  创建立柱:直径 10 mm、长 40 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the column: a cylinder 10 mm in diameter and 40 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: sc_upper_arm
21
  extra_tools: []
22
  prompt: |
23
  创建大臂:在 front_plane 上画两端圆头的长条,宽 30 mm,两端半圆的圆心分别在原点和 (150,0),向 +Z 拉伸 10 mm。
24
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=150 处直径 10 mm。
25
+ prompt_en: |
26
+ Create the main arm: on front_plane draw a bar with rounded ends, 30 mm wide, with the end-arc centers at the origin and at (150,0), and extrude it 10 mm toward +Z.
27
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=150 diameter 10 mm.
28
  - id: sc_elbow_pin
29
  extra_tools: []
30
  prompt: |
31
  创建肘销:直径 10 mm、长 20 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
32
+ prompt_en: |
33
+ Create the elbow pin: a cylinder 10 mm in diameter and 20 mm long, axis along Z, extruded from Z=0 toward +Z.
34
  - id: sc_forearm
35
  extra_tools: []
36
  prompt: |
37
  创建小臂:在 front_plane 上画两端圆头的长条,宽 24 mm,两端半圆的圆心分别在原点和 (120,0),向 +Z 拉伸 10 mm。
38
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=120 处直径 10 mm。
39
+ prompt_en: |
40
+ Create the forearm: on front_plane draw a bar with rounded ends, 24 mm wide, with the end-arc centers at the origin and at (120,0), and extrude it 10 mm toward +Z.
41
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=120 diameter 10 mm.
42
  - id: sc_quill
43
  extra_tools: []
44
  prompt: |
45
  创建升降杆:直径 10 mm、长 100 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
46
+ prompt_en: |
47
+ Create the quill: a cylinder 10 mm in diameter and 100 mm long, axis along Z, extruded from Z=0 toward +Z.
48
  gold_roles:
49
  base: sc_base
50
  column: sc_column
 
60
  - forearm 的原点孔套在 elbow_pin 上绕 Z 转动(z∈[40,50])。
61
  - quill 插在 forearm 的 X=120 孔里,可沿 Z 升降、也可绕自身轴线转动(圆柱副);初始 z∈[0,100]。
62
  - 两个转角、升降与 quill 自转都保持自由(整机活动度 4),不要固定。各件互不穿模,装好后保存。
63
+ prompt_en: |
64
+ Assemble a SCARA robot arm. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
65
+ - base is fixed, z∈[0,10], center hole at (0,0). column is fixed in the center hole (z∈[0,40]).
66
+ - The origin hole of upper_arm fits on column and rotates about Z (z∈[30,40]); elbow_pin is fixed in the X=150 hole of upper_arm (z∈[30,50]).
67
+ - The origin hole of forearm fits on elbow_pin and rotates about Z (z∈[40,50]).
68
+ - quill is inserted in the X=120 hole of forearm and can move up and down along Z and rotate about its own axis (cylindrical pair); initially z∈[0,100].
69
+ - Keep the two rotations, the vertical travel and the quill rotation free (mobility 4 for the whole arm); do not fix them. No parts may interfere. Save when assembled.
70
  motion:
71
  mode: poses
72
  frame: base
assembly/cases/scissor_lift.yaml CHANGED
@@ -8,33 +8,51 @@ parts:
8
  prompt: |
9
  创建立板:在 front_plane 上画矩形,X 从 -40 到 170 mm,Y 从 -30 到 330 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 6 mm。不要抽壳。
 
 
 
11
  - id: sl_arm
12
  extra_tools: []
13
  prompt: |
14
  创建剪叉臂:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (120,0),向 +Z 拉伸 6 mm。
15
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=60 处直径 6 mm,X=120 处直径 6 mm。
 
 
 
16
  - id: sl_pin12
17
  extra_tools: []
18
  prompt: |
19
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
20
  - id: sl_pin18
21
  extra_tools: []
22
  prompt: |
23
  创建滑块销:直径 6 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
24
  - id: sl_pin20
25
  extra_tools: []
26
  prompt: |
27
  创建底铰销:直径 6 mm、长 20 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
28
  - id: sl_block
29
  extra_tools: []
30
  prompt: |
31
  创建滑块:在 front_plane 上画矩形,X 从 -10 到 10 mm,Y 从 -8 到 8 mm,向 +Z 拉伸 6 mm。
32
  开贯穿孔:(0,0) 直径 6 mm。不要抽壳。
 
 
 
33
  - id: sl_platform
34
  extra_tools: []
35
  prompt: |
36
  创建平台:在 front_plane 上画矩形,X 从 -20 到 140 mm,Y 从 -8 到 8 mm,向 +Z 拉伸 6 mm。
37
  开贯穿孔:(0,0) 直径 6 mm。不要抽壳。
 
 
 
38
  gold_roles:
39
  frame: sl_frame
40
  base_pin: sl_pin20
@@ -70,6 +88,18 @@ assembly:
70
  - 顶部:top_pin 固定在 b3 的末孔(z∈[20,32]),platform 的孔套在上面转动(z∈[26,32],长边沿 X 向右伸出);
71
  tb_pin 固定在 a3 的末孔(z∈[14,26]),tblock 的孔套在上面转动(z∈[20,26]),tblock 只能沿 platform 的长边方向滑动、孔心在 platform 长边中线上。
72
  - 升降这 1 个自由度保持自由(整机活动度 1),不要固定 slider 位置。各件互不穿模,装好后保存。
 
 
 
 
 
 
 
 
 
 
 
 
73
  motion:
74
  mode: poses
75
  frame: frame
 
8
  prompt: |
9
  创建立板:在 front_plane 上画矩形,X 从 -40 到 170 mm,Y 从 -30 到 330 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 6 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the upright plate: on front_plane draw a rectangle with X from -40 to 170 mm and Y from -30 to 330 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 6 mm. Do not shell.
14
  - id: sl_arm
15
  extra_tools: []
16
  prompt: |
17
  创建剪叉臂:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (120,0),向 +Z 拉伸 6 mm。
18
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=60 处直径 6 mm,X=120 处直径 6 mm。
19
+ prompt_en: |
20
+ Create the scissor arm: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (120,0), and extrude it 6 mm toward +Z.
21
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=60 diameter 6 mm, at X=120 diameter 6 mm.
22
  - id: sl_pin12
23
  extra_tools: []
24
  prompt: |
25
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
26
+ prompt_en: |
27
+ Create the hinge pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
28
  - id: sl_pin18
29
  extra_tools: []
30
  prompt: |
31
  创建滑块销:直径 6 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
32
+ prompt_en: |
33
+ Create the slider pin: a cylinder 6 mm in diameter and 18 mm long, axis along Z, extruded from Z=0 toward +Z.
34
  - id: sl_pin20
35
  extra_tools: []
36
  prompt: |
37
  创建底铰销:直径 6 mm、长 20 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
38
+ prompt_en: |
39
+ Create the bottom hinge pin: a cylinder 6 mm in diameter and 20 mm long, axis along Z, extruded from Z=0 toward +Z.
40
  - id: sl_block
41
  extra_tools: []
42
  prompt: |
43
  创建滑块:在 front_plane 上画矩形,X 从 -10 到 10 mm,Y 从 -8 到 8 mm,向 +Z 拉伸 6 mm。
44
  开贯穿孔:(0,0) 直径 6 mm。不要抽壳。
45
+ prompt_en: |
46
+ Create the slider: on front_plane draw a rectangle with X from -10 to 10 mm and Y from -8 to 8 mm, and extrude it 6 mm toward +Z.
47
+ Cut through holes: (0,0) diameter 6 mm. Do not shell.
48
  - id: sl_platform
49
  extra_tools: []
50
  prompt: |
51
  创建平台:在 front_plane 上画矩形,X 从 -20 到 140 mm,Y 从 -8 到 8 mm,向 +Z 拉伸 6 mm。
52
  开贯穿孔:(0,0) 直径 6 mm。不要抽壳。
53
+ prompt_en: |
54
+ Create the platform: on front_plane draw a rectangle with X from -20 to 140 mm and Y from -8 to 8 mm, and extrude it 6 mm toward +Z.
55
+ Cut through holes: (0,0) diameter 6 mm. Do not shell.
56
  gold_roles:
57
  frame: sl_frame
58
  base_pin: sl_pin20
 
88
  - 顶部:top_pin 固定在 b3 的末孔(z∈[20,32]),platform 的孔套在上面转动(z∈[26,32],长边沿 X 向右伸出);
89
  tb_pin 固定在 a3 的末孔(z∈[14,26]),tblock 的孔套在上面转动(z∈[20,26]),tblock 只能沿 platform 的长边方向滑动、孔心在 platform 长边中线上。
90
  - 升降这 1 个自由度保持自由(整机活动度 1),不要固定 slider 位置。各件互不穿模,装好后保存。
91
+ prompt_en: |
92
+ Assemble a three-stage scissor lift: the bottom slider moves horizontally, the three stages of scissor arms open and close together, and the platform rises and falls while staying level. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
93
+ - frame (a vertical upright plate in the XY plane) is fixed, z∈[0,8], bottom hinge hole (0,0) of diameter 6. Every scissor arm is a three-hole strip (hole spacing 60, length 120) with hole diameter 6.
94
+ - base_pin is fixed in the bottom hinge hole (z∈[0,20]). The origin hole of a1 fits on base_pin and rotates (z∈[14,20]).
95
+ - For each stage k=1,2,3: a_k is at z∈[14,20] and b_k at z∈[20,26]; the middle pin c_k is fixed in the middle hole of a_k (z∈[14,26]), and the middle hole of b_k fits on c_k, so the two arms cross as an X.
96
+ a_k runs from lower left to upper right, b_k from lower right to upper left; the left hinge points are all at x=0, and the right hinge points lie on one vertical line.
97
+ - slider_pin is fixed in the origin hole of b1 (z∈[8,26]); the hole of slider fits on slider_pin and rotates (z∈[8,14]); slider can only move along the X direction of frame, with its hole center always at y=0.
98
+ - Between stages: jl1 and jl2 are fixed in the end holes of b1 and b2 respectively (left side, z∈[14,26]), and the origin holes of a2 and a3 fit on them in turn;
99
+ jr1 and jr2 are fixed in the end holes of a1 and a2 respectively (right side, z∈[14,26]), and the origin holes of b2 and b3 fit on them in turn.
100
+ - Top: top_pin is fixed in the end hole of b3 (z∈[20,32]), and the hole of platform fits on it and rotates (z∈[26,32], with the long side extending to the right along X);
101
+ tb_pin is fixed in the end hole of a3 (z∈[14,26]), and the hole of tblock fits on it and rotates (z∈[20,26]); tblock can only slide along the long side of platform, with its hole center on the center line of the long side of platform.
102
+ - Keep the 1 lifting degree of freedom free (mobility 1 for the whole lift); do not fix the slider position. No parts may interfere. Save when assembled.
103
  motion:
104
  mode: poses
105
  frame: frame
assembly/cases/sewing_machine.yaml CHANGED
@@ -15,56 +15,86 @@ parts:
15
  创建机体板:在 front_plane 上画矩形,X 从 -80 到 70 mm,Y 从 -40 到 140 mm,向 +Z 拉伸 8 mm。
16
  开三个贯穿孔:(0,0) 直径 10.4 mm(主轴承),(-45,0) 直径 10.4 mm(旋梭轴承),(36,-27) 直径 6.4 mm(摇杆销孔)。
17
  原点在主轴承孔轴线。不要抽壳。
 
 
 
 
18
  - id: sew_shaft
19
  extra_tools: []
20
  prompt: |
21
  创建轴:直径 10 mm,长 32 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
22
  - id: sew_crank
23
  extra_tools: []
24
  prompt: |
25
  创建针杆曲柄:两端圆头长条,两孔中心距 18 mm,宽 16 mm,两端各一个直径 10 mm 贯穿孔,向 +Z 拉伸 6 mm。
26
  原点在其中一个孔中心。
 
 
 
27
  - id: sew_pin
28
  extra_tools: []
29
  prompt: |
30
  创建销轴:直径 10 mm,长 20 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
31
  - id: sew_rod
32
  extra_tools: []
33
  prompt: |
34
  创建针杆连杆:两端圆头长条,两孔中心距 65 mm,宽 14 mm,两端直径 10 mm 贯穿孔,向 +Z 拉伸 6 mm。原点在一个孔中心。
 
 
35
  - id: sew_needle_bar
36
  extra_tools: []
37
  prompt: |
38
  创建针杆滑块:外径 20 mm、长 30 mm 的圆柱,轴线沿 Z,中心贯穿孔直径 10 mm,从 Z=0 向 +Z 拉伸。
 
 
39
  - id: sew_main_gear
40
  extra_tools: [spur_gear]
41
  prompt: |
42
  创建渐开线直齿轮,模数 1.5 mm,齿数 40,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z。优先 spur_gear。
 
 
43
  - id: sew_hook_gear
44
  extra_tools: [spur_gear]
45
  prompt: |
46
  创建渐开线直齿轮,模数 1.5 mm,齿数 20,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z。优先 spur_gear。
 
 
47
  - id: sew_hook
48
  extra_tools: []
49
  prompt: |
50
  创建旋梭盘:外径 40 mm、厚 8 mm 的圆盘,中心孔直径 10 mm,轴线沿 Z。
 
 
51
  - id: sew_feed_crank
52
  extra_tools: []
53
  prompt: |
54
  创建送布曲柄:两端圆头长条,两孔中心距 12 mm,宽 14 mm,向 +Z 拉伸 6 mm。
55
  原点孔直径 10 mm(套主轴),另一端孔直径 6 mm,两孔都贯穿。
 
 
 
56
  - id: sew_coupler
57
  extra_tools: []
58
  prompt: |
59
  创建送布连杆:两端圆头长条,两孔中心距 50 mm,宽 10 mm,两端直径 6 mm 贯穿孔,向 +Z 拉伸 6 mm。原点在一个孔中心。
 
 
60
  - id: sew_rocker
61
  extra_tools: []
62
  prompt: |
63
  创建送布摇杆:两端圆头长条,两孔中心距 36 mm,宽 10 mm,两端直径 6 mm 贯穿孔,向 +Z 拉伸 6 mm。原点在一个孔中心。
 
 
64
  - id: sew_rocker_pin
65
  extra_tools: []
66
  prompt: |
67
  创建摇杆销:直径 6 mm,长 38 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
68
 
69
  gold_roles:
70
  frame: sew_frame
@@ -99,6 +129,21 @@ assembly:
99
  板后 main_gear 与 hook_gear [-12,-4]、feed_crank [-18,-12]、feed_coupler [-24,-18]、feed_rocker [-30,-24]、hook [-20,-12];
100
  main_shaft [-18,14](不能伸进 feed_coupler 那层,否则连杆扫过主轴)、hook_shaft [-20,12]。
101
  对 main_shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
 
103
  motion:
104
  driver: main_shaft
 
15
  创建机体板:在 front_plane 上画矩形,X 从 -80 到 70 mm,Y 从 -40 到 140 mm,向 +Z 拉伸 8 mm。
16
  开三个贯穿孔:(0,0) 直径 10.4 mm(主轴承),(-45,0) 直径 10.4 mm(旋梭轴承),(36,-27) 直径 6.4 mm(摇杆销孔)。
17
  原点在主轴承孔轴线。不要抽壳。
18
+ prompt_en: |
19
+ Create the body plate: on front_plane draw a rectangle with X from -80 to 70 mm and Y from -40 to 140 mm, and extrude it 8 mm toward +Z.
20
+ Cut three through holes: (0,0) diameter 10.4 mm (main bearing), (-45,0) diameter 10.4 mm (hook bearing), (36,-27) diameter 6.4 mm (rocker pin hole).
21
+ The origin is on the axis of the main bearing hole. Do not shell.
22
  - id: sew_shaft
23
  extra_tools: []
24
  prompt: |
25
  创建轴:直径 10 mm,长 32 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。
26
+ prompt_en: |
27
+ Create a shaft: diameter 10 mm, length 32 mm, axis along Z, extruded from Z=0 toward +Z.
28
  - id: sew_crank
29
  extra_tools: []
30
  prompt: |
31
  创建针杆曲柄:两端圆头长条,两孔中心距 18 mm,宽 16 mm,两端各一个直径 10 mm 贯穿孔,向 +Z 拉伸 6 mm。
32
  原点在其中一个孔中心。
33
+ prompt_en: |
34
+ Create the needle-bar crank: a bar with rounded ends, 18 mm between the two hole centers, 16 mm wide, with a through hole of diameter 10 mm at each end, extruded 6 mm toward +Z.
35
+ The origin is at the center of one hole.
36
  - id: sew_pin
37
  extra_tools: []
38
  prompt: |
39
  创建销轴:直径 10 mm,长 20 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。
40
+ prompt_en: |
41
+ Create a pin: diameter 10 mm, length 20 mm, axis along Z, extruded from Z=0 toward +Z.
42
  - id: sew_rod
43
  extra_tools: []
44
  prompt: |
45
  创建针杆连杆:两端圆头长条,两孔中心距 65 mm,宽 14 mm,两端直径 10 mm 贯穿孔,向 +Z 拉伸 6 mm。原点在一个孔中心。
46
+ prompt_en: |
47
+ Create the needle-bar connecting rod: a bar with rounded ends, 65 mm between the two hole centers, 14 mm wide, through holes of diameter 10 mm at both ends, extruded 6 mm toward +Z. The origin is at the center of one hole.
48
  - id: sew_needle_bar
49
  extra_tools: []
50
  prompt: |
51
  创建针杆滑块:外径 20 mm、长 30 mm 的圆柱,轴线沿 Z,中心贯穿孔直径 10 mm,从 Z=0 向 +Z 拉伸。
52
+ prompt_en: |
53
+ Create the needle-bar slider: a cylinder with outer diameter 20 mm and length 30 mm, axis along Z, central through hole of diameter 10 mm, extruded from Z=0 toward +Z.
54
  - id: sew_main_gear
55
  extra_tools: [spur_gear]
56
  prompt: |
57
  创建渐开线直齿轮,模数 1.5 mm,齿数 40,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z。优先 spur_gear。
58
+ prompt_en: |
59
+ Create an involute spur gear: module 1.5 mm, 40 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z. Prefer spur_gear.
60
  - id: sew_hook_gear
61
  extra_tools: [spur_gear]
62
  prompt: |
63
  创建渐开线直齿轮,模数 1.5 mm,齿数 20,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z。优先 spur_gear。
64
+ prompt_en: |
65
+ Create an involute spur gear: module 1.5 mm, 20 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z. Prefer spur_gear.
66
  - id: sew_hook
67
  extra_tools: []
68
  prompt: |
69
  创建旋梭盘:外径 40 mm、厚 8 mm 的圆盘,中心孔直径 10 mm,轴线沿 Z。
70
+ prompt_en: |
71
+ Create the rotary hook disk: a disk with outer diameter 40 mm and thickness 8 mm, central hole diameter 10 mm, axis along Z.
72
  - id: sew_feed_crank
73
  extra_tools: []
74
  prompt: |
75
  创建送布曲柄:两端圆头长条,两孔中心距 12 mm,宽 14 mm,向 +Z 拉伸 6 mm。
76
  原点孔直径 10 mm(套主轴),另一端孔直径 6 mm,两孔都贯穿。
77
+ prompt_en: |
78
+ Create the feed crank: a bar with rounded ends, 12 mm between the two hole centers, 14 mm wide, extruded 6 mm toward +Z.
79
+ The origin hole has diameter 10 mm (fits the main shaft), the hole at the other end has diameter 6 mm; both holes go through.
80
  - id: sew_coupler
81
  extra_tools: []
82
  prompt: |
83
  创建送布连杆:两端圆头长条,两孔中心距 50 mm,宽 10 mm,两端直径 6 mm 贯穿孔,向 +Z 拉伸 6 mm。原点在一个孔中心。
84
+ prompt_en: |
85
+ Create the feed coupler: a bar with rounded ends, 50 mm between the two hole centers, 10 mm wide, through holes of diameter 6 mm at both ends, extruded 6 mm toward +Z. The origin is at the center of one hole.
86
  - id: sew_rocker
87
  extra_tools: []
88
  prompt: |
89
  创建送布摇杆:两端圆头长条,两孔中心距 36 mm,宽 10 mm,两端直径 6 mm 贯穿孔,向 +Z 拉伸 6 mm。原点在一个孔中心。
90
+ prompt_en: |
91
+ Create the feed rocker: a bar with rounded ends, 36 mm between the two hole centers, 10 mm wide, through holes of diameter 6 mm at both ends, extruded 6 mm toward +Z. The origin is at the center of one hole.
92
  - id: sew_rocker_pin
93
  extra_tools: []
94
  prompt: |
95
  创建摇杆销:直径 6 mm,长 38 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。
96
+ prompt_en: |
97
+ Create the rocker pin: diameter 6 mm, length 38 mm, axis along Z, extruded from Z=0 toward +Z.
98
 
99
  gold_roles:
100
  frame: sew_frame
 
129
  板后 main_gear 与 hook_gear [-12,-4]、feed_crank [-18,-12]、feed_coupler [-24,-18]、feed_rocker [-30,-24]、hook [-20,-12];
130
  main_shaft [-18,14](不能伸进 feed_coupler 那层,否则连杆扫过主轴)、hook_shaft [-20,12]。
131
  对 main_shaft 做 check_motion(一整圈),确认无穿模后再保存。
132
+ prompt_en: |
133
+ Assemble the main drive of a sewing machine. Do not treat the insertion coordinates as the final poses.
134
+ - frame is fixed. The main bearing hole is at the origin; the needle-bar slider should reciprocate along +Y of frame.
135
+ - main_shaft passes through the main bearing hole and rotates about Z; the big end of crank and the 10 mm holes of main_gear and feed_crank all turn 1:1 with main_shaft.
136
+ - crank_pin is fixed in the small end of crank; one end of needle_rod rotates about crank_pin and the other end about needle_pin;
137
+ needle_pin is fixed in the center hole of needle_bar; needle_bar can only move along the Y direction of frame. For one crank revolution the needle-bar stroke is 36 mm.
138
+ - hook_shaft passes through the hook bearing hole at (-45,0) and rotates about Z; hook_gear and hook turn 1:1 with hook_shaft.
139
+ The 40-tooth main_gear meshes externally with the 20-tooth hook_gear (center distance 45 mm), so the hook turns at double speed in the opposite direction.
140
+ - rocker_pin is fixed in the rocker pin hole at (36,-27); one end of feed_rocker rotates about rocker_pin;
141
+ one end of feed_coupler rotates about the 6 mm hole of feed_crank and the other end about the hole at the other end of feed_rocker, forming a crank-rocker four-bar.
142
+ - The needle-bar mechanism is in front of the plate (+Z), and the gears, hook and feed four-bar are behind the plate (−Z); the layers must not interfere. frame occupies z∈[0,8]; axial positions of the parts:
143
+ in front of the plate crank [8,14], needle_rod [14,20], needle_bar [20,50];
144
+ behind the plate main_gear and hook_gear [-12,-4], feed_crank [-18,-12], feed_coupler [-24,-18], feed_rocker [-30,-24], hook [-20,-12];
145
+ main_shaft [-18,14] (it must not reach into the feed_coupler layer, otherwise the coupler sweeps across the main shaft), hook_shaft [-20,12].
146
+ Run check_motion on main_shaft (one full turn), confirm there is no interference, then save.
147
 
148
  motion:
149
  driver: main_shaft
assembly/cases/spirograph.yaml CHANGED
@@ -8,61 +8,91 @@ parts:
8
  prompt: |
9
  创建底板:在 front_plane 上画矩形,X 从 -90 到 90 mm,Y 从 -110 到 80 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(0,-60) 直径 10 mm。不要抽壳。
 
 
 
11
  - id: sg_carrier_shaft
12
  extra_tools: []
13
  prompt: |
14
  创建行星架轴:直径 10 mm、长 28 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: sg_carrier_gear
16
  extra_tools:
17
  - spur_gear
18
  prompt: |
19
  创建渐开线直齿轮,模数 2 mm,齿数 45,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
20
  - id: sg_motor_shaft
21
  extra_tools: []
22
  prompt: |
23
  创建电机轴:直径 10 mm、长 22 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
24
  - id: sg_pinion
25
  extra_tools:
26
  - spur_gear
27
  prompt: |
28
  创建渐开线直齿轮,模数 2 mm,齿数 15,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
29
  - id: sg_handwheel
30
  extra_tools: []
31
  prompt: |
32
  创建手轮:外径 40 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(12,0) 直径 6 mm。
 
 
33
  - id: sg_ring
34
  extra_tools:
35
  - internal_gear
36
  prompt: |
37
  创建渐开线内齿圈,模数 1.5 mm,齿数 60,压力角 30°,齿宽 6 mm,外径 110 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 internal_gear。
 
 
38
  - id: sg_arm
39
  extra_tools: []
40
  prompt: |
41
  创建行星架:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (60,0),向 +Z 拉伸 6 mm。
42
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=30 处直径 10 mm,X=60 处直径 6 mm。
 
 
 
43
  - id: sg_planet
44
  extra_tools:
45
  - spur_gear
46
  prompt: |
47
  创建渐开线直齿轮,模数 1.5 mm,齿数 20,压力角 30°,齿宽 6 mm,轴孔直径 6 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
48
  - id: sg_axle
49
  extra_tools: []
50
  prompt: |
51
  创建行星轴:直径 6 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
52
  - id: sg_pen_arm_a
53
  extra_tools: []
54
  prompt: |
55
  创建笔杆 A:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (24,0),向 +Z 拉伸 6 mm。
56
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=24 处直径 4 mm。
 
 
 
57
  - id: sg_pen_arm_b
58
  extra_tools: []
59
  prompt: |
60
  创建笔杆 B:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (12,0),向 +Z 拉伸 6 mm。
61
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=12 处直径 4 mm。
 
 
 
62
  - id: sg_pen
63
  extra_tools: []
64
  prompt: |
65
  创建笔:直径 4 mm、长 16 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
66
  gold_roles:
67
  frame: sg_frame
68
  carrier_shaft: sg_carrier_shaft
@@ -93,6 +123,18 @@ assembly:
93
  - pen_arm_a(长 24)、pen_arm_b(长 12)的 6 mm 孔分别固定在 axle_a、axle_b 上(z∈[20,26]);pen_a、pen_b 固定在笔杆另一端 4 mm 孔里(z∈[20,36])。
94
  - 电机转 3 圈行星架反向转 1 圈;行星轮绝对转速是行星架的 2 倍、反向(与电机同向)。各齿轮互不穿模,啮合齿相位要对上。
95
  对 motor_shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
 
 
 
96
  motion:
97
  driver: motor_shaft
98
  sweep_deg: 360
 
8
  prompt: |
9
  创建底板:在 front_plane 上画矩形,X 从 -90 到 90 mm,Y 从 -110 到 80 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(0,-60) 直径 10 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the bottom plate: on front_plane draw a rectangle with X from -90 to 90 mm and Y from -110 to 80 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm, (0,-60) diameter 10 mm. Do not shell.
14
  - id: sg_carrier_shaft
15
  extra_tools: []
16
  prompt: |
17
  创建行星架轴:直径 10 mm、长 28 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the carrier shaft: a cylinder 10 mm in diameter and 28 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: sg_carrier_gear
21
  extra_tools:
22
  - spur_gear
23
  prompt: |
24
  创建渐开线直齿轮,模数 2 mm,齿数 45,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
25
+ prompt_en: |
26
+ Create an involute spur gear: module 2 mm, 45 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
27
  - id: sg_motor_shaft
28
  extra_tools: []
29
  prompt: |
30
  创建电机轴:直径 10 mm、长 22 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
31
+ prompt_en: |
32
+ Create the motor shaft: a cylinder 10 mm in diameter and 22 mm long, axis along Z, extruded from Z=0 toward +Z.
33
  - id: sg_pinion
34
  extra_tools:
35
  - spur_gear
36
  prompt: |
37
  创建渐开线直齿轮,模数 2 mm,齿数 15,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
38
+ prompt_en: |
39
+ Create an involute spur gear: module 2 mm, 15 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
40
  - id: sg_handwheel
41
  extra_tools: []
42
  prompt: |
43
  创建手轮:外径 40 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(12,0) 直径 6 mm。
44
+ prompt_en: |
45
+ Create the handwheel: a disk with outer diameter 40 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 10 mm. Also cut through holes: (12,0) diameter 6 mm.
46
  - id: sg_ring
47
  extra_tools:
48
  - internal_gear
49
  prompt: |
50
  创建渐开线内齿圈,模数 1.5 mm,齿数 60,压力角 30°,齿宽 6 mm,外径 110 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 internal_gear。
51
+ prompt_en: |
52
+ Create an involute internal ring gear: module 1.5 mm, 60 teeth, pressure angle 30°, face width 6 mm, outer diameter 110 mm, axis along Z, extruded from Z=0 toward +Z. Prefer internal_gear.
53
  - id: sg_arm
54
  extra_tools: []
55
  prompt: |
56
  创建行星架:在 front_plane 上画两端圆头的长条,宽 14 mm,两端半圆的圆心分别在原点和 (60,0),向 +Z 拉伸 6 mm。
57
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=30 处直径 10 mm,X=60 处直径 6 mm。
58
+ prompt_en: |
59
+ Create the planet carrier: on front_plane draw a bar with rounded ends, 14 mm wide, with the end-arc centers at the origin and at (60,0), and extrude it 6 mm toward +Z.
60
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=30 diameter 10 mm, at X=60 diameter 6 mm.
61
  - id: sg_planet
62
  extra_tools:
63
  - spur_gear
64
  prompt: |
65
  创建渐开线直齿轮,模数 1.5 mm,齿数 20,压力角 30°,齿宽 6 mm,轴孔直径 6 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
66
+ prompt_en: |
67
+ Create an involute spur gear: module 1.5 mm, 20 teeth, pressure angle 30°, face width 6 mm, bore diameter 6 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
68
  - id: sg_axle
69
  extra_tools: []
70
  prompt: |
71
  创建行星轴:直径 6 mm、长 18 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
72
+ prompt_en: |
73
+ Create the planet axle: a cylinder 6 mm in diameter and 18 mm long, axis along Z, extruded from Z=0 toward +Z.
74
  - id: sg_pen_arm_a
75
  extra_tools: []
76
  prompt: |
77
  创建笔杆 A:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (24,0),向 +Z 拉伸 6 mm。
78
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=24 处直径 4 mm。
79
+ prompt_en: |
80
+ Create the pen arm A: on front_plane draw a bar with rounded ends, 10 mm wide, with the end-arc centers at the origin and at (24,0), and extrude it 6 mm toward +Z.
81
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=24 diameter 4 mm.
82
  - id: sg_pen_arm_b
83
  extra_tools: []
84
  prompt: |
85
  创建笔杆 B:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (12,0),向 +Z 拉伸 6 mm。
86
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=12 处直径 4 mm。
87
+ prompt_en: |
88
+ Create the pen arm B: on front_plane draw a bar with rounded ends, 10 mm wide, with the end-arc centers at the origin and at (12,0), and extrude it 6 mm toward +Z.
89
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=12 diameter 4 mm.
90
  - id: sg_pen
91
  extra_tools: []
92
  prompt: |
93
  创建笔:直径 4 mm、长 16 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
94
+ prompt_en: |
95
+ Create the pen: a cylinder 4 mm in diameter and 16 mm long, axis along Z, extruded from Z=0 toward +Z.
96
  gold_roles:
97
  frame: sg_frame
98
  carrier_shaft: sg_carrier_shaft
 
123
  - pen_arm_a(长 24)、pen_arm_b(长 12)的 6 mm 孔分别固定在 axle_a、axle_b 上(z∈[20,26]);pen_a、pen_b 固定在笔杆另一端 4 mm 孔里(z∈[20,36])。
124
  - 电机转 3 圈行星架反向转 1 圈;行星轮绝对转速是行星架的 2 倍、反向(与电机同向)。各齿轮互不穿模,啮合齿相位要对上。
125
  对 motor_shaft 做 check_motion(一整圈),确认无穿模后再保存。
126
+ prompt_en: |
127
+ Assemble a spirograph (the internal ring gear is fixed, and two planets roll inside it, each carrying a pen that draws a hypotrochoid pattern). Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
128
+ - frame is fixed, z∈[0,8]. Center hole (0,0) and motor shaft hole (0,-60), diameter 10. The 60-tooth internal ring gear ring (module 1.5) is fixed on frame, coaxial with the center hole (z∈[8,14]).
129
+ - carrier_shaft passes through the center hole and rotates about Z (z∈[-8,20]); the 45-tooth carrier_gear (module 2) is fixed on it (z∈[-8,0]);
130
+ the X=30 hole of arm (three holes: 0, 30, 60) is fixed on carrier_shaft (z∈[14,20]).
131
+ - motor_shaft passes through the motor shaft hole and rotates about Z (z∈[-14,8]); the 15-tooth pinion (module 2, z∈[-8,0]) and the center hole of handwheel (z∈[-14,-8]) are fixed on it,
132
+ and pinion meshes externally with carrier_gear (center distance 60).
133
+ - axle_a and axle_b are inserted in the X=0 and X=60 holes of arm respectively and rotate about Z (z∈[8,26]); the 20-tooth planet_a/planet_b (module 1.5) are fixed on the corresponding axles (z∈[8,14]),
134
+ and both mesh internally with ring (center distance 30).
135
+ - The 6 mm holes of pen_arm_a (length 24) and pen_arm_b (length 12) are fixed on axle_a and axle_b respectively (z∈[20,26]); pen_a and pen_b are fixed in the 4 mm holes at the other ends of the pen arms (z∈[20,36]).
136
+ - For 3 motor revolutions the carrier turns 1 revolution in the opposite direction; the absolute speed of the planets is 2 times the carrier speed, in the opposite direction (the same direction as the motor). Gears must not interfere, and meshing teeth must be phased correctly.
137
+ Run check_motion on motor_shaft (one full turn), confirm there is no interference, then save.
138
  motion:
139
  driver: motor_shaft
140
  sweep_deg: 360
assembly/cases/star_reducer.yaml CHANGED
@@ -8,37 +8,54 @@ parts:
8
  prompt: |
9
  创建箱体板:在 front_plane 上画矩形,X 从 -60 到 60 mm,Y 从 -60 到 60 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(30,0) 直径 6 mm。不要抽壳。
 
 
 
11
  - id: sr_shaft26
12
  extra_tools: []
13
  prompt: |
14
  创建输入轴:直径 10 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: sr_output_shaft
16
  extra_tools: []
17
  prompt: |
18
  创建输出轴:直径 10 mm、长 20 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
19
  - id: sr_sun
20
  extra_tools:
21
  - spur_gear
22
  prompt: |
23
  创建渐开线直齿轮,模数 2 mm,齿数 12,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
24
  - id: sr_planet_pin
25
  extra_tools: []
26
  prompt: |
27
  创建惰轮销:直径 6 mm、长 16 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
28
  - id: sr_planet
29
  extra_tools:
30
  - spur_gear
31
  prompt: |
32
  创建渐开线直齿轮,模数 2 mm,齿数 18,压力角 30°,齿宽 8 mm,轴孔直径 6 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
33
  - id: sr_ring
34
  extra_tools:
35
  - internal_gear
36
  prompt: |
37
  创建渐开线内齿圈,模数 2 mm,齿数 48,压力角 30°,齿宽 8 mm,外径 106 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 internal_gear。
 
 
38
  - id: sr_cover
39
  extra_tools: []
40
  prompt: |
41
  创建输出盘:外径 106 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。
 
 
42
  gold_roles:
43
  frame: sr_frame
44
  input_shaft: sr_shaft26
@@ -58,6 +75,15 @@ assembly:
58
  都固定在 output_shaft 上。
59
  - sun 与 planet 外啮合、planet 与 ring 内啮合(模数 2,中心距都是 30)。输出转速为输入的 1/4、反向。各齿轮互不穿模,啮合齿相位要对上。
60
  对 input_shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
61
  motion:
62
  driver: input_shaft
63
  sweep_deg: 360
 
8
  prompt: |
9
  创建箱体板:在 front_plane 上画矩形,X 从 -60 到 60 mm,Y 从 -60 到 60 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(30,0) 直径 6 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the housing plate: on front_plane draw a rectangle with X from -60 to 60 mm and Y from -60 to 60 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm, (30,0) diameter 6 mm. Do not shell.
14
  - id: sr_shaft26
15
  extra_tools: []
16
  prompt: |
17
  创建输入轴:直径 10 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the input shaft: a cylinder 10 mm in diameter and 26 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: sr_output_shaft
21
  extra_tools: []
22
  prompt: |
23
  创建输出轴:直径 10 mm、长 20 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
24
+ prompt_en: |
25
+ Create the output shaft: a cylinder 10 mm in diameter and 20 mm long, axis along Z, extruded from Z=0 toward +Z.
26
  - id: sr_sun
27
  extra_tools:
28
  - spur_gear
29
  prompt: |
30
  创建渐开线直齿轮,模数 2 mm,齿数 12,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
31
+ prompt_en: |
32
+ Create an involute spur gear: module 2 mm, 12 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
33
  - id: sr_planet_pin
34
  extra_tools: []
35
  prompt: |
36
  创建惰轮销:直径 6 mm、长 16 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
37
+ prompt_en: |
38
+ Create the idler pin: a cylinder 6 mm in diameter and 16 mm long, axis along Z, extruded from Z=0 toward +Z.
39
  - id: sr_planet
40
  extra_tools:
41
  - spur_gear
42
  prompt: |
43
  创建渐开线直齿轮,模数 2 mm,齿数 18,压力角 30°,齿宽 8 mm,轴孔直径 6 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
44
+ prompt_en: |
45
+ Create an involute spur gear: module 2 mm, 18 teeth, pressure angle 30°, face width 8 mm, bore diameter 6 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
46
  - id: sr_ring
47
  extra_tools:
48
  - internal_gear
49
  prompt: |
50
  创建渐开线内齿圈,模数 2 mm,齿数 48,压力角 30°,齿宽 8 mm,外径 106 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 internal_gear。
51
+ prompt_en: |
52
+ Create an involute internal ring gear: module 2 mm, 48 teeth, pressure angle 30°, face width 8 mm, outer diameter 106 mm, axis along Z, extruded from Z=0 toward +Z. Prefer internal_gear.
53
  - id: sr_cover
54
  extra_tools: []
55
  prompt: |
56
  创建输出盘:外径 106 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。
57
+ prompt_en: |
58
+ Create the output disk: a disk with outer diameter 106 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 10 mm.
59
  gold_roles:
60
  frame: sr_frame
61
  input_shaft: sr_shaft26
 
75
  都固定在 output_shaft 上。
76
  - sun 与 planet 外啮合、planet 与 ring 内啮合(模数 2,中心距都是 30)。输出转速为输入的 1/4、反向。各齿轮互不穿模,啮合齿相位要对上。
77
  对 input_shaft 做 check_motion(一整圈),确认无穿模后再保存。
78
+ prompt_en: |
79
+ Assemble a star gear reducer (intermediate gear axle fixed, internal ring gear as output). Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
80
+ - frame is fixed, z∈[0,8], main bearing hole (0,0) of diameter 10, intermediate-gear pin hole (30,0) of diameter 6.
81
+ - input_shaft passes through the (0,0) hole and rotates about Z (z∈[-10,16]); the 12-tooth sun is fixed on it (z∈[8,16]).
82
+ - planet_pin is fixed in the (30,0) hole (z∈[0,16]); the 18-tooth planet fits on planet_pin and rotates (z∈[8,16]).
83
+ - output_shaft is coaxial with the main bearing hole and rotates about Z (z∈[16,36]); the center hole of cover (z∈[16,22]) and the 48-tooth internal ring gear ring (z∈[8,16])
84
+ are both fixed on output_shaft.
85
+ - sun meshes externally with planet, and planet internally with ring (module 2, center distance 30 for both). The output turns at 1/4 of the input speed, in the opposite direction. Gears must not interfere, and meshing teeth must be phased correctly.
86
+ Run check_motion on input_shaft (one full turn), confirm there is no interference, then save.
87
  motion:
88
  driver: input_shaft
89
  sweep_deg: 360
assembly/cases/toggle_clamp.yaml CHANGED
@@ -8,33 +8,51 @@ parts:
8
  prompt: |
9
  创建底座板:在 front_plane 上画矩形,X 从 -30 到 90 mm,Y 从 -40 到 30 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 6 mm,(60,-20) 直径 6 mm。不要抽壳。
 
 
 
11
  - id: tc_arm
12
  extra_tools: []
13
  prompt: |
14
  创建压臂:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (100,0),向 +Z 拉伸 6 mm。
15
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=30 处直径 6 mm。
 
 
 
16
  - id: tc_handle
17
  extra_tools: []
18
  prompt: |
19
  创建手柄:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (80,0),向 +Z 拉伸 6 mm。
20
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=25 处直径 6 mm。
 
 
 
21
  - id: tc_link
22
  extra_tools: []
23
  prompt: |
24
  创建连杆:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (40,0),向 +Z 拉伸 6 mm。
25
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=40 处直径 6 mm。
 
 
 
26
  - id: tc_pin14
27
  extra_tools: []
28
  prompt: |
29
  创建压臂销:直径 6 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
30
  - id: tc_pin26
31
  extra_tools: []
32
  prompt: |
33
  创建手柄销:直径 6 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
34
  - id: tc_pin12
35
  extra_tools: []
36
  prompt: |
37
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
38
  gold_roles:
39
  base: tc_base
40
  arm: tc_arm
@@ -53,6 +71,14 @@ assembly:
53
  - link 两端孔分别套在 pin_j、pin_k 上(z∈[14,20])。压臂 30、连杆 40、手柄 25、机架 63.25,
54
  连杆与压臂的铰点 J 在 A、K 连线的上方(+Y 侧)。
55
  - 机构活动度 1,不要固定角度。各件互不穿模,装好后保存。
 
 
 
 
 
 
 
 
56
  motion:
57
  mode: poses
58
  frame: base
 
8
  prompt: |
9
  创建底座板:在 front_plane 上画矩形,X 从 -30 到 90 mm,Y 从 -40 到 30 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 6 mm,(60,-20) 直径 6 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the base plate: on front_plane draw a rectangle with X from -30 to 90 mm and Y from -40 to 30 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 6 mm, (60,-20) diameter 6 mm. Do not shell.
14
  - id: tc_arm
15
  extra_tools: []
16
  prompt: |
17
  创建压臂:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (100,0),向 +Z 拉伸 6 mm。
18
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=30 处直径 6 mm。
19
+ prompt_en: |
20
+ Create the clamp arm: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (100,0), and extrude it 6 mm toward +Z.
21
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=30 diameter 6 mm.
22
  - id: tc_handle
23
  extra_tools: []
24
  prompt: |
25
  创建手柄:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (80,0),向 +Z 拉伸 6 mm。
26
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=25 处直径 6 mm。
27
+ prompt_en: |
28
+ Create the handle: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (80,0), and extrude it 6 mm toward +Z.
29
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=25 diameter 6 mm.
30
  - id: tc_link
31
  extra_tools: []
32
  prompt: |
33
  创建连杆:在 front_plane 上画两端圆头的长条,宽 10 mm,两端半圆的圆心分别在原点和 (40,0),向 +Z 拉伸 6 mm。
34
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=40 处直径 6 mm。
35
+ prompt_en: |
36
+ Create the link: on front_plane draw a bar with rounded ends, 10 mm wide, with the end-arc centers at the origin and at (40,0), and extrude it 6 mm toward +Z.
37
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=40 diameter 6 mm.
38
  - id: tc_pin14
39
  extra_tools: []
40
  prompt: |
41
  创建压臂销:直径 6 mm、长 14 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
42
+ prompt_en: |
43
+ Create the clamp arm pin: a cylinder 6 mm in diameter and 14 mm long, axis along Z, extruded from Z=0 toward +Z.
44
  - id: tc_pin26
45
  extra_tools: []
46
  prompt: |
47
  创建手柄销:直径 6 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
48
+ prompt_en: |
49
+ Create the handle pin: a cylinder 6 mm in diameter and 26 mm long, axis along Z, extruded from Z=0 toward +Z.
50
  - id: tc_pin12
51
  extra_tools: []
52
  prompt: |
53
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
54
+ prompt_en: |
55
+ Create the hinge pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
56
  gold_roles:
57
  base: tc_base
58
  arm: tc_arm
 
71
  - link 两端孔分别套在 pin_j、pin_k 上(z∈[14,20])。压臂 30、连杆 40、手柄 25、机架 63.25,
72
  连杆与压臂的铰点 J 在 A、K 连线的上方(+Y 侧)。
73
  - 机构活动度 1,不要固定角度。各件互不穿模,装好后保存。
74
+ prompt_en: |
75
+ Assemble a toggle clamp (four-bar linkage: clamp arm, link, handle). Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
76
+ - base is fixed, z∈[0,8], clamp-arm hinge hole (0,0), handle hinge hole (60,-20).
77
+ - pin_a is fixed in the (0,0) hole (z∈[0,14]), and the origin hole of arm fits on it and rotates (z∈[8,14]); pin_j is fixed in the X=30 hole of arm (z∈[8,20]).
78
+ - pin_h is fixed in the (60,-20) hole (z∈[0,26]), and the origin hole of handle fits on it and rotates (z∈[20,26]); pin_k is fixed in the X=25 hole of handle (z∈[14,26]).
79
+ - The two end holes of link fit on pin_j and pin_k respectively (z∈[14,20]). Clamp arm 30, link 40, handle 25, ground link 63.25;
80
+ the hinge point J between the link and the clamp arm is above the line through A and K (+Y side).
81
+ - The mechanism has mobility 1; do not fix any angle. No parts may interfere. Save when assembled.
82
  motion:
83
  mode: poses
84
  frame: base
assembly/cases/turntable.yaml CHANGED
@@ -8,28 +8,41 @@ parts:
8
  prompt: |
9
  创建底座板:在 front_plane 上画矩形,X 从 -70 到 70 mm,Y 从 -70 到 70 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(36,0) 直径 10 mm。不要抽壳。
 
 
 
11
  - id: tt_spindle
12
  extra_tools: []
13
  prompt: |
14
  创建中心立轴:直径 10 mm、长 22 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: tt_pinion_shaft
16
  extra_tools: []
17
  prompt: |
18
  创建小齿轮轴:直径 10 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
19
  - id: tt_pinion
20
  extra_tools:
21
  - spur_gear
22
  prompt: |
23
  创建渐开线直齿轮,模数 2 mm,齿数 12,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
24
  - id: tt_ring
25
  extra_tools:
26
  - internal_gear
27
  prompt: |
28
  创建渐开线内齿圈,模数 2 mm,齿数 48,压力角 30°,齿宽 8 mm,外径 110 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 internal_gear。
 
 
29
  - id: tt_table
30
  extra_tools: []
31
  prompt: |
32
  创建转台盘:外径 110 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。
 
 
33
  gold_roles:
34
  frame: tt_frame
35
  spindle: tt_spindle
@@ -45,6 +58,13 @@ assembly:
45
  - table 的中心孔套在 spindle 上绕 Z 转动(z∈[16,22]);48 齿内齿圈 ring 固定在 table 下面(z∈[8,16]),与 table 同轴。
46
  - pinion 与 ring 内啮合(模数 2,中心距 36),转台转速为小齿轮的 1/4、同向。各齿轮互不穿模,啮合齿相位要对上。
47
  对 pinion_shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
48
  motion:
49
  driver: pinion_shaft
50
  sweep_deg: 360
 
8
  prompt: |
9
  创建底座板:在 front_plane 上画矩形,X 从 -70 到 70 mm,Y 从 -70 到 70 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm,(36,0) 直径 10 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the base plate: on front_plane draw a rectangle with X from -70 to 70 mm and Y from -70 to 70 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm, (36,0) diameter 10 mm. Do not shell.
14
  - id: tt_spindle
15
  extra_tools: []
16
  prompt: |
17
  创建中心立轴:直径 10 mm、长 22 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the center spindle: a cylinder 10 mm in diameter and 22 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: tt_pinion_shaft
21
  extra_tools: []
22
  prompt: |
23
  创建小齿轮轴:直径 10 mm、长 26 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
24
+ prompt_en: |
25
+ Create the pinion shaft: a cylinder 10 mm in diameter and 26 mm long, axis along Z, extruded from Z=0 toward +Z.
26
  - id: tt_pinion
27
  extra_tools:
28
  - spur_gear
29
  prompt: |
30
  创建渐开线直齿轮,模数 2 mm,齿数 12,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
31
+ prompt_en: |
32
+ Create an involute spur gear: module 2 mm, 12 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
33
  - id: tt_ring
34
  extra_tools:
35
  - internal_gear
36
  prompt: |
37
  创建渐开线内齿圈,模数 2 mm,齿数 48,压力角 30°,齿宽 8 mm,外径 110 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 internal_gear。
38
+ prompt_en: |
39
+ Create an involute internal ring gear: module 2 mm, 48 teeth, pressure angle 30°, face width 8 mm, outer diameter 110 mm, axis along Z, extruded from Z=0 toward +Z. Prefer internal_gear.
40
  - id: tt_table
41
  extra_tools: []
42
  prompt: |
43
  创建转台盘:外径 110 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。
44
+ prompt_en: |
45
+ Create the turntable disk: a disk with outer diameter 110 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 10 mm.
46
  gold_roles:
47
  frame: tt_frame
48
  spindle: tt_spindle
 
58
  - table 的中心孔套在 spindle 上绕 Z 转动(z∈[16,22]);48 齿内齿圈 ring 固定在 table 下面(z∈[8,16]),与 table 同轴。
59
  - pinion 与 ring 内啮合(模数 2,中心距 36),转台转速为小齿轮的 1/4、同向。各齿轮互不穿模,啮合齿相位要对上。
60
  对 pinion_shaft 做 check_motion(一整圈),确认无穿模后再保存。
61
+ prompt_en: |
62
+ Assemble a turntable driven by an internal ring gear. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
63
+ - frame is fixed, z∈[0,8], holes at (0,0) and (36,0), both of diameter 10 mm. spindle is fixed in the (0,0) hole (z∈[0,22]).
64
+ - pinion_shaft passes through the (36,0) hole and rotates about Z (z∈[-10,16]); the 12-tooth pinion is fixed on it (z∈[8,16]).
65
+ - The center hole of table fits on spindle and rotates about Z (z∈[16,22]); the 48-tooth internal ring gear ring is fixed under table (z∈[8,16]), coaxial with table.
66
+ - pinion meshes internally with ring (module 2, center distance 36); the turntable turns at 1/4 of the pinion speed, in the same direction. Gears must not interfere, and meshing teeth must be phased correctly.
67
+ Run check_motion on pinion_shaft (one full turn), confirm there is no interference, then save.
68
  motion:
69
  driver: pinion_shaft
70
  sweep_deg: 360
assembly/cases/twin_pump.yaml CHANGED
@@ -8,29 +8,45 @@ parts:
8
  prompt: |
9
  创建泵体板:在 front_plane 上画矩形,X 从 -40 到 40 mm,Y 从 -30 到 110 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm。不要抽壳。
 
 
 
11
  - id: tp_shaft
12
  extra_tools: []
13
  prompt: |
14
  创建曲轴:直径 10 mm、长 20 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: tp_crank
16
  extra_tools: []
17
  prompt: |
18
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (15,0),向 +Z 拉伸 6 mm。
19
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=15 处直径 6 mm。
 
 
 
20
  - id: tp_pin12
21
  extra_tools: []
22
  prompt: |
23
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
24
  - id: tp_rod
25
  extra_tools: []
26
  prompt: |
27
  创建连杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (60,0),向 +Z 拉伸 6 mm。
28
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=60 处直径 6 mm。
 
 
 
29
  - id: tp_piston
30
  extra_tools: []
31
  prompt: |
32
  创建活塞:在 front_plane 上画矩形,X 从 -10 到 10 mm,Y 从 -12 到 12 mm,向 +Z 拉伸 6 mm。
33
  开贯穿孔:(0,0) 直径 6 mm。不要抽壳。
 
 
 
34
  gold_roles:
35
  frame: tp_frame
36
  shaft: tp_shaft
@@ -57,6 +73,18 @@ assembly:
57
  - 两个活塞都只能沿 frame 的 Y 方向移动,孔心始终在 x=0 的直线上、曲轴 +Y 侧。
58
  - 曲柄 15、连杆 60,每缸行程 30 mm,两活塞反相往复。
59
  对 shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
 
 
 
60
  motion:
61
  driver: shaft
62
  sweep_deg: 360
 
8
  prompt: |
9
  创建泵体板:在 front_plane 上画矩形,X 从 -40 到 40 mm,Y 从 -30 到 110 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the pump body plate: on front_plane draw a rectangle with X from -40 to 40 mm and Y from -30 to 110 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm. Do not shell.
14
  - id: tp_shaft
15
  extra_tools: []
16
  prompt: |
17
  创建曲轴:直径 10 mm、长 20 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the crankshaft: a cylinder 10 mm in diameter and 20 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: tp_crank
21
  extra_tools: []
22
  prompt: |
23
  创建曲柄:在 front_plane 上画两端圆头的长条,宽 16 mm,两端半圆的圆心分别在原点和 (15,0),向 +Z 拉伸 6 mm。
24
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=15 处直径 6 mm。
25
+ prompt_en: |
26
+ Create the crank: on front_plane draw a bar with rounded ends, 16 mm wide, with the end-arc centers at the origin and at (15,0), and extrude it 6 mm toward +Z.
27
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=15 diameter 6 mm.
28
  - id: tp_pin12
29
  extra_tools: []
30
  prompt: |
31
  创建铰销:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
32
+ prompt_en: |
33
+ Create the hinge pin: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
34
  - id: tp_rod
35
  extra_tools: []
36
  prompt: |
37
  创建连杆:在 front_plane 上画两端圆头的长条,宽 12 mm,两端半圆的圆心分别在原点和 (60,0),向 +Z 拉伸 6 mm。
38
  在 X 轴上开贯穿孔:X=0 处直径 6 mm,X=60 处直径 6 mm。
39
+ prompt_en: |
40
+ Create the link: on front_plane draw a bar with rounded ends, 12 mm wide, with the end-arc centers at the origin and at (60,0), and extrude it 6 mm toward +Z.
41
+ Cut through holes on the X axis: at X=0 diameter 6 mm, at X=60 diameter 6 mm.
42
  - id: tp_piston
43
  extra_tools: []
44
  prompt: |
45
  创建活塞:在 front_plane 上画矩形,X 从 -10 到 10 mm,Y 从 -12 到 12 mm,向 +Z 拉伸 6 mm。
46
  开贯穿孔:(0,0) 直径 6 mm。不要抽壳。
47
+ prompt_en: |
48
+ Create the piston: on front_plane draw a rectangle with X from -10 to 10 mm and Y from -12 to 12 mm, and extrude it 6 mm toward +Z.
49
+ Cut through holes: (0,0) diameter 6 mm. Do not shell.
50
  gold_roles:
51
  frame: tp_frame
52
  shaft: tp_shaft
 
73
  - 两个活塞都只能沿 frame 的 Y 方向移动,孔心始终在 x=0 的直线上、曲轴 +Y 侧。
74
  - 曲柄 15、连杆 60,每缸行程 30 mm,两活塞反相往复。
75
  对 shaft 做 check_motion(一整圈),确认无穿模后再保存。
76
+ prompt_en: |
77
+ Assemble a twin-cylinder reciprocating pump (the two cylinders share one crankshaft, with the two cranks 180° apart). Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
78
+ - frame is fixed, z∈[0,8], crank bearing hole at the origin. shaft passes through the bearing hole and rotates about Z (z∈[-6,14]).
79
+ - Front cylinder (in front of the plate, +Z side): the 10 mm hole of crank_a is fixed on shaft (z∈[8,14]); crank_pin_a is fixed in the 6 mm hole of crank_a (z∈[8,20]);
80
+ one end of rod_a rotates about crank_pin_a (z∈[14,20]); wrist_pin_a is fixed in the hole at the other end of rod_a (z∈[14,26]);
81
+ the hole of piston_a fits on wrist_pin_a and rotates (z∈[20,26]).
82
+ - Rear cylinder (behind the plate, −Z side): the 10 mm hole of crank_b is fixed on shaft (z∈[-6,0]), with the crank pointing opposite to crank_a (180° apart);
83
+ crank_pin_b is fixed in the 6 mm hole of crank_b (z∈[-12,0]); one end of rod_b rotates about crank_pin_b (z∈[-12,-6]);
84
+ wrist_pin_b is fixed in the hole at the other end of rod_b (z∈[-18,-6]); the hole of piston_b fits on wrist_pin_b and rotates (z∈[-18,-12]).
85
+ - Both pistons can only move along the Y direction of frame, with their hole centers always on the line x=0, on the +Y side of the crankshaft.
86
+ - Crank 15, connecting rod 60, stroke 30 mm per cylinder; the two pistons reciprocate in antiphase.
87
+ Run check_motion on shaft (one full turn), confirm there is no interference, then save.
88
  motion:
89
  driver: shaft
90
  sweep_deg: 360
assembly/cases/umbrella.yaml CHANGED
@@ -14,25 +14,38 @@ parts:
14
  extra_tools: []
15
  prompt: |
16
  创建伞中棒:直径 10 mm、长 400 mm 的圆棒,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
17
  - id: umb_hub
18
  extra_tools: []
19
  prompt: |
20
  创建上巢:长方体 X 从 -26 到 26、Y 从 -8 到 8、Z 从 -10 到 10 mm(在 front_plane 上画矩形后两侧对称拉伸 20 mm)。
21
  沿 Z 开直径 10 mm 贯穿中心孔;沿 Y 在 (X=18, Z=0) 和 (X=-18, Z=0) 各开一个直径 4 mm 贯穿铰孔。
 
 
 
22
  - id: umb_runner
23
  extra_tools: []
24
  prompt: |
25
  创建下巢:长方体 X 从 -23 到 23、Y 从 -12 到 12、Z 从 -8 到 8 mm(两侧对称拉伸 16 mm)。
26
  沿 Z 开直径 10.4 mm 贯穿中心孔(在中棒上滑动);沿 Y 在 (X=15, Z=0) 和 (X=-15, Z=0) 各开一个直径 4 mm 贯穿铰孔。
 
 
 
27
  - id: umb_rib
28
  extra_tools: []
29
  prompt: |
30
  创建伞骨:在 front_plane 上画两端圆头的长条,X 从 0 到 300 mm(两端半圆圆心分别在 X=0 和 X=300),宽 8 mm,
31
  向 +Z 拉伸 4 mm。在 (0,0) 和 (120,0) 各开一个直径 4 mm 贯穿孔。原点在 (0,0) 孔中心(上巢铰孔)。
 
 
 
32
  - id: umb_stretcher
33
  extra_tools: []
34
  prompt: |
35
  创建撑杆:两端圆头长条,两孔中心距 160 mm,宽 8 mm,两端直径 4 mm 贯穿孔,向 +Z 拉伸 4 mm。原点在一个孔中心。
 
 
36
 
37
  gold_roles:
38
  shaft: umb_shaft
@@ -52,6 +65,14 @@ assembly:
52
  - rib_a、rib_b 的 (0,0) 孔分别铰接在 hub 两侧铰孔上,贴在 hub 的 ±Y 侧面,伞骨朝外(远离中棒)。
53
  - stretcher_a、stretcher_b 一端铰接在 runner 两侧铰孔上(贴 runner 的 ±Y 侧面),另一端铰接在同侧伞骨的 (120,0) 孔上。
54
  - 整机只有一个自由度:runner 上下滑动带动伞骨张合。不要限制 runner 位置。各件互不穿模。装好后保存。
 
 
 
 
 
 
 
 
55
 
56
  motion:
57
  mode: poses
 
14
  extra_tools: []
15
  prompt: |
16
  创建伞中棒:直径 10 mm、长 400 mm 的圆棒,轴线沿 Z,从 Z=0 向 +Z 拉伸。
17
+ prompt_en: |
18
+ Create the umbrella shaft: a round rod of diameter 10 mm and length 400 mm, axis along Z, extruded from Z=0 toward +Z.
19
  - id: umb_hub
20
  extra_tools: []
21
  prompt: |
22
  创建上巢:长方体 X 从 -26 到 26、Y 从 -8 到 8、Z 从 -10 到 10 mm(在 front_plane 上画矩形后两侧对称拉伸 20 mm)。
23
  沿 Z 开直径 10 mm 贯穿中心孔;沿 Y 在 (X=18, Z=0) 和 (X=-18, Z=0) 各开一个直径 4 mm 贯穿铰孔。
24
+ prompt_en: |
25
+ Create the top notch: a box with X from -26 to 26, Y from -8 to 8 and Z from -10 to 10 mm (draw the rectangle on front_plane, then extrude 20 mm symmetrically to both sides).
26
+ Cut a central through hole of diameter 10 mm along Z; cut a through hinge hole of diameter 4 mm along Y at each of (X=18, Z=0) and (X=-18, Z=0).
27
  - id: umb_runner
28
  extra_tools: []
29
  prompt: |
30
  创建下巢:长方体 X 从 -23 到 23、Y 从 -12 到 12、Z 从 -8 到 8 mm(两侧对称拉伸 16 mm)。
31
  沿 Z 开直径 10.4 mm 贯穿中心孔(在中棒上滑动);沿 Y 在 (X=15, Z=0) 和 (X=-15, Z=0) 各开一个直径 4 mm 贯穿铰孔。
32
+ prompt_en: |
33
+ Create the runner: a box with X from -23 to 23, Y from -12 to 12 and Z from -8 to 8 mm (extruded 16 mm symmetrically to both sides).
34
+ Cut a central through hole of diameter 10.4 mm along Z (slides on the shaft); cut a through hinge hole of diameter 4 mm along Y at each of (X=15, Z=0) and (X=-15, Z=0).
35
  - id: umb_rib
36
  extra_tools: []
37
  prompt: |
38
  创建伞骨:在 front_plane 上画两端圆头的长条,X 从 0 到 300 mm(两端半圆圆心分别在 X=0 和 X=300),宽 8 mm,
39
  向 +Z 拉伸 4 mm。在 (0,0) 和 (120,0) 各开一个直径 4 mm 贯穿孔。原点在 (0,0) 孔中心(上巢铰孔)。
40
+ prompt_en: |
41
+ Create a rib: on front_plane draw a bar with rounded ends, X from 0 to 300 mm (end-arc centers at X=0 and X=300), 8 mm wide,
42
+ and extrude it 4 mm toward +Z. Cut a through hole of diameter 4 mm at each of (0,0) and (120,0). The origin is at the center of the (0,0) hole (top-notch hinge hole).
43
  - id: umb_stretcher
44
  extra_tools: []
45
  prompt: |
46
  创建撑杆:两端圆头长条,两孔中心距 160 mm,宽 8 mm,两端直径 4 mm 贯穿孔,向 +Z 拉伸 4 mm。原点在一个孔中心。
47
+ prompt_en: |
48
+ Create a stretcher: a bar with rounded ends, 160 mm between the two hole centers, 8 mm wide, through holes of diameter 4 mm at both ends, extruded 4 mm toward +Z. The origin is at the center of one hole.
49
 
50
  gold_roles:
51
  shaft: umb_shaft
 
65
  - rib_a、rib_b 的 (0,0) 孔分别铰接在 hub 两侧铰孔上,贴在 hub 的 ±Y 侧面,伞骨朝外(远离中棒)。
66
  - stretcher_a、stretcher_b 一端铰接在 runner 两侧铰孔上(贴 runner 的 ±Y 侧面),另一端铰接在同侧伞骨的 (120,0) 孔上。
67
  - 整机只有一个自由度:runner 上下滑动带动伞骨张合。不要限制 runner 位置。各件互不穿模。装好后保存。
68
+ prompt_en: |
69
+ Assemble a folding umbrella frame (two symmetric ribs). Do not treat the insertion coordinates as the final poses.
70
+ - shaft is fixed, axis along Z, lower end at Z=0.
71
+ - hub fits on shaft and is fixed to it; the axes of the two hinge holes of hub are at z=340 (the front_plane of hub is 340 mm from the lower end of shaft).
72
+ - runner fits on shaft and can only slide along shaft (it cannot rotate about shaft; this is constrained by the two stretchers).
73
+ - The (0,0) holes of rib_a and rib_b are hinged on the two side hinge holes of hub respectively, lying against the ±Y side faces of hub, with the ribs pointing outward (away from the shaft).
74
+ - One end of stretcher_a and stretcher_b is hinged on the two side hinge holes of runner (lying against the ±Y side faces of runner), and the other end on the (120,0) hole of the rib on the same side.
75
+ - The whole frame has only one degree of freedom: sliding runner up and down opens and closes the ribs. Do not constrain the position of runner. No parts may interfere. Save when assembled.
76
 
77
  motion:
78
  mode: poses
assembly/cases/wankel_rotary.yaml CHANGED
@@ -8,41 +8,61 @@ parts:
8
  prompt: |
9
  创建缸体板:在 front_plane 上画矩形,X 从 -90 到 90 mm,Y 从 -90 到 90 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm。不要抽壳。
 
 
 
11
  - id: wk_shaft
12
  extra_tools: []
13
  prompt: |
14
  创建偏心轴:直径 10 mm、长 36 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
15
  - id: wk_flywheel
16
  extra_tools: []
17
  prompt: |
18
  创建飞轮:外径 80 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(28,0) 直径 8 mm,(-28,0) 直径 8 mm,(0,28) 直径 8 mm,(0,-28) 直径 8 mm。
 
 
19
  - id: wk_stat
20
  extra_tools:
21
  - spur_gear
22
  prompt: |
23
  创建渐开线直齿轮,模数 2 mm,齿数 24,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
 
 
24
  - id: wk_crank
25
  extra_tools: []
26
  prompt: |
27
  创建偏心臂:在 front_plane 上画两端圆头的长条,宽 24 mm,两端半圆的圆心分别在原点和 (12,0),向 +Z 拉伸 6 mm。
28
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=12 处直径 8 mm。
 
 
 
29
  - id: wk_ecc_pin
30
  extra_tools: []
31
  prompt: |
32
  创建偏心销:直径 8 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
33
  - id: wk_ring
34
  extra_tools:
35
  - internal_gear
36
  prompt: |
37
  创建渐开线内齿圈,模数 2 mm,齿数 36,压力角 30°,齿宽 8 mm,外径 100 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 internal_gear。
 
 
38
  - id: wk_rotor
39
  extra_tools: []
40
  prompt: |
41
  创建转子盖板:外径 100 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 8 mm。另开贯穿孔:(0,40) 直径 6 mm,(-34.64,-20) 直径 6 mm,(34.64,-20) 直径 6 mm。
 
 
42
  - id: wk_apex
43
  extra_tools: []
44
  prompt: |
45
  创建顶封:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
 
 
46
  gold_roles:
47
  frame: wk_frame
48
  shaft: wk_shaft
@@ -66,6 +86,16 @@ assembly:
66
  ring 与 stat 内啮合(模数 2,中心距 12)。
67
  - rotor 上三个 6 mm 孔各固定一根顶封销 apex_1、apex_2、apex_3(z∈[22,34]),apex_1 对应局部 (0,40) 孔。
68
  对 shaft 做 check_motion(一整圈),确认无穿模后再保存。
 
 
 
 
 
 
 
 
 
 
69
  motion:
70
  driver: shaft
71
  sweep_deg: 360
 
8
  prompt: |
9
  创建缸体板:在 front_plane 上画矩形,X 从 -90 到 90 mm,Y 从 -90 到 90 mm,向 +Z 拉伸 8 mm。
10
  开贯穿孔:(0,0) 直径 10 mm。不要抽壳。
11
+ prompt_en: |
12
+ Create the cylinder block plate: on front_plane draw a rectangle with X from -90 to 90 mm and Y from -90 to 90 mm, and extrude it 8 mm toward +Z.
13
+ Cut through holes: (0,0) diameter 10 mm. Do not shell.
14
  - id: wk_shaft
15
  extra_tools: []
16
  prompt: |
17
  创建偏心轴:直径 10 mm、长 36 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
18
+ prompt_en: |
19
+ Create the eccentric shaft: a cylinder 10 mm in diameter and 36 mm long, axis along Z, extruded from Z=0 toward +Z.
20
  - id: wk_flywheel
21
  extra_tools: []
22
  prompt: |
23
  创建飞轮:外径 80 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 10 mm。另开贯穿孔:(28,0) 直径 8 mm,(-28,0) 直径 8 mm,(0,28) 直径 8 mm,(0,-28) 直径 8 mm。
24
+ prompt_en: |
25
+ Create the flywheel: a disk with outer diameter 80 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 10 mm. Also cut through holes: (28,0) diameter 8 mm, (-28,0) diameter 8 mm, (0,28) diameter 8 mm, (0,-28) diameter 8 mm.
26
  - id: wk_stat
27
  extra_tools:
28
  - spur_gear
29
  prompt: |
30
  创建渐开线直齿轮,模数 2 mm,齿数 24,压力角 30°,齿宽 8 mm,轴孔直径 10 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 spur_gear。
31
+ prompt_en: |
32
+ Create an involute spur gear: module 2 mm, 24 teeth, pressure angle 30°, face width 8 mm, bore diameter 10 mm, axis along Z, extruded from Z=0 toward +Z. Prefer spur_gear.
33
  - id: wk_crank
34
  extra_tools: []
35
  prompt: |
36
  创建偏心臂:在 front_plane 上画两端圆头的长条,宽 24 mm,两端半圆的圆心分别在原点和 (12,0),向 +Z 拉伸 6 mm。
37
  在 X 轴上开贯穿孔:X=0 处直径 10 mm,X=12 处直径 8 mm。
38
+ prompt_en: |
39
+ Create the eccentric arm: on front_plane draw a bar with rounded ends, 24 mm wide, with the end-arc centers at the origin and at (12,0), and extrude it 6 mm toward +Z.
40
+ Cut through holes on the X axis: at X=0 diameter 10 mm, at X=12 diameter 8 mm.
41
  - id: wk_ecc_pin
42
  extra_tools: []
43
  prompt: |
44
  创建偏心销:直径 8 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
45
+ prompt_en: |
46
+ Create the eccentric pin: a cylinder 8 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
47
  - id: wk_ring
48
  extra_tools:
49
  - internal_gear
50
  prompt: |
51
  创建渐开线内齿圈,模数 2 mm,齿数 36,压力角 30°,齿宽 8 mm,外径 100 mm,轴线沿 Z,从 Z=0 向 +Z 拉伸。优先 internal_gear。
52
+ prompt_en: |
53
+ Create an involute internal ring gear: module 2 mm, 36 teeth, pressure angle 30°, face width 8 mm, outer diameter 100 mm, axis along Z, extruded from Z=0 toward +Z. Prefer internal_gear.
54
  - id: wk_rotor
55
  extra_tools: []
56
  prompt: |
57
  创建转子盖板:外径 100 mm、厚 6 mm 的圆盘,轴线沿 Z,从 Z=0 向 +Z 拉伸,中心贯穿孔直径 8 mm。另开贯穿孔:(0,40) 直径 6 mm,(-34.64,-20) 直径 6 mm,(34.64,-20) 直径 6 mm。
58
+ prompt_en: |
59
+ Create the rotor plate: a disk with outer diameter 100 mm and thickness 6 mm, axis along Z, extruded from Z=0 toward +Z, with a central through hole of diameter 8 mm. Also cut through holes: (0,40) diameter 6 mm, (-34.64,-20) diameter 6 mm, (34.64,-20) diameter 6 mm.
60
  - id: wk_apex
61
  extra_tools: []
62
  prompt: |
63
  创建顶封:直径 6 mm、长 12 mm 的圆柱,轴线沿 Z,从 Z=0 向 +Z 拉伸。
64
+ prompt_en: |
65
+ Create the apex seal: a cylinder 6 mm in diameter and 12 mm long, axis along Z, extruded from Z=0 toward +Z.
66
  gold_roles:
67
  frame: wk_frame
68
  shaft: wk_shaft
 
86
  ring 与 stat 内啮合(模数 2,中心距 12)。
87
  - rotor 上三个 6 mm 孔各固定一根顶封销 apex_1、apex_2、apex_3(z∈[22,34]),apex_1 对应局部 (0,40) 孔。
88
  对 shaft 做 check_motion(一整圈),确认无穿模后再保存。
89
+ prompt_en: |
90
+ Assemble a kinematic model of a Wankel rotary engine: the eccentric shaft carries the rotor around, the 36-tooth internal ring gear on the rotor rolls around the fixed 24-tooth phasing gear,
91
+ the rotor spins at 1/3 of the eccentric-shaft speed in the same direction, and the three apexes trace an epitrochoid housing. Do not treat the insertion coordinates as the final poses. All rotation axes are along Z; z∈[a,b] below is the Z range a part occupies once assembled.
92
+ - frame is fixed, z∈[0,8], center hole (0,0) of diameter 10. The 24-tooth stat is fixed on frame, coaxial with the center hole (z∈[8,16]).
93
+ - shaft passes through the center hole (and the hole of stat) and rotates about Z (z∈[-14,22]); the center hole of flywheel is fixed on it (z∈[-14,-8]),
94
+ and the 10 mm hole of crank is fixed on it (z∈[16,22]). ecc_pin is fixed in the 8 mm hole of crank (eccentricity 12, z���[16,28]).
95
+ - The 8 mm center hole of rotor (rotor plate) fits on ecc_pin and rotates (z∈[22,28]); the 36-tooth internal ring gear ring is fixed coaxially to rotor (z∈[8,16]).
96
+ ring meshes internally with stat (module 2, center distance 12).
97
+ - The three 6 mm holes of rotor each hold one apex-seal pin apex_1, apex_2, apex_3 (z∈[22,34]); apex_1 corresponds to the local (0,40) hole.
98
+ Run check_motion on shaft (one full turn), confirm there is no interference, then save.
99
  motion:
100
  driver: shaft
101
  sweep_deg: 360