重构 改为标准化输出

This commit is contained in:
2026-09-01 14:10:23 +08:00
parent 7533b298f1
commit bc87bd6d2d
10151 changed files with 1709487 additions and 11776 deletions
+20 -1
View File
@@ -279,6 +279,25 @@
],
"additionalProperties": false
},
"constructionBsplineSegment": {
"type": "object",
"properties": {
"type": {"const": "bspline"},
"degree": {"type": "integer", "minimum": 1},
"control_points": {"type": "array", "minItems": 2, "items": {"$ref": "#/$defs/point2"}},
"knots": {"type": "array", "minItems": 2, "items": {"type": "number"}},
"periodic": {"type": "boolean"},
"weights": {"type": "array", "minItems": 2, "items": {"type": "number", "exclusiveMinimum": 0}}
},
"required": ["type", "degree", "control_points", "knots", "periodic"],
"additionalProperties": false
},
"constructionSegment": {
"oneOf": [
{"$ref": "#/$defs/analyticSegment"},
{"$ref": "#/$defs/constructionBsplineSegment"}
]
},
"analyticContour": {
"type": "object",
"properties": {
@@ -294,7 +313,7 @@
"properties": {
"type": {"const": "analytic_contours"},
"contours": {"type": "array", "items": {"$ref": "#/$defs/analyticContour"}},
"construction": {"type": "array", "items": {"$ref": "#/$defs/analyticSegment"}}
"construction": {"type": "array", "items": {"$ref": "#/$defs/constructionSegment"}}
},
"required": ["type", "contours"],
"additionalProperties": false