KCL: Angled line should use keyword args (#5803)

We continue migrating KCL stdlib functions to use keyword arguments. Next up is the `angledLine` family of functions (except `angledLineThatIntersects, which will be a quick follow-up).

Before vs. after:

`angledLine({angle = 90, length = 3}, %, $edge)`
  => `angledLine(angle = 90, length = 3, tag = $edge)`

`angledLineOfXLength({angle = 90, length = 3}, %, $edge)`
  => `angledLine(angle = 90, lengthX = 3, tag = $edge)`

`angledLineOfYLength({angle = 90, length = 3}, %, $edge)`
  => `angledLine(angle = 90, lengthY = 3, tag = $edge)`

`angledLineToX({angle = 90, length = 3}, %, $edge)`
  => `angledLine(angle = 90, endAbsoluteX = 3, tag = $edge)`

`angledLineToY({angle = 90, length = 3}, %, $edge)`
  => `angledLine(angle = 90, endAbsoluteY = 3, tag = $edge)`
This commit is contained in:
Adam Chalmers
2025-04-09 14:55:15 -05:00
committed by GitHub
parent b03ca30379
commit d275995dfe
288 changed files with 36142 additions and 40081 deletions

View File

@ -9,73 +9,73 @@ flowchart LR
7["Segment<br>[841, 888, 0]"]
8["Segment<br>[896, 944, 0]"]
9["Segment<br>[952, 1001, 0]"]
10["Segment<br>[1009, 1126, 0]"]
11["Segment<br>[1134, 1182, 0]"]
12["Segment<br>[1190, 1298, 0]"]
13["Segment<br>[1306, 1355, 0]"]
14["Segment<br>[1363, 1412, 0]"]
15["Segment<br>[1420, 1453, 0]"]
16["Segment<br>[1461, 1570, 0]"]
17["Segment<br>[1578, 1610, 0]"]
18["Segment<br>[1618, 1727, 0]"]
19["Segment<br>[1735, 1838, 0]"]
20["Segment<br>[1879, 1989, 0]"]
21["Segment<br>[1997, 2029, 0]"]
22["Segment<br>[2037, 2147, 0]"]
23["Segment<br>[2155, 2202, 0]"]
24["Segment<br>[2210, 2260, 0]"]
25["Segment<br>[2268, 2318, 0]"]
26["Segment<br>[2336, 2465, 0]"]
27["Segment<br>[2483, 2532, 0]"]
28["Segment<br>[2546, 2660, 0]"]
29["Segment<br>[2674, 2724, 0]"]
30["Segment<br>[2738, 2787, 0]"]
31["Segment<br>[2795, 2828, 0]"]
32["Segment<br>[2836, 2946, 0]"]
33["Segment<br>[2954, 2986, 0]"]
34["Segment<br>[2994, 3104, 0]"]
35["Segment<br>[3145, 3247, 0]"]
36["Segment<br>[3255, 3365, 0]"]
37["Segment<br>[3373, 3406, 0]"]
38["Segment<br>[3414, 3524, 0]"]
39["Segment<br>[3532, 3581, 0]"]
40["Segment<br>[3589, 3639, 0]"]
41["Segment<br>[3647, 3696, 0]"]
42["Segment<br>[3704, 3832, 0]"]
43["Segment<br>[3840, 3890, 0]"]
44["Segment<br>[3898, 4013, 0]"]
45["Segment<br>[4021, 4070, 0]"]
46["Segment<br>[4078, 4127, 0]"]
47["Segment<br>[4135, 4169, 0]"]
48["Segment<br>[4177, 4287, 0]"]
49["Segment<br>[4295, 4328, 0]"]
50["Segment<br>[4336, 4446, 0]"]
51["Segment<br>[4454, 4558, 0]"]
52["Segment<br>[4599, 4709, 0]"]
53["Segment<br>[4717, 4750, 0]"]
54["Segment<br>[4758, 4868, 0]"]
55["Segment<br>[4876, 4925, 0]"]
56["Segment<br>[4933, 4982, 0]"]
57["Segment<br>[4990, 5039, 0]"]
58["Segment<br>[5047, 5166, 0]"]
59["Segment<br>[5174, 5224, 0]"]
60["Segment<br>[5232, 5340, 0]"]
61["Segment<br>[5348, 5397, 0]"]
62["Segment<br>[5405, 5455, 0]"]
63["Segment<br>[5463, 5497, 0]"]
64["Segment<br>[5505, 5615, 0]"]
65["Segment<br>[5623, 5656, 0]"]
66["Segment<br>[5664, 5774, 0]"]
67["Segment<br>[5782, 5789, 0]"]
10["Segment<br>[1009, 1107, 0]"]
11["Segment<br>[1115, 1163, 0]"]
12["Segment<br>[1171, 1260, 0]"]
13["Segment<br>[1268, 1317, 0]"]
14["Segment<br>[1325, 1374, 0]"]
15["Segment<br>[1382, 1415, 0]"]
16["Segment<br>[1423, 1532, 0]"]
17["Segment<br>[1540, 1572, 0]"]
18["Segment<br>[1580, 1689, 0]"]
19["Segment<br>[1697, 1800, 0]"]
20["Segment<br>[1841, 1951, 0]"]
21["Segment<br>[1959, 1991, 0]"]
22["Segment<br>[1999, 2109, 0]"]
23["Segment<br>[2117, 2164, 0]"]
24["Segment<br>[2172, 2222, 0]"]
25["Segment<br>[2230, 2280, 0]"]
26["Segment<br>[2298, 2408, 0]"]
27["Segment<br>[2426, 2475, 0]"]
28["Segment<br>[2489, 2584, 0]"]
29["Segment<br>[2598, 2648, 0]"]
30["Segment<br>[2662, 2711, 0]"]
31["Segment<br>[2719, 2752, 0]"]
32["Segment<br>[2760, 2870, 0]"]
33["Segment<br>[2878, 2910, 0]"]
34["Segment<br>[2918, 3028, 0]"]
35["Segment<br>[3069, 3171, 0]"]
36["Segment<br>[3179, 3289, 0]"]
37["Segment<br>[3297, 3330, 0]"]
38["Segment<br>[3338, 3448, 0]"]
39["Segment<br>[3456, 3505, 0]"]
40["Segment<br>[3513, 3563, 0]"]
41["Segment<br>[3571, 3620, 0]"]
42["Segment<br>[3628, 3737, 0]"]
43["Segment<br>[3745, 3795, 0]"]
44["Segment<br>[3803, 3899, 0]"]
45["Segment<br>[3907, 3956, 0]"]
46["Segment<br>[3964, 4013, 0]"]
47["Segment<br>[4021, 4055, 0]"]
48["Segment<br>[4063, 4173, 0]"]
49["Segment<br>[4181, 4214, 0]"]
50["Segment<br>[4222, 4332, 0]"]
51["Segment<br>[4340, 4444, 0]"]
52["Segment<br>[4485, 4595, 0]"]
53["Segment<br>[4603, 4636, 0]"]
54["Segment<br>[4644, 4754, 0]"]
55["Segment<br>[4762, 4811, 0]"]
56["Segment<br>[4819, 4868, 0]"]
57["Segment<br>[4876, 4925, 0]"]
58["Segment<br>[4933, 5033, 0]"]
59["Segment<br>[5041, 5091, 0]"]
60["Segment<br>[5099, 5188, 0]"]
61["Segment<br>[5196, 5245, 0]"]
62["Segment<br>[5253, 5303, 0]"]
63["Segment<br>[5311, 5345, 0]"]
64["Segment<br>[5353, 5463, 0]"]
65["Segment<br>[5471, 5504, 0]"]
66["Segment<br>[5512, 5622, 0]"]
67["Segment<br>[5630, 5637, 0]"]
68[Solid2d]
end
subgraph path69 [Path]
69["Path<br>[5840, 6018, 0]"]
70["Segment<br>[5840, 6018, 0]"]
69["Path<br>[5688, 5866, 0]"]
70["Segment<br>[5688, 5866, 0]"]
71[Solid2d]
end
1["Plane<br>[323, 341, 0]"]
72["Sweep Extrusion<br>[6030, 6058, 0]"]
72["Sweep Extrusion<br>[5878, 5906, 0]"]
73[Wall]
74[Wall]
75[Wall]
@ -270,38 +270,38 @@ flowchart LR
264["SweepEdge Adjacent"]
265["SweepEdge Opposite"]
266["SweepEdge Adjacent"]
267["EdgeCut Fillet<br>[6066, 6771, 0]"]
268["EdgeCut Fillet<br>[6066, 6771, 0]"]
269["EdgeCut Fillet<br>[6066, 6771, 0]"]
270["EdgeCut Fillet<br>[6066, 6771, 0]"]
271["EdgeCut Fillet<br>[6066, 6771, 0]"]
272["EdgeCut Fillet<br>[6066, 6771, 0]"]
273["EdgeCut Fillet<br>[6066, 6771, 0]"]
274["EdgeCut Fillet<br>[6066, 6771, 0]"]
275["EdgeCut Fillet<br>[6066, 6771, 0]"]
276["EdgeCut Fillet<br>[6066, 6771, 0]"]
277["EdgeCut Fillet<br>[6066, 6771, 0]"]
278["EdgeCut Fillet<br>[6066, 6771, 0]"]
279["EdgeCut Fillet<br>[6066, 6771, 0]"]
280["EdgeCut Fillet<br>[6066, 6771, 0]"]
281["EdgeCut Fillet<br>[6066, 6771, 0]"]
282["EdgeCut Fillet<br>[6066, 6771, 0]"]
283["EdgeCut Fillet<br>[6779, 7483, 0]"]
284["EdgeCut Fillet<br>[6779, 7483, 0]"]
285["EdgeCut Fillet<br>[6779, 7483, 0]"]
286["EdgeCut Fillet<br>[6779, 7483, 0]"]
287["EdgeCut Fillet<br>[6779, 7483, 0]"]
288["EdgeCut Fillet<br>[6779, 7483, 0]"]
289["EdgeCut Fillet<br>[6779, 7483, 0]"]
290["EdgeCut Fillet<br>[6779, 7483, 0]"]
291["EdgeCut Fillet<br>[6779, 7483, 0]"]
292["EdgeCut Fillet<br>[6779, 7483, 0]"]
293["EdgeCut Fillet<br>[6779, 7483, 0]"]
294["EdgeCut Fillet<br>[6779, 7483, 0]"]
295["EdgeCut Fillet<br>[6779, 7483, 0]"]
296["EdgeCut Fillet<br>[6779, 7483, 0]"]
297["EdgeCut Fillet<br>[6779, 7483, 0]"]
298["EdgeCut Fillet<br>[6779, 7483, 0]"]
267["EdgeCut Fillet<br>[5914, 6619, 0]"]
268["EdgeCut Fillet<br>[5914, 6619, 0]"]
269["EdgeCut Fillet<br>[5914, 6619, 0]"]
270["EdgeCut Fillet<br>[5914, 6619, 0]"]
271["EdgeCut Fillet<br>[5914, 6619, 0]"]
272["EdgeCut Fillet<br>[5914, 6619, 0]"]
273["EdgeCut Fillet<br>[5914, 6619, 0]"]
274["EdgeCut Fillet<br>[5914, 6619, 0]"]
275["EdgeCut Fillet<br>[5914, 6619, 0]"]
276["EdgeCut Fillet<br>[5914, 6619, 0]"]
277["EdgeCut Fillet<br>[5914, 6619, 0]"]
278["EdgeCut Fillet<br>[5914, 6619, 0]"]
279["EdgeCut Fillet<br>[5914, 6619, 0]"]
280["EdgeCut Fillet<br>[5914, 6619, 0]"]
281["EdgeCut Fillet<br>[5914, 6619, 0]"]
282["EdgeCut Fillet<br>[5914, 6619, 0]"]
283["EdgeCut Fillet<br>[6627, 7331, 0]"]
284["EdgeCut Fillet<br>[6627, 7331, 0]"]
285["EdgeCut Fillet<br>[6627, 7331, 0]"]
286["EdgeCut Fillet<br>[6627, 7331, 0]"]
287["EdgeCut Fillet<br>[6627, 7331, 0]"]
288["EdgeCut Fillet<br>[6627, 7331, 0]"]
289["EdgeCut Fillet<br>[6627, 7331, 0]"]
290["EdgeCut Fillet<br>[6627, 7331, 0]"]
291["EdgeCut Fillet<br>[6627, 7331, 0]"]
292["EdgeCut Fillet<br>[6627, 7331, 0]"]
293["EdgeCut Fillet<br>[6627, 7331, 0]"]
294["EdgeCut Fillet<br>[6627, 7331, 0]"]
295["EdgeCut Fillet<br>[6627, 7331, 0]"]
296["EdgeCut Fillet<br>[6627, 7331, 0]"]
297["EdgeCut Fillet<br>[6627, 7331, 0]"]
298["EdgeCut Fillet<br>[6627, 7331, 0]"]
1 --- 2
1 --- 69
2 --- 3

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,7 @@ description: Operations executed 80-20-rail.kcl
"name": "rail8020",
"functionSourceRange": [
239,
7504,
7352,
0
],
"unlabeledArg": null,