Move the wasm lib, and cleanup rust directory and all references (#5585)
* git mv src/wasm-lib rust Signed-off-by: Jess Frazelle <github@jessfraz.com> * mv wasm-lib to workspace Signed-off-by: Jess Frazelle <github@jessfraz.com> * mv kcl-lib Signed-off-by: Jess Frazelle <github@jessfraz.com> * mv derive docs Signed-off-by: Jess Frazelle <github@jessfraz.com> * resolve file paths Signed-off-by: Jess Frazelle <github@jessfraz.com> * clippy Signed-off-by: Jess Frazelle <github@jessfraz.com> * move more shit Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix more paths Signed-off-by: Jess Frazelle <github@jessfraz.com> * make yarn build:wasm work Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix scripts Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixups Signed-off-by: Jess Frazelle <github@jessfraz.com> * better references Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix cargo ci Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix reference Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix more ci Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix tests Signed-off-by: Jess Frazelle <github@jessfraz.com> * cargo sort Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix script Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix Signed-off-by: Jess Frazelle <github@jessfraz.com> * fmt Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix a dep Signed-off-by: Jess Frazelle <github@jessfraz.com> * sort Signed-off-by: Jess Frazelle <github@jessfraz.com> * remove unused deps Signed-off-by: Jess Frazelle <github@jessfraz.com> * Revert "remove unused deps" This reverts commit fbabdb062e275fd5cbc1476f8480a1afee15d972. * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * deps; Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
2557
rust/kcl-lib/tests/fillet-and-shell/artifact_commands.snap
Normal file
2557
rust/kcl-lib/tests/fillet-and-shell/artifact_commands.snap
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,6 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
description: Artifact graph flowchart fillet-and-shell.kcl
|
||||
extension: md
|
||||
snapshot_kind: binary
|
||||
---
|
||||
@ -0,0 +1,227 @@
|
||||
```mermaid
|
||||
flowchart LR
|
||||
subgraph path2 [Path]
|
||||
2["Path<br>[373, 461, 0]"]
|
||||
3["Segment<br>[467, 558, 0]"]
|
||||
4["Segment<br>[564, 655, 0]"]
|
||||
5["Segment<br>[661, 754, 0]"]
|
||||
6["Segment<br>[760, 768, 0]"]
|
||||
7[Solid2d]
|
||||
end
|
||||
subgraph path9 [Path]
|
||||
9["Path<br>[802, 827, 0]"]
|
||||
10["Segment<br>[833, 881, 0]"]
|
||||
11["Segment<br>[887, 944, 0]"]
|
||||
12["Segment<br>[950, 999, 0]"]
|
||||
13["Segment<br>[1005, 1024, 0]"]
|
||||
14[Solid2d]
|
||||
end
|
||||
subgraph path31 [Path]
|
||||
31["Path<br>[1337, 1362, 0]"]
|
||||
end
|
||||
subgraph path32 [Path]
|
||||
32["Path<br>[1370, 1407, 0]"]
|
||||
33["Segment<br>[1370, 1407, 0]"]
|
||||
34[Solid2d]
|
||||
end
|
||||
subgraph path35 [Path]
|
||||
35["Path<br>[1420, 1458, 0]"]
|
||||
36["Segment<br>[1420, 1458, 0]"]
|
||||
37[Solid2d]
|
||||
end
|
||||
subgraph path45 [Path]
|
||||
45["Path<br>[1337, 1362, 0]"]
|
||||
end
|
||||
subgraph path46 [Path]
|
||||
46["Path<br>[1370, 1407, 0]"]
|
||||
47["Segment<br>[1370, 1407, 0]"]
|
||||
48[Solid2d]
|
||||
end
|
||||
subgraph path49 [Path]
|
||||
49["Path<br>[1420, 1458, 0]"]
|
||||
50["Segment<br>[1420, 1458, 0]"]
|
||||
51[Solid2d]
|
||||
end
|
||||
subgraph path59 [Path]
|
||||
59["Path<br>[1337, 1362, 0]"]
|
||||
end
|
||||
subgraph path60 [Path]
|
||||
60["Path<br>[1370, 1407, 0]"]
|
||||
61["Segment<br>[1370, 1407, 0]"]
|
||||
62[Solid2d]
|
||||
end
|
||||
subgraph path63 [Path]
|
||||
63["Path<br>[1420, 1458, 0]"]
|
||||
64["Segment<br>[1420, 1458, 0]"]
|
||||
65[Solid2d]
|
||||
end
|
||||
subgraph path73 [Path]
|
||||
73["Path<br>[1337, 1362, 0]"]
|
||||
end
|
||||
subgraph path74 [Path]
|
||||
74["Path<br>[1370, 1407, 0]"]
|
||||
75["Segment<br>[1370, 1407, 0]"]
|
||||
76[Solid2d]
|
||||
end
|
||||
subgraph path77 [Path]
|
||||
77["Path<br>[1420, 1458, 0]"]
|
||||
78["Segment<br>[1420, 1458, 0]"]
|
||||
79[Solid2d]
|
||||
end
|
||||
1["Plane<br>[373, 461, 0]"]
|
||||
8["Plane<br>[777, 796, 0]"]
|
||||
15["Sweep Extrusion<br>[1030, 1058, 0]"]
|
||||
16[Wall]
|
||||
17[Wall]
|
||||
18[Wall]
|
||||
19[Wall]
|
||||
20["Cap Start"]
|
||||
21["Cap End"]
|
||||
22["SweepEdge Opposite"]
|
||||
23["SweepEdge Adjacent"]
|
||||
24["SweepEdge Opposite"]
|
||||
25["SweepEdge Adjacent"]
|
||||
26["SweepEdge Opposite"]
|
||||
27["SweepEdge Adjacent"]
|
||||
28["SweepEdge Opposite"]
|
||||
29["SweepEdge Adjacent"]
|
||||
30["Plane<br>[1310, 1329, 0]"]
|
||||
38["Sweep Extrusion<br>[1470, 1494, 0]"]
|
||||
39[Wall]
|
||||
40["Cap Start"]
|
||||
41["Cap End"]
|
||||
42["SweepEdge Opposite"]
|
||||
43["SweepEdge Adjacent"]
|
||||
44["Plane<br>[1310, 1329, 0]"]
|
||||
52["Sweep Extrusion<br>[1470, 1494, 0]"]
|
||||
53[Wall]
|
||||
54["Cap Start"]
|
||||
55["Cap End"]
|
||||
56["SweepEdge Opposite"]
|
||||
57["SweepEdge Adjacent"]
|
||||
58["Plane<br>[1310, 1329, 0]"]
|
||||
66["Sweep Extrusion<br>[1470, 1494, 0]"]
|
||||
67[Wall]
|
||||
68["Cap Start"]
|
||||
69["Cap End"]
|
||||
70["SweepEdge Opposite"]
|
||||
71["SweepEdge Adjacent"]
|
||||
72["Plane<br>[1310, 1329, 0]"]
|
||||
80["Sweep Extrusion<br>[1470, 1494, 0]"]
|
||||
81[Wall]
|
||||
82["Cap Start"]
|
||||
83["Cap End"]
|
||||
84["SweepEdge Opposite"]
|
||||
85["SweepEdge Adjacent"]
|
||||
86["EdgeCut Fillet<br>[1064, 1270, 0]"]
|
||||
87["EdgeCut Fillet<br>[1064, 1270, 0]"]
|
||||
88["EdgeCut Fillet<br>[1064, 1270, 0]"]
|
||||
89["EdgeCut Fillet<br>[1064, 1270, 0]"]
|
||||
1 --- 2
|
||||
2 --- 3
|
||||
2 --- 4
|
||||
2 --- 5
|
||||
2 --- 6
|
||||
2 --- 7
|
||||
8 --- 9
|
||||
9 --- 10
|
||||
9 --- 11
|
||||
9 --- 12
|
||||
9 --- 13
|
||||
9 ---- 15
|
||||
9 --- 14
|
||||
10 --- 16
|
||||
10 --- 22
|
||||
10 --- 23
|
||||
11 --- 17
|
||||
11 --- 24
|
||||
11 --- 25
|
||||
12 --- 18
|
||||
12 --- 26
|
||||
12 --- 27
|
||||
13 --- 19
|
||||
13 --- 28
|
||||
13 --- 29
|
||||
15 --- 16
|
||||
15 --- 17
|
||||
15 --- 18
|
||||
15 --- 19
|
||||
15 --- 20
|
||||
15 --- 21
|
||||
15 --- 22
|
||||
15 --- 23
|
||||
15 --- 24
|
||||
15 --- 25
|
||||
15 --- 26
|
||||
15 --- 27
|
||||
15 --- 28
|
||||
15 --- 29
|
||||
30 --- 31
|
||||
30 --- 32
|
||||
30 --- 35
|
||||
32 --- 33
|
||||
32 ---- 38
|
||||
32 --- 34
|
||||
33 --- 39
|
||||
33 --- 42
|
||||
33 --- 43
|
||||
35 --- 36
|
||||
35 --- 37
|
||||
38 --- 39
|
||||
38 --- 40
|
||||
38 --- 41
|
||||
38 --- 42
|
||||
38 --- 43
|
||||
44 --- 45
|
||||
44 --- 46
|
||||
44 --- 49
|
||||
46 --- 47
|
||||
46 ---- 52
|
||||
46 --- 48
|
||||
47 --- 53
|
||||
47 --- 56
|
||||
47 --- 57
|
||||
49 --- 50
|
||||
49 --- 51
|
||||
52 --- 53
|
||||
52 --- 54
|
||||
52 --- 55
|
||||
52 --- 56
|
||||
52 --- 57
|
||||
58 --- 59
|
||||
58 --- 60
|
||||
58 --- 63
|
||||
60 --- 61
|
||||
60 ---- 66
|
||||
60 --- 62
|
||||
61 --- 67
|
||||
61 --- 70
|
||||
61 --- 71
|
||||
63 --- 64
|
||||
63 --- 65
|
||||
66 --- 67
|
||||
66 --- 68
|
||||
66 --- 69
|
||||
66 --- 70
|
||||
66 --- 71
|
||||
72 --- 73
|
||||
72 --- 74
|
||||
72 --- 77
|
||||
74 --- 75
|
||||
74 ---- 80
|
||||
74 --- 76
|
||||
75 --- 81
|
||||
75 --- 84
|
||||
75 --- 85
|
||||
77 --- 78
|
||||
77 --- 79
|
||||
80 --- 81
|
||||
80 --- 82
|
||||
80 --- 83
|
||||
80 --- 84
|
||||
80 --- 85
|
||||
23 <--x 86
|
||||
25 <--x 87
|
||||
27 <--x 88
|
||||
29 <--x 89
|
||||
```
|
||||
2744
rust/kcl-lib/tests/fillet-and-shell/ast.snap
Normal file
2744
rust/kcl-lib/tests/fillet-and-shell/ast.snap
Normal file
File diff suppressed because it is too large
Load Diff
77
rust/kcl-lib/tests/fillet-and-shell/input.kcl
Normal file
77
rust/kcl-lib/tests/fillet-and-shell/input.kcl
Normal file
@ -0,0 +1,77 @@
|
||||
rpizWidth = 30
|
||||
rpizLength = 65
|
||||
|
||||
caseThickness = 1
|
||||
|
||||
border = 4
|
||||
|
||||
screwHeight = 4
|
||||
|
||||
caseWidth = rpizWidth + border * 2
|
||||
caseLength = rpizLength + border * 2
|
||||
caseHeight = 8
|
||||
|
||||
widthBetweenScrews = 23
|
||||
lengthBetweenScrews = 29 * 2
|
||||
|
||||
miniHdmiDistance = 12.4
|
||||
microUsb1Distance = 41.4
|
||||
microUsb2Distance = 54
|
||||
|
||||
miniHdmiWidth = 11.2
|
||||
microUsbWidth = 7.4
|
||||
connectorPadding = 4
|
||||
|
||||
miniHdmiHole = startSketchAt([
|
||||
0,
|
||||
border + miniHdmiDistance - (miniHdmiWidth / 2)
|
||||
])
|
||||
|> line(endAbsolute = [
|
||||
0,
|
||||
border + miniHdmiDistance + miniHdmiWidth / 2
|
||||
])
|
||||
|> line(endAbsolute = [
|
||||
1,
|
||||
border + miniHdmiDistance + miniHdmiWidth / 2
|
||||
])
|
||||
|> line(endAbsolute = [
|
||||
1,
|
||||
border + miniHdmiDistance - (miniHdmiWidth / 2)
|
||||
])
|
||||
|> close(%)
|
||||
|
||||
case = startSketchOn('XY')
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line(endAbsolute = [caseWidth, 0], tag = $edge1)
|
||||
|> line(endAbsolute = [caseWidth, caseLength], tag = $edge2)
|
||||
|> line(endAbsolute = [0, caseLength], tag = $edge3)
|
||||
|> close(tag = $edge4)
|
||||
|> extrude(length = caseHeight)
|
||||
|> fillet(
|
||||
radius = 1,
|
||||
tags = [
|
||||
getNextAdjacentEdge(edge1),
|
||||
getNextAdjacentEdge(edge2),
|
||||
getNextAdjacentEdge(edge3),
|
||||
getNextAdjacentEdge(edge4)
|
||||
],
|
||||
)
|
||||
|
||||
fn m25Screw(x, y, height) {
|
||||
screw = startSketchOn("XY")
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> circle(center = [x, y], radius = 2.5)
|
||||
|> hole(circle(center = [x, y], radius = 1.25), %)
|
||||
|> extrude(length = height)
|
||||
return screw
|
||||
}
|
||||
|
||||
m25Screw(border + rpizWidth / 2 - (widthBetweenScrews / 2), 0 + border + rpizLength / 2 - (lengthBetweenScrews / 2), screwHeight)
|
||||
|
||||
m25Screw(border + rpizWidth / 2 - (widthBetweenScrews / 2), 0 + border + rpizLength / 2 + lengthBetweenScrews / 2, screwHeight)
|
||||
|
||||
m25Screw(border + rpizWidth / 2 + widthBetweenScrews / 2, 0 + border + rpizLength / 2 + lengthBetweenScrews / 2, screwHeight)
|
||||
|
||||
m25Screw(border + rpizWidth / 2 + widthBetweenScrews / 2, 0 + border + rpizLength / 2 - (lengthBetweenScrews / 2), screwHeight)
|
||||
|
||||
shell(case, faces = ['end'], thickness = caseThickness)
|
||||
701
rust/kcl-lib/tests/fillet-and-shell/ops.snap
Normal file
701
rust/kcl-lib/tests/fillet-and-shell/ops.snap
Normal file
@ -0,0 +1,701 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
description: Operations executed fillet-and-shell.kcl
|
||||
---
|
||||
[
|
||||
{
|
||||
"labeledArgs": {
|
||||
"data": {
|
||||
"value": {
|
||||
"type": "String",
|
||||
"value": "XY"
|
||||
},
|
||||
"sourceRange": [
|
||||
791,
|
||||
795,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "startSketchOn",
|
||||
"sourceRange": [
|
||||
777,
|
||||
796,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": null
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"length": {
|
||||
"value": {
|
||||
"type": "Number",
|
||||
"value": 8.0,
|
||||
"ty": {
|
||||
"type": "Default",
|
||||
"len": {
|
||||
"type": "Mm"
|
||||
},
|
||||
"angle": {
|
||||
"type": "Degrees"
|
||||
}
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1047,
|
||||
1057,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "extrude",
|
||||
"sourceRange": [
|
||||
1030,
|
||||
1058,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": {
|
||||
"value": {
|
||||
"type": "Sketch",
|
||||
"value": {
|
||||
"artifactId": "[uuid]"
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"radius": {
|
||||
"value": {
|
||||
"type": "Number",
|
||||
"value": 1.0,
|
||||
"ty": {
|
||||
"type": "Default",
|
||||
"len": {
|
||||
"type": "Mm"
|
||||
},
|
||||
"angle": {
|
||||
"type": "Degrees"
|
||||
}
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1088,
|
||||
1089,
|
||||
0
|
||||
]
|
||||
},
|
||||
"tags": {
|
||||
"value": {
|
||||
"type": "Array",
|
||||
"value": [
|
||||
{
|
||||
"type": "Uuid",
|
||||
"value": "[uuid]"
|
||||
},
|
||||
{
|
||||
"type": "Uuid",
|
||||
"value": "[uuid]"
|
||||
},
|
||||
{
|
||||
"type": "Uuid",
|
||||
"value": "[uuid]"
|
||||
},
|
||||
{
|
||||
"type": "Uuid",
|
||||
"value": "[uuid]"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sourceRange": [
|
||||
1105,
|
||||
1262,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "fillet",
|
||||
"sourceRange": [
|
||||
1064,
|
||||
1270,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": {
|
||||
"value": {
|
||||
"type": "Solid",
|
||||
"value": {
|
||||
"artifactId": "[uuid]"
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "UserDefinedFunctionCall",
|
||||
"name": "m25Screw",
|
||||
"functionSourceRange": [
|
||||
1283,
|
||||
1511,
|
||||
0
|
||||
],
|
||||
"unlabeledArg": null,
|
||||
"labeledArgs": {},
|
||||
"sourceRange": [
|
||||
1513,
|
||||
1642,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"data": {
|
||||
"value": {
|
||||
"type": "String",
|
||||
"value": "XY"
|
||||
},
|
||||
"sourceRange": [
|
||||
1324,
|
||||
1328,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "startSketchOn",
|
||||
"sourceRange": [
|
||||
1310,
|
||||
1329,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": null
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"holeSketch": {
|
||||
"value": {
|
||||
"type": "Sketch",
|
||||
"value": {
|
||||
"artifactId": "[uuid]"
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1420,
|
||||
1458,
|
||||
0
|
||||
]
|
||||
},
|
||||
"sketch": {
|
||||
"value": {
|
||||
"type": "Sketch",
|
||||
"value": {
|
||||
"artifactId": "[uuid]"
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1460,
|
||||
1461,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "hole",
|
||||
"sourceRange": [
|
||||
1415,
|
||||
1462,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": null
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"length": {
|
||||
"value": {
|
||||
"type": "Number",
|
||||
"value": 4.0,
|
||||
"ty": {
|
||||
"type": "Default",
|
||||
"len": {
|
||||
"type": "Mm"
|
||||
},
|
||||
"angle": {
|
||||
"type": "Degrees"
|
||||
}
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1487,
|
||||
1493,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "extrude",
|
||||
"sourceRange": [
|
||||
1470,
|
||||
1494,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": {
|
||||
"value": {
|
||||
"type": "Sketch",
|
||||
"value": {
|
||||
"artifactId": "[uuid]"
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "UserDefinedFunctionReturn"
|
||||
},
|
||||
{
|
||||
"type": "UserDefinedFunctionCall",
|
||||
"name": "m25Screw",
|
||||
"functionSourceRange": [
|
||||
1283,
|
||||
1511,
|
||||
0
|
||||
],
|
||||
"unlabeledArg": null,
|
||||
"labeledArgs": {},
|
||||
"sourceRange": [
|
||||
1644,
|
||||
1771,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"data": {
|
||||
"value": {
|
||||
"type": "String",
|
||||
"value": "XY"
|
||||
},
|
||||
"sourceRange": [
|
||||
1324,
|
||||
1328,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "startSketchOn",
|
||||
"sourceRange": [
|
||||
1310,
|
||||
1329,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": null
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"holeSketch": {
|
||||
"value": {
|
||||
"type": "Sketch",
|
||||
"value": {
|
||||
"artifactId": "[uuid]"
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1420,
|
||||
1458,
|
||||
0
|
||||
]
|
||||
},
|
||||
"sketch": {
|
||||
"value": {
|
||||
"type": "Sketch",
|
||||
"value": {
|
||||
"artifactId": "[uuid]"
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1460,
|
||||
1461,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "hole",
|
||||
"sourceRange": [
|
||||
1415,
|
||||
1462,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": null
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"length": {
|
||||
"value": {
|
||||
"type": "Number",
|
||||
"value": 4.0,
|
||||
"ty": {
|
||||
"type": "Default",
|
||||
"len": {
|
||||
"type": "Mm"
|
||||
},
|
||||
"angle": {
|
||||
"type": "Degrees"
|
||||
}
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1487,
|
||||
1493,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "extrude",
|
||||
"sourceRange": [
|
||||
1470,
|
||||
1494,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": {
|
||||
"value": {
|
||||
"type": "Sketch",
|
||||
"value": {
|
||||
"artifactId": "[uuid]"
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "UserDefinedFunctionReturn"
|
||||
},
|
||||
{
|
||||
"type": "UserDefinedFunctionCall",
|
||||
"name": "m25Screw",
|
||||
"functionSourceRange": [
|
||||
1283,
|
||||
1511,
|
||||
0
|
||||
],
|
||||
"unlabeledArg": null,
|
||||
"labeledArgs": {},
|
||||
"sourceRange": [
|
||||
1773,
|
||||
1898,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"data": {
|
||||
"value": {
|
||||
"type": "String",
|
||||
"value": "XY"
|
||||
},
|
||||
"sourceRange": [
|
||||
1324,
|
||||
1328,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "startSketchOn",
|
||||
"sourceRange": [
|
||||
1310,
|
||||
1329,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": null
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"holeSketch": {
|
||||
"value": {
|
||||
"type": "Sketch",
|
||||
"value": {
|
||||
"artifactId": "[uuid]"
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1420,
|
||||
1458,
|
||||
0
|
||||
]
|
||||
},
|
||||
"sketch": {
|
||||
"value": {
|
||||
"type": "Sketch",
|
||||
"value": {
|
||||
"artifactId": "[uuid]"
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1460,
|
||||
1461,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "hole",
|
||||
"sourceRange": [
|
||||
1415,
|
||||
1462,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": null
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"length": {
|
||||
"value": {
|
||||
"type": "Number",
|
||||
"value": 4.0,
|
||||
"ty": {
|
||||
"type": "Default",
|
||||
"len": {
|
||||
"type": "Mm"
|
||||
},
|
||||
"angle": {
|
||||
"type": "Degrees"
|
||||
}
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1487,
|
||||
1493,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "extrude",
|
||||
"sourceRange": [
|
||||
1470,
|
||||
1494,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": {
|
||||
"value": {
|
||||
"type": "Sketch",
|
||||
"value": {
|
||||
"artifactId": "[uuid]"
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "UserDefinedFunctionReturn"
|
||||
},
|
||||
{
|
||||
"type": "UserDefinedFunctionCall",
|
||||
"name": "m25Screw",
|
||||
"functionSourceRange": [
|
||||
1283,
|
||||
1511,
|
||||
0
|
||||
],
|
||||
"unlabeledArg": null,
|
||||
"labeledArgs": {},
|
||||
"sourceRange": [
|
||||
1900,
|
||||
2027,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"data": {
|
||||
"value": {
|
||||
"type": "String",
|
||||
"value": "XY"
|
||||
},
|
||||
"sourceRange": [
|
||||
1324,
|
||||
1328,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "startSketchOn",
|
||||
"sourceRange": [
|
||||
1310,
|
||||
1329,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": null
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"holeSketch": {
|
||||
"value": {
|
||||
"type": "Sketch",
|
||||
"value": {
|
||||
"artifactId": "[uuid]"
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1420,
|
||||
1458,
|
||||
0
|
||||
]
|
||||
},
|
||||
"sketch": {
|
||||
"value": {
|
||||
"type": "Sketch",
|
||||
"value": {
|
||||
"artifactId": "[uuid]"
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1460,
|
||||
1461,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "hole",
|
||||
"sourceRange": [
|
||||
1415,
|
||||
1462,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": null
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"length": {
|
||||
"value": {
|
||||
"type": "Number",
|
||||
"value": 4.0,
|
||||
"ty": {
|
||||
"type": "Default",
|
||||
"len": {
|
||||
"type": "Mm"
|
||||
},
|
||||
"angle": {
|
||||
"type": "Degrees"
|
||||
}
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1487,
|
||||
1493,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "extrude",
|
||||
"sourceRange": [
|
||||
1470,
|
||||
1494,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": {
|
||||
"value": {
|
||||
"type": "Sketch",
|
||||
"value": {
|
||||
"artifactId": "[uuid]"
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "UserDefinedFunctionReturn"
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"faces": {
|
||||
"value": {
|
||||
"type": "Array",
|
||||
"value": [
|
||||
{
|
||||
"type": "String",
|
||||
"value": "end"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sourceRange": [
|
||||
2049,
|
||||
2056,
|
||||
0
|
||||
]
|
||||
},
|
||||
"thickness": {
|
||||
"value": {
|
||||
"type": "Number",
|
||||
"value": 1.0,
|
||||
"ty": {
|
||||
"type": "Default",
|
||||
"len": {
|
||||
"type": "Mm"
|
||||
},
|
||||
"angle": {
|
||||
"type": "Degrees"
|
||||
}
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
2070,
|
||||
2083,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "shell",
|
||||
"sourceRange": [
|
||||
2029,
|
||||
2084,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": {
|
||||
"value": {
|
||||
"type": "Solid",
|
||||
"value": {
|
||||
"artifactId": "[uuid]"
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
2035,
|
||||
2039,
|
||||
0
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
1359
rust/kcl-lib/tests/fillet-and-shell/program_memory.snap
Normal file
1359
rust/kcl-lib/tests/fillet-and-shell/program_memory.snap
Normal file
File diff suppressed because it is too large
Load Diff
BIN
rust/kcl-lib/tests/fillet-and-shell/rendered_model.png
Normal file
BIN
rust/kcl-lib/tests/fillet-and-shell/rendered_model.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 87 KiB |
Reference in New Issue
Block a user