Files
CADmind/backend/capabilities/circular_pattern_body.yaml
2026-09-24 10:40:57 +08:00

36 lines
1.0 KiB
YAML

name: circular_pattern_body
category: feature_operation
description: "把整个实体绕Z轴复制若干份并合并(不是只打孔,是复制整个特征形状),用于齿轮齿形、风扇叶片、周向凸台阵列等"
parameters:
- name: count
type: int
range: [2, 360]
required: true
- name: total_angle
type: float
unit: deg
range: [1, 360]
required: true
preconditions:
- "target 必须是一个实体(Part)"
- "target 应偏移于Z轴(不要与旋转轴重合),否则复制后会完全重叠"
postconditions:
- "体积应增加为原来的多份(如有重叠会小于count倍)"
# 机器可执行的断言类型,执行器每次操作后无条件核对
postcondition_check: volume_increase
failure_modes:
- code: NO_TARGET
condition: "target 为空"
message: "circular_pattern_body 需要一个实体作为输入"
implementation: capabilities/impl/circular_pattern_body.py
examples:
- text: "把这个凸台绕Z轴复制8份,均匀分布一整圈"
params: { count: 8, total_angle: 360 }