01 / 概要
旋转扫掠的作用与适用范围
围绕指定旋转轴转动闭合草图并生成实体。旋转范围使用 start 与 end,或 start 与 angle 表示。
end 与 angle 是两种互斥的旋转范围表示方式;一个步骤应选择其中一种。
02 / 基础结构
字段结构
RevolveSweepStep
├─ coordinate_system: CoordinateSystem
├─ sketch: Sketch
├─ constraints: Constraints
├─ axis: Axis3
├─ start: number
├─ end: number
│ 或 angle: number
└─ operation: "NewBody" | "Join" | "Cut" | "Intersect"字段类型说明
coordinate_system对象草图局部坐标系。
sketch非空对象必须能恢复为闭合轮廓的草图。
constraints对象当前草图的显式约束;无约束时写 {}。
axisAxis3[axis_point, axis_direction];方向向量必须非零。
start有限数值旋转起始角度,单位为度。
end条件必选有限数值使用 start + end 表示旋转范围时提供。
angle条件必选有限数值使用 start + angle 表示旋转范围时提供。
operation字符串NewBody、Join、Cut 或 Intersect。
03 / 样例数据
完整结构化 JSON 样例
{
"coordinate_system": {
"Euler Angles": [0.0, 0.0, 0.0],
"Translation Vector": [0.0, 0.0, 0.0]
},
"sketch": {
"line_1": {"start": [0.0, 0.0], "end": [8.0, 0.0]},
"line_2": {"start": [8.0, 0.0], "end": [8.0, 4.0]},
"line_3": {"start": [8.0, 4.0], "end": [0.0, 4.0]},
"line_4": {"start": [0.0, 4.0], "end": [0.0, 0.0]}
},
"constraints": {},
"axis": [[0.0, 0.0, 0.0], [0.0, 0.0, 1.0]],
"start": 0.0,
"end": 360.0,
"operation": "NewBody"
}