修改了一些之前增加功能的bug
This commit is contained in:
@@ -117,6 +117,27 @@
|
||||
"required": ["radius_mm", "center_mm"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"boxParams": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"length_mm": {"$ref": "#/$defs/positive"},
|
||||
"width_mm": {"$ref": "#/$defs/positive"},
|
||||
"height_mm": {"$ref": "#/$defs/positive"},
|
||||
"center_mm": {"$ref": "#/$defs/point3"}
|
||||
},
|
||||
"required": ["length_mm", "width_mm", "height_mm", "center_mm"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"cylinderParams": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"radius_mm": {"$ref": "#/$defs/positive"},
|
||||
"height_mm": {"$ref": "#/$defs/positive"},
|
||||
"axis": {"$ref": "#/$defs/axis"}
|
||||
},
|
||||
"required": ["radius_mm", "height_mm"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"threadAddParams": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -242,6 +263,17 @@
|
||||
"required": ["source_feature_ids", "mirror_plane"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"circularPatternParams": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"source_feature_ids": {"type": "array", "items": {"type": "string", "pattern": "^[A-Za-z0-9_-]{1,80}$"}},
|
||||
"axis": {"$ref": "#/$defs/axis"},
|
||||
"pattern_count": {"type": "integer", "minimum": 1},
|
||||
"sweep_angle_deg": {"type": "number", "minimum": -360, "maximum": 360}
|
||||
},
|
||||
"required": ["source_feature_ids", "axis", "pattern_count"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"referencePlaneParams": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -351,7 +383,7 @@
|
||||
"required": ["type", "contours"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"feature_atomic_ids": {"enum": ["extrude_add_blind", "extrude_add_two_sided", "extrude_cut_blind", "revolve_add", "revolve_cut", "hole_blind", "hole_countersink", "hole_counterbore", "sphere_add", "thread_add", "thread_cut", "fillet", "chamfer", "pattern_linear", "pattern_mirror", "reference_plane", "reference_axis", "hole_wizard"]},
|
||||
"feature_atomic_ids": {"enum": ["extrude_add_blind", "extrude_add_two_sided", "extrude_cut_blind", "revolve_add", "revolve_cut", "hole_blind", "hole_countersink", "hole_counterbore", "sphere_add", "box_add", "cylinder_add", "thread_add", "thread_cut", "fillet", "chamfer", "pattern_linear", "pattern_mirror", "pattern_circular", "reference_plane", "reference_axis", "hole_wizard"]},
|
||||
"feature": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -374,6 +406,8 @@
|
||||
{"if": {"properties": {"atomic_id": {"const": "revolve_add"}}}, "then": {"properties": {"params": {"$ref": "#/$defs/revolveParams"}}}},
|
||||
{"if": {"properties": {"atomic_id": {"const": "revolve_cut"}}}, "then": {"properties": {"params": {"$ref": "#/$defs/revolveParams"}}}},
|
||||
{"if": {"properties": {"atomic_id": {"const": "sphere_add"}}}, "then": {"properties": {"params": {"$ref": "#/$defs/sphereParams"}}}},
|
||||
{"if": {"properties": {"atomic_id": {"const": "box_add"}}}, "then": {"properties": {"params": {"$ref": "#/$defs/boxParams"}}}},
|
||||
{"if": {"properties": {"atomic_id": {"const": "cylinder_add"}}}, "then": {"properties": {"params": {"$ref": "#/$defs/cylinderParams"}}}},
|
||||
{"if": {"properties": {"atomic_id": {"const": "thread_add"}}}, "then": {"properties": {"params": {"$ref": "#/$defs/threadAddParams"}}}},
|
||||
{"if": {"properties": {"atomic_id": {"const": "thread_cut"}}}, "then": {"properties": {"params": {"$ref": "#/$defs/threadCutParams"}}}},
|
||||
{"if": {"properties": {"atomic_id": {"const": "hole_blind"}}}, "then": {"properties": {"params": {"$ref": "#/$defs/holeBlindParams"}}}},
|
||||
@@ -383,6 +417,7 @@
|
||||
{"if": {"properties": {"atomic_id": {"const": "chamfer"}}}, "then": {"properties": {"params": {"$ref": "#/$defs/chamferParams"}}}},
|
||||
{"if": {"properties": {"atomic_id": {"const": "pattern_linear"}}}, "then": {"properties": {"params": {"$ref": "#/$defs/linearPatternParams"}}}},
|
||||
{"if": {"properties": {"atomic_id": {"const": "pattern_mirror"}}}, "then": {"properties": {"params": {"$ref": "#/$defs/mirrorPatternParams"}}}},
|
||||
{"if": {"properties": {"atomic_id": {"const": "pattern_circular"}}}, "then": {"properties": {"params": {"$ref": "#/$defs/circularPatternParams"}}}},
|
||||
{"if": {"properties": {"atomic_id": {"const": "reference_plane"}}}, "then": {"properties": {"params": {"$ref": "#/$defs/referencePlaneParams"}}}},
|
||||
{"if": {"properties": {"atomic_id": {"const": "reference_axis"}}}, "then": {"properties": {"params": {"$ref": "#/$defs/referenceAxisParams"}}}},
|
||||
{"if": {"properties": {"atomic_id": {"const": "hole_wizard"}}}, "then": {"properties": {"params": {"$ref": "#/$defs/holeWizardParams"}}}}
|
||||
|
||||
Reference in New Issue
Block a user