Replace plane strings with literals (#6592)

Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
Nick Cameron
2025-04-30 17:13:11 +12:00
committed by GitHub
parent 14ce66bcc1
commit bae875382c
202 changed files with 2113 additions and 1852 deletions

View File

@ -1,15 +1,15 @@
```mermaid
flowchart LR
subgraph path2 [Path]
2["Path<br>[35, 60, 0]"]
3["Segment<br>[66, 99, 0]"]
4["Segment<br>[105, 124, 0]"]
5["Segment<br>[130, 165, 0]"]
6["Segment<br>[171, 179, 0]"]
2["Path<br>[33, 58, 0]"]
3["Segment<br>[64, 97, 0]"]
4["Segment<br>[103, 122, 0]"]
5["Segment<br>[128, 163, 0]"]
6["Segment<br>[169, 177, 0]"]
7[Solid2d]
end
1["Plane<br>[10, 29, 0]"]
8["Sweep Extrusion<br>[185, 205, 0]"]
1["Plane<br>[10, 27, 0]"]
8["Sweep Extrusion<br>[183, 203, 0]"]
9[Wall]
10[Wall]
11[Wall]
@ -24,8 +24,8 @@ flowchart LR
20["SweepEdge Adjacent"]
21["SweepEdge Adjacent"]
22["SweepEdge Adjacent"]
23["EdgeCut Fillet<br>[211, 269, 0]"]
24["EdgeCut Fillet<br>[211, 269, 0]"]
23["EdgeCut Fillet<br>[209, 267, 0]"]
24["EdgeCut Fillet<br>[209, 267, 0]"]
1 --- 2
2 --- 3
2 --- 4

View File

@ -22,13 +22,20 @@ description: Result of parsing basic_fillet_cube_end.kcl
{
"arguments": [
{
"abs_path": false,
"commentStart": 0,
"end": 0,
"raw": "'XY'",
"name": {
"commentStart": 0,
"end": 0,
"name": "XY",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Literal",
"type": "Literal",
"value": "XY"
"type": "Name",
"type": "Name"
}
],
"callee": {

View File

@ -1,4 +1,4 @@
part001 = startSketchOn('XY')
part001 = startSketchOn(XY)
|> startProfile(at = [0, 0])
|> line(end = [0, 10], tag = $thing)
|> line(end = [10, 0])

View File

@ -7,8 +7,8 @@ description: Operations executed basic_fillet_cube_end.kcl
"labeledArgs": {
"planeOrSolid": {
"value": {
"type": "String",
"value": "XY"
"type": "Plane",
"artifact_id": "[uuid]"
},
"sourceRange": []
}

View File

@ -15,9 +15,9 @@ description: Variables in memory after executing basic_fillet_cube_end.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 92,
"end": 98,
"start": 92,
"commentStart": 90,
"end": 96,
"start": 90,
"type": "TagDeclarator",
"value": "thing"
},
@ -35,9 +35,9 @@ description: Variables in memory after executing basic_fillet_cube_end.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 157,
"end": 164,
"start": 157,
"commentStart": 155,
"end": 162,
"start": 155,
"type": "TagDeclarator",
"value": "thing2"
},
@ -65,9 +65,9 @@ description: Variables in memory after executing basic_fillet_cube_end.kcl
0.0
],
"tag": {
"commentStart": 92,
"end": 98,
"start": 92,
"commentStart": 90,
"end": 96,
"start": 90,
"type": "TagDeclarator",
"value": "thing"
},
@ -109,9 +109,9 @@ description: Variables in memory after executing basic_fillet_cube_end.kcl
10.0
],
"tag": {
"commentStart": 157,
"end": 164,
"start": 157,
"commentStart": 155,
"end": 162,
"start": 155,
"type": "TagDeclarator",
"value": "thing2"
},