311 lines
8.7 KiB
JSON
311 lines
8.7 KiB
JSON
{
|
|
"schema": "freecad-web-p6-part-shape-max-vol-method-runtime/v1",
|
|
"taskId": "FW-P6-FPA-Y",
|
|
"module": "Part",
|
|
"tier": "tier-2-pure",
|
|
"apiId": "py:Part:function:shapeOfMaxVol",
|
|
"status": "pass",
|
|
"sourceEntry": "src/Mod/Part/JoinFeatures.py",
|
|
"sourceRevision": "2778e3f9c215da48bf0cfd562478d45d624aaa47",
|
|
"route": {
|
|
"command": "part.pythonMethod",
|
|
"worker": "web/src/part.worker.ts",
|
|
"facade": "web/src/part-python-method-facade.ts",
|
|
"apiBridge": "web/src/api-method-bridge.ts",
|
|
"native": "freecad-source/src/WebAssembly/FreeCADCoreProbe/PartBoxProbe.cpp:fc_web_dispatch_json"
|
|
},
|
|
"request": {
|
|
"schema": "freecad-web-facade/v1",
|
|
"version": 1,
|
|
"kind": "request",
|
|
"requestId": "part-shape-success",
|
|
"command": "part.pythonMethod",
|
|
"payload": {
|
|
"schema": "freecad-web-part/python-method/v1",
|
|
"module": "Part",
|
|
"tier": "tier-2-pure",
|
|
"apiId": "py:Part:function:shapeOfMaxVol",
|
|
"name": "shapeOfMaxVol",
|
|
"family": "geometry-value",
|
|
"args": {
|
|
"volumes": [
|
|
6,
|
|
24,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"documentId": "part-python-method"
|
|
},
|
|
"requestSha256": "b1246153fe089d0c30cabfa344b4efcf912d05001598c2b30f7b071e50e0ce26",
|
|
"trace": {
|
|
"ready": {
|
|
"kind": "ready",
|
|
"action": "part.pythonMethod"
|
|
},
|
|
"success": {
|
|
"schema": "freecad-web-facade/v1",
|
|
"version": 1,
|
|
"kind": "result",
|
|
"requestId": "part-shape-success",
|
|
"result": {
|
|
"apiId": "py:Part:function:shapeOfMaxVol",
|
|
"family": "geometry-value",
|
|
"module": "Part",
|
|
"name": "shapeOfMaxVol",
|
|
"native": true,
|
|
"ok": true,
|
|
"parameterSchema": {
|
|
"volumes": "number[]"
|
|
},
|
|
"resourcesReleased": true,
|
|
"result": {
|
|
"childCount": 3,
|
|
"compoundShapeType": "Compound",
|
|
"selectedVolume": 24,
|
|
"volumes": [
|
|
6,
|
|
24,
|
|
12
|
|
]
|
|
},
|
|
"returnSchema": {
|
|
"fields": {
|
|
"childCount": "integer",
|
|
"compoundShapeType": "string",
|
|
"selectedVolume": "number",
|
|
"volumes": "number[]"
|
|
},
|
|
"type": "Part.Shape"
|
|
},
|
|
"schema": "freecad-web-part/python-method/v1",
|
|
"source": "freecad-source",
|
|
"sourceEntry": "src/Mod/Part/JoinFeatures.py",
|
|
"sourceRevision": "2778e3f9c215da48bf0cfd562478d45d624aaa47",
|
|
"status": "exposed",
|
|
"tier": "tier-2-pure"
|
|
}
|
|
},
|
|
"repeat": {
|
|
"schema": "freecad-web-facade/v1",
|
|
"version": 1,
|
|
"kind": "result",
|
|
"requestId": "part-shape-repeat",
|
|
"result": {
|
|
"apiId": "py:Part:function:shapeOfMaxVol",
|
|
"family": "geometry-value",
|
|
"module": "Part",
|
|
"name": "shapeOfMaxVol",
|
|
"native": true,
|
|
"ok": true,
|
|
"parameterSchema": {
|
|
"volumes": "number[]"
|
|
},
|
|
"resourcesReleased": true,
|
|
"result": {
|
|
"childCount": 3,
|
|
"compoundShapeType": "Compound",
|
|
"selectedVolume": 24,
|
|
"volumes": [
|
|
6,
|
|
24,
|
|
12
|
|
]
|
|
},
|
|
"returnSchema": {
|
|
"fields": {
|
|
"childCount": "integer",
|
|
"compoundShapeType": "string",
|
|
"selectedVolume": "number",
|
|
"volumes": "number[]"
|
|
},
|
|
"type": "Part.Shape"
|
|
},
|
|
"schema": "freecad-web-part/python-method/v1",
|
|
"source": "freecad-source",
|
|
"sourceEntry": "src/Mod/Part/JoinFeatures.py",
|
|
"sourceRevision": "2778e3f9c215da48bf0cfd562478d45d624aaa47",
|
|
"status": "exposed",
|
|
"tier": "tier-2-pure"
|
|
}
|
|
},
|
|
"invalid": {
|
|
"schema": "freecad-web-facade/v1",
|
|
"version": 1,
|
|
"kind": "error",
|
|
"requestId": "part-shape-invalid",
|
|
"error": {
|
|
"code": "invalid_arguments",
|
|
"message": "Part.shapeOfMaxVol volumes must be positive",
|
|
"diagnostic": {
|
|
"args": {
|
|
"volumes": [
|
|
0,
|
|
24
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"cancelled": {
|
|
"schema": "freecad-web-facade/v1",
|
|
"version": 1,
|
|
"kind": "error",
|
|
"requestId": "part-shape-cancel",
|
|
"error": {
|
|
"code": "cancelled",
|
|
"message": "request was cancelled"
|
|
}
|
|
},
|
|
"crossModule": {
|
|
"schema": "freecad-web-facade/v1",
|
|
"version": 1,
|
|
"kind": "error",
|
|
"requestId": "invalid",
|
|
"error": {
|
|
"code": "invalid_request",
|
|
"message": "Part Python method envelope invalid"
|
|
}
|
|
},
|
|
"direct": {
|
|
"apiId": "py:Part:function:shapeOfMaxVol",
|
|
"family": "geometry-value",
|
|
"module": "Part",
|
|
"name": "shapeOfMaxVol",
|
|
"native": true,
|
|
"ok": true,
|
|
"parameterSchema": {
|
|
"volumes": "number[]"
|
|
},
|
|
"resourcesReleased": true,
|
|
"result": {
|
|
"childCount": 3,
|
|
"compoundShapeType": "Compound",
|
|
"selectedVolume": 24,
|
|
"volumes": [
|
|
6,
|
|
24,
|
|
12
|
|
]
|
|
},
|
|
"returnSchema": {
|
|
"fields": {
|
|
"childCount": "integer",
|
|
"compoundShapeType": "string",
|
|
"selectedVolume": "number",
|
|
"volumes": "number[]"
|
|
},
|
|
"type": "Part.Shape"
|
|
},
|
|
"schema": "freecad-web-part/python-method/v1",
|
|
"source": "freecad-source",
|
|
"sourceEntry": "src/Mod/Part/JoinFeatures.py",
|
|
"sourceRevision": "2778e3f9c215da48bf0cfd562478d45d624aaa47",
|
|
"status": "exposed",
|
|
"tier": "tier-2-pure"
|
|
},
|
|
"crossDirect": {
|
|
"ok": false,
|
|
"code": "unmatched_source_record",
|
|
"error": "Part native method is not registered for this module/tier"
|
|
},
|
|
"malformed": {
|
|
"ok": false,
|
|
"code": "unmatched_source_record",
|
|
"error": "Part native method is not registered for this module/tier"
|
|
},
|
|
"unsupported": {
|
|
"ok": false,
|
|
"code": "unsupported_command",
|
|
"error": "Part native dispatch command is not registered"
|
|
},
|
|
"bridgeSuccess": {
|
|
"schema": "freecad-web-facade/v1",
|
|
"version": 1,
|
|
"kind": "result",
|
|
"requestId": "api-method-1788326178277",
|
|
"result": {
|
|
"apiId": "py:Part:function:shapeOfMaxVol",
|
|
"family": "geometry-value",
|
|
"module": "Part",
|
|
"name": "shapeOfMaxVol",
|
|
"native": true,
|
|
"ok": true,
|
|
"parameterSchema": {
|
|
"volumes": "number[]"
|
|
},
|
|
"resourcesReleased": true,
|
|
"result": {
|
|
"childCount": 3,
|
|
"compoundShapeType": "Compound",
|
|
"selectedVolume": 24,
|
|
"volumes": [
|
|
6,
|
|
24,
|
|
12
|
|
]
|
|
},
|
|
"returnSchema": {
|
|
"fields": {
|
|
"childCount": "integer",
|
|
"compoundShapeType": "string",
|
|
"selectedVolume": "number",
|
|
"volumes": "number[]"
|
|
},
|
|
"type": "Part.Shape"
|
|
},
|
|
"schema": "freecad-web-part/python-method/v1",
|
|
"source": "freecad-source",
|
|
"sourceEntry": "src/Mod/Part/JoinFeatures.py",
|
|
"sourceRevision": "2778e3f9c215da48bf0cfd562478d45d624aaa47",
|
|
"status": "exposed",
|
|
"tier": "tier-2-pure"
|
|
}
|
|
},
|
|
"bridgeInvalid": {
|
|
"schema": "freecad-web-facade/v1",
|
|
"version": 1,
|
|
"kind": "error",
|
|
"requestId": "api-method-1788326178277",
|
|
"error": {
|
|
"code": "invalid_arguments",
|
|
"message": "Part.shapeOfMaxVol requires one array of 2 to 8 positive finite volumes",
|
|
"diagnostic": {
|
|
"apiId": "py:Part:function:shapeOfMaxVol",
|
|
"args": [
|
|
[
|
|
6,
|
|
0,
|
|
12
|
|
]
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"replay": {
|
|
"equal": true,
|
|
"resultSha256": "4797e0e76a316e5e59c5699b5616110bb68e2c90b7d3ce93b030cf9dd5857616"
|
|
},
|
|
"resources": {
|
|
"resourcesReleased": true,
|
|
"documentMutation": false
|
|
},
|
|
"resultSha256": "4797e0e76a316e5e59c5699b5616110bb68e2c90b7d3ce93b030cf9dd5857616",
|
|
"artifacts": {
|
|
"wasm": {
|
|
"path": "web/public/kernel/FreeCADWebPartBoxProbe.wasm",
|
|
"sha256": "67ad25ffd9962e986c506944fc53cb0da59b07f7f6cf1b8cf942f8fd1b49442c"
|
|
},
|
|
"loader": {
|
|
"path": "web/public/kernel/FreeCADWebPartBoxProbe.js",
|
|
"sha256": "8af2d3ef31e9dc0749b65cd32f34258e0d7e9547df5238174466d9a83ecb93e0"
|
|
}
|
|
},
|
|
"boundaries": [
|
|
"The typed fixture creates native Part boxes and invokes official JoinFeatures.shapeOfMaxVol on a real compound.",
|
|
"Equal-volume inputs remain a source_error from the official function; GUI-only records remain restricted.",
|
|
"All values are returned by compiled FreeCAD through fc_web_dispatch_json; no JavaScript geometry substitute is used."
|
|
]
|
|
}
|