Declare std::offsetPlane in KCL (#6344)

* Declare std::offsetPlane in KCL

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* Use two axes to define planes in KCL

Signed-off-by: Nick Cameron <nrc@ncameron.org>

---------

Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
Nick Cameron
2025-04-24 22:01:27 +12:00
committed by GitHub
parent 20c2ce3bac
commit 83a87b046f
187 changed files with 115960 additions and 133737 deletions

View File

@ -39,8 +39,8 @@ description: Operations executed food-service-spatula.kcl
"type": "FunctionCall",
"name": "toDegrees",
"functionSourceRange": [
12033,
12082,
11927,
11976,
1
],
"unlabeledArg": null,
@ -57,8 +57,8 @@ description: Operations executed food-service-spatula.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11603,
11652,
11497,
11546,
1
],
"unlabeledArg": null,
@ -93,8 +93,8 @@ description: Operations executed food-service-spatula.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11603,
11652,
11497,
11546,
1
],
"unlabeledArg": null,
@ -147,8 +147,8 @@ description: Operations executed food-service-spatula.kcl
"type": "FunctionCall",
"name": "toDegrees",
"functionSourceRange": [
12033,
12082,
11927,
11976,
1
],
"unlabeledArg": null,
@ -165,8 +165,8 @@ description: Operations executed food-service-spatula.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11603,
11652,
11497,
11546,
1
],
"unlabeledArg": null,
@ -201,8 +201,8 @@ description: Operations executed food-service-spatula.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11603,
11652,
11497,
11546,
1
],
"unlabeledArg": null,
@ -255,8 +255,8 @@ description: Operations executed food-service-spatula.kcl
"type": "FunctionCall",
"name": "toDegrees",
"functionSourceRange": [
12033,
12082,
11927,
11976,
1
],
"unlabeledArg": null,
@ -273,8 +273,8 @@ description: Operations executed food-service-spatula.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11603,
11652,
11497,
11546,
1
],
"unlabeledArg": null,
@ -309,8 +309,8 @@ description: Operations executed food-service-spatula.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11603,
11652,
11497,
11546,
1
],
"unlabeledArg": null,
@ -501,6 +501,15 @@ description: Operations executed food-service-spatula.kcl
}
},
{
"type": "KclStdLibCall",
"name": "offsetPlane",
"unlabeledArg": {
"value": {
"type": "Plane",
"artifact_id": "[uuid]"
},
"sourceRange": []
},
"labeledArgs": {
"offset": {
"value": {
@ -519,16 +528,7 @@ description: Operations executed food-service-spatula.kcl
"sourceRange": []
}
},
"name": "offsetPlane",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
"type": "Plane",
"artifact_id": "[uuid]"
},
"sourceRange": []
}
"sourceRange": []
},
{
"labeledArgs": {
@ -894,8 +894,8 @@ description: Operations executed food-service-spatula.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11603,
11652,
11497,
11546,
1
],
"unlabeledArg": null,
@ -930,8 +930,8 @@ description: Operations executed food-service-spatula.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11603,
11652,
11497,
11546,
1
],
"unlabeledArg": null,

View File

@ -197,14 +197,6 @@ description: Variables in memory after executing food-service-spatula.kcl
"units": {
"type": "Mm"
}
},
"zAxis": {
"x": 0.0,
"y": 0.0,
"z": 1.0,
"units": {
"type": "Mm"
}
}
},
"start": {
@ -414,14 +406,6 @@ description: Variables in memory after executing food-service-spatula.kcl
"units": {
"type": "Mm"
}
},
"zAxis": {
"x": 0.0,
"y": 0.0,
"z": 1.0,
"units": {
"type": "Mm"
}
}
},
"start": {
@ -484,14 +468,6 @@ description: Variables in memory after executing food-service-spatula.kcl
"units": {
"type": "Mm"
}
},
"zAxis": {
"x": 0.0,
"y": 0.0,
"z": 1.0,
"units": {
"type": "Mm"
}
}
}
},
@ -825,14 +801,6 @@ description: Variables in memory after executing food-service-spatula.kcl
"units": {
"type": "Mm"
}
},
"zAxis": {
"x": 0.939693,
"y": -0.0,
"z": 0.34202,
"units": {
"type": "Mm"
}
}
},
"start": {
@ -1038,14 +1006,6 @@ description: Variables in memory after executing food-service-spatula.kcl
"type": "Mm"
}
},
"zAxis": {
"x": 0.939693,
"y": -0.0,
"z": 0.34202,
"units": {
"type": "Mm"
}
},
"solid": {
"type": "Solid",
"id": "[uuid]",
@ -1348,14 +1308,6 @@ description: Variables in memory after executing food-service-spatula.kcl
"units": {
"type": "Mm"
}
},
"zAxis": {
"x": 0.939693,
"y": -0.0,
"z": 0.34202,
"units": {
"type": "Mm"
}
}
},
"start": {
@ -1674,14 +1626,6 @@ description: Variables in memory after executing food-service-spatula.kcl
"units": {
"type": "Mm"
}
},
"zAxis": {
"x": 0.939693,
"y": -0.0,
"z": 0.34202,
"units": {
"type": "Mm"
}
}
},
"start": {
@ -1744,14 +1688,6 @@ description: Variables in memory after executing food-service-spatula.kcl
"units": {
"type": "Mm"
}
},
"zAxis": {
"x": 0.939693,
"y": -0.0,
"z": 0.34202,
"units": {
"type": "Mm"
}
}
}
},
@ -2028,14 +1964,6 @@ description: Variables in memory after executing food-service-spatula.kcl
"units": {
"type": "Mm"
}
},
"zAxis": {
"x": 0.0,
"y": -1.0,
"z": 0.0,
"units": {
"type": "Mm"
}
}
},
"start": {
@ -2447,14 +2375,6 @@ description: Variables in memory after executing food-service-spatula.kcl
"units": {
"type": "Mm"
}
},
"zAxis": {
"x": 0.0,
"y": -1.0,
"z": 0.0,
"units": {
"type": "Mm"
}
}
},
"start": {
@ -2521,14 +2441,6 @@ description: Variables in memory after executing food-service-spatula.kcl
"units": {
"type": "Mm"
}
},
"zAxis": {
"x": 0.0,
"y": -1.0,
"z": 0.0,
"units": {
"type": "Mm"
}
}
}
},
@ -2572,14 +2484,6 @@ description: Variables in memory after executing food-service-spatula.kcl
"type": "Mm"
}
},
"zAxis": {
"x": 0.939693,
"y": -0.0,
"z": 0.34202,
"units": {
"type": "Mm"
}
},
"solid": {
"type": "Solid",
"id": "[uuid]",
@ -2882,14 +2786,6 @@ description: Variables in memory after executing food-service-spatula.kcl
"units": {
"type": "Mm"
}
},
"zAxis": {
"x": 0.939693,
"y": -0.0,
"z": 0.34202,
"units": {
"type": "Mm"
}
}
},
"start": {
@ -3078,14 +2974,6 @@ description: Variables in memory after executing food-service-spatula.kcl
"units": {
"type": "Mm"
}
},
"zAxis": {
"x": 0.0,
"y": 0.0,
"z": 1.0,
"units": {
"type": "Mm"
}
}
},
"start": {
@ -3253,14 +3141,6 @@ description: Variables in memory after executing food-service-spatula.kcl
"units": {
"type": "Mm"
}
},
"zAxis": {
"x": 0.0,
"y": 0.0,
"z": 1.0,
"units": {
"type": "Mm"
}
}
},
"start": {
@ -3428,14 +3308,6 @@ description: Variables in memory after executing food-service-spatula.kcl
"units": {
"type": "Mm"
}
},
"zAxis": {
"x": 0.0,
"y": 0.0,
"z": 1.0,
"units": {
"type": "Mm"
}
}
},
"start": {
@ -3605,14 +3477,6 @@ description: Variables in memory after executing food-service-spatula.kcl
"units": {
"type": "Mm"
}
},
"zAxis": {
"x": 0.0,
"y": 0.0,
"z": 1.0,
"units": {
"type": "Mm"
}
}
},
"start": {