BREAKING: More units of measure work and keyword args (#6291)
* More units of measure work Signed-off-by: Nick Cameron <nrc@ncameron.org> * Update CSG output since engine change --------- Signed-off-by: Nick Cameron <nrc@ncameron.org> Co-authored-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
@ -9,11 +9,11 @@ flowchart LR
|
||||
7[Solid2d]
|
||||
end
|
||||
subgraph path23 [Path]
|
||||
23["Path<br>[298, 323, 0]"]
|
||||
24["Segment<br>[329, 348, 0]"]
|
||||
25["Segment<br>[354, 373, 0]"]
|
||||
26["Segment<br>[379, 399, 0]"]
|
||||
27["Segment<br>[405, 413, 0]"]
|
||||
23["Path<br>[305, 330, 0]"]
|
||||
24["Segment<br>[336, 355, 0]"]
|
||||
25["Segment<br>[361, 380, 0]"]
|
||||
26["Segment<br>[386, 406, 0]"]
|
||||
27["Segment<br>[412, 420, 0]"]
|
||||
28[Solid2d]
|
||||
end
|
||||
1["Plane<br>[29, 48, 0]"]
|
||||
@ -32,7 +32,7 @@ flowchart LR
|
||||
20["SweepEdge Adjacent"]
|
||||
21["SweepEdge Opposite"]
|
||||
22["SweepEdge Adjacent"]
|
||||
29["Sweep Extrusion<br>[419, 438, 0]"]
|
||||
29["Sweep Extrusion<br>[426, 445, 0]"]
|
||||
30[Wall]
|
||||
31[Wall]
|
||||
32[Wall]
|
||||
@ -47,7 +47,7 @@ flowchart LR
|
||||
41["SweepEdge Adjacent"]
|
||||
42["SweepEdge Opposite"]
|
||||
43["SweepEdge Adjacent"]
|
||||
44["StartSketchOnFace<br>[263, 292, 0]"]
|
||||
44["StartSketchOnFace<br>[263, 299, 0]"]
|
||||
1 --- 2
|
||||
2 --- 3
|
||||
2 --- 4
|
||||
|
||||
@ -629,29 +629,23 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"abs_path": false,
|
||||
"commentStart": 0,
|
||||
"end": 0,
|
||||
"name": {
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 0,
|
||||
"end": 0,
|
||||
"name": "part001",
|
||||
"name": "face",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
},
|
||||
{
|
||||
"commentStart": 0,
|
||||
"end": 0,
|
||||
"raw": "\"END\"",
|
||||
"start": 0,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": "END"
|
||||
"arg": {
|
||||
"commentStart": 0,
|
||||
"end": 0,
|
||||
"raw": "\"END\"",
|
||||
"start": 0,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": "END"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
@ -672,8 +666,24 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
"commentStart": 0,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": {
|
||||
"abs_path": false,
|
||||
"commentStart": 0,
|
||||
"end": 0,
|
||||
"name": {
|
||||
"commentStart": 0,
|
||||
"end": 0,
|
||||
"name": "part001",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"path": [],
|
||||
"start": 0,
|
||||
"type": "Name",
|
||||
"type": "Name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
|
||||
@ -11,7 +11,7 @@ part001 = cube([0, 0], 20)
|
||||
|> close(%)
|
||||
|> extrude(length = 20)
|
||||
|
||||
part002 = startSketchOn(part001, "END")
|
||||
part002 = startSketchOn(part001, face = "END")
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line(end = [0, 10])
|
||||
|> line(end = [10, 0])
|
||||
|
||||
@ -20,7 +20,7 @@ description: Operations executed sketch_on_face_end.kcl
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"data": {
|
||||
"planeOrSolid": {
|
||||
"value": {
|
||||
"type": "String",
|
||||
"value": "XY"
|
||||
@ -70,16 +70,7 @@ description: Operations executed sketch_on_face_end.kcl
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"data": {
|
||||
"value": {
|
||||
"type": "Solid",
|
||||
"value": {
|
||||
"artifactId": "[uuid]"
|
||||
}
|
||||
},
|
||||
"sourceRange": []
|
||||
},
|
||||
"tag": {
|
||||
"face": {
|
||||
"value": {
|
||||
"type": "String",
|
||||
"value": "END"
|
||||
@ -90,7 +81,15 @@ description: Operations executed sketch_on_face_end.kcl
|
||||
"name": "startSketchOn",
|
||||
"sourceRange": [],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": null
|
||||
"unlabeledArg": {
|
||||
"value": {
|
||||
"type": "Solid",
|
||||
"value": {
|
||||
"artifactId": "[uuid]"
|
||||
}
|
||||
},
|
||||
"sourceRange": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
|
||||
@ -131,22 +131,34 @@ description: Variables in memory after executing sketch_on_face_end.kcl
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
"z": 0.0,
|
||||
"units": {
|
||||
"type": "Mm"
|
||||
}
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
"z": 0.0,
|
||||
"units": {
|
||||
"type": "Mm"
|
||||
}
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
"z": 0.0,
|
||||
"units": {
|
||||
"type": "Mm"
|
||||
}
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
"z": 1.0,
|
||||
"units": {
|
||||
"type": "Mm"
|
||||
}
|
||||
},
|
||||
"units": {
|
||||
"type": "Mm"
|
||||
@ -309,17 +321,26 @@ description: Variables in memory after executing sketch_on_face_end.kcl
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
"z": 0.0,
|
||||
"units": {
|
||||
"type": "Mm"
|
||||
}
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
"z": 0.0,
|
||||
"units": {
|
||||
"type": "Mm"
|
||||
}
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
"z": 1.0,
|
||||
"units": {
|
||||
"type": "Mm"
|
||||
}
|
||||
},
|
||||
"solid": {
|
||||
"type": "Solid",
|
||||
@ -444,22 +465,34 @@ description: Variables in memory after executing sketch_on_face_end.kcl
|
||||
"origin": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
"z": 0.0,
|
||||
"units": {
|
||||
"type": "Mm"
|
||||
}
|
||||
},
|
||||
"xAxis": {
|
||||
"x": 1.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
"z": 0.0,
|
||||
"units": {
|
||||
"type": "Mm"
|
||||
}
|
||||
},
|
||||
"yAxis": {
|
||||
"x": 0.0,
|
||||
"y": 1.0,
|
||||
"z": 0.0
|
||||
"z": 0.0,
|
||||
"units": {
|
||||
"type": "Mm"
|
||||
}
|
||||
},
|
||||
"zAxis": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 1.0
|
||||
"z": 1.0,
|
||||
"units": {
|
||||
"type": "Mm"
|
||||
}
|
||||
},
|
||||
"units": {
|
||||
"type": "Mm"
|
||||
|
||||
@ -15,7 +15,7 @@ part001 = cube([0, 0], 20)
|
||||
|> close(%)
|
||||
|> extrude(length = 20)
|
||||
|
||||
part002 = startSketchOn(part001, END)
|
||||
part002 = startSketchOn(part001, face = END)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line(end = [0, 10])
|
||||
|> line(end = [10, 0])
|
||||
|
||||
Reference in New Issue
Block a user