feat: integrate SimpleCADAPI 2.0.2 CAD workflows

This commit is contained in:
Jerry
2026-08-03 11:17:05 +08:00
parent b5738e9109
commit c3a0f269b7
481 changed files with 110229 additions and 12826 deletions
@@ -56,8 +56,41 @@
},
"surface_layer": {
"type": "object",
"required": ["vertices", "solids", "free_shells", "surface_vocabulary", "curve_vocabulary"],
"oneOf": [
{
"required": [
"vertices",
"solids",
"free_shells",
"surface_vocabulary",
"curve_vocabulary"
]
},
{
"required": [
"format",
"encoding",
"uncompressed_bytes",
"compressed_bytes",
"sha256",
"data"
]
}
],
"properties": {
"format": {"const": "surfaceir-3.0"},
"encoding": {"const": "gzip+base64+json"},
"uncompressed_bytes": {"type": "integer", "minimum": 2},
"compressed_bytes": {"type": "integer", "minimum": 2},
"sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"data": {
"type": "string",
"minLength": 1,
"contentEncoding": "base64"
},
"vertices": {
"type": "array",
"items": {
@@ -77,6 +110,7 @@
"required": ["id", "shells"],
"properties": {
"id": {"type": "string"},
"orientation": {"type": "integer"},
"shells": {
"type": "array",
"items": {
@@ -84,6 +118,7 @@
"required": ["id", "faces"],
"properties": {
"id": {"type": "string"},
"orientation": {"type": "integer"},
"faces": {
"type": "array",
"items": {"$ref": "#/$defs/face"}
@@ -286,6 +321,8 @@
"properties": {
"id": {"type": "string"},
"orientation": {"type": "integer"},
"area": {"type": "number", "minimum": 0},
"volume_contribution": {"type": "number"},
"surface": {"type": "object"},
"uv_bounds": {
"type": "array",