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:
@ -2,113 +2,113 @@
|
||||
flowchart LR
|
||||
subgraph path2 [Path]
|
||||
2["Path<br>[287, 312, 0]"]
|
||||
3["Segment<br>[318, 366, 0]"]
|
||||
4["Segment<br>[372, 474, 0]"]
|
||||
5["Segment<br>[480, 600, 0]"]
|
||||
6["Segment<br>[606, 691, 0]"]
|
||||
7["Segment<br>[697, 704, 0]"]
|
||||
3["Segment<br>[318, 384, 0]"]
|
||||
4["Segment<br>[390, 489, 0]"]
|
||||
5["Segment<br>[495, 612, 0]"]
|
||||
6["Segment<br>[618, 703, 0]"]
|
||||
7["Segment<br>[709, 716, 0]"]
|
||||
8[Solid2d]
|
||||
end
|
||||
subgraph path29 [Path]
|
||||
29["Path<br>[1615, 1698, 0]"]
|
||||
30["Segment<br>[1615, 1698, 0]"]
|
||||
29["Path<br>[1627, 1710, 0]"]
|
||||
30["Segment<br>[1627, 1710, 0]"]
|
||||
31[Solid2d]
|
||||
end
|
||||
subgraph path32 [Path]
|
||||
32["Path<br>[1711, 1778, 0]"]
|
||||
33["Segment<br>[1711, 1778, 0]"]
|
||||
32["Path<br>[1723, 1790, 0]"]
|
||||
33["Segment<br>[1723, 1790, 0]"]
|
||||
34[Solid2d]
|
||||
end
|
||||
subgraph path42 [Path]
|
||||
42["Path<br>[1615, 1698, 0]"]
|
||||
43["Segment<br>[1615, 1698, 0]"]
|
||||
42["Path<br>[1627, 1710, 0]"]
|
||||
43["Segment<br>[1627, 1710, 0]"]
|
||||
44[Solid2d]
|
||||
end
|
||||
subgraph path45 [Path]
|
||||
45["Path<br>[1711, 1778, 0]"]
|
||||
46["Segment<br>[1711, 1778, 0]"]
|
||||
45["Path<br>[1723, 1790, 0]"]
|
||||
46["Segment<br>[1723, 1790, 0]"]
|
||||
47[Solid2d]
|
||||
end
|
||||
subgraph path55 [Path]
|
||||
55["Path<br>[1615, 1698, 0]"]
|
||||
56["Segment<br>[1615, 1698, 0]"]
|
||||
55["Path<br>[1627, 1710, 0]"]
|
||||
56["Segment<br>[1627, 1710, 0]"]
|
||||
57[Solid2d]
|
||||
end
|
||||
subgraph path58 [Path]
|
||||
58["Path<br>[1711, 1778, 0]"]
|
||||
59["Segment<br>[1711, 1778, 0]"]
|
||||
58["Path<br>[1723, 1790, 0]"]
|
||||
59["Segment<br>[1723, 1790, 0]"]
|
||||
60[Solid2d]
|
||||
end
|
||||
subgraph path68 [Path]
|
||||
68["Path<br>[1615, 1698, 0]"]
|
||||
69["Segment<br>[1615, 1698, 0]"]
|
||||
68["Path<br>[1627, 1710, 0]"]
|
||||
69["Segment<br>[1627, 1710, 0]"]
|
||||
70[Solid2d]
|
||||
end
|
||||
subgraph path71 [Path]
|
||||
71["Path<br>[1711, 1778, 0]"]
|
||||
72["Segment<br>[1711, 1778, 0]"]
|
||||
71["Path<br>[1723, 1790, 0]"]
|
||||
72["Segment<br>[1723, 1790, 0]"]
|
||||
73[Solid2d]
|
||||
end
|
||||
subgraph path81 [Path]
|
||||
81["Path<br>[2349, 2384, 0]"]
|
||||
82["Segment<br>[2390, 2438, 0]"]
|
||||
83["Segment<br>[2444, 2546, 0]"]
|
||||
84["Segment<br>[2552, 2672, 0]"]
|
||||
85["Segment<br>[2678, 2763, 0]"]
|
||||
86["Segment<br>[2769, 2776, 0]"]
|
||||
81["Path<br>[2361, 2396, 0]"]
|
||||
82["Segment<br>[2402, 2468, 0]"]
|
||||
83["Segment<br>[2474, 2573, 0]"]
|
||||
84["Segment<br>[2579, 2696, 0]"]
|
||||
85["Segment<br>[2702, 2787, 0]"]
|
||||
86["Segment<br>[2793, 2800, 0]"]
|
||||
87[Solid2d]
|
||||
end
|
||||
subgraph path88 [Path]
|
||||
88["Path<br>[2787, 2943, 0]"]
|
||||
89["Segment<br>[2787, 2943, 0]"]
|
||||
88["Path<br>[2811, 2967, 0]"]
|
||||
89["Segment<br>[2811, 2967, 0]"]
|
||||
90[Solid2d]
|
||||
end
|
||||
subgraph path91 [Path]
|
||||
91["Path<br>[2958, 3125, 0]"]
|
||||
92["Segment<br>[2958, 3125, 0]"]
|
||||
91["Path<br>[2982, 3149, 0]"]
|
||||
92["Segment<br>[2982, 3149, 0]"]
|
||||
93[Solid2d]
|
||||
end
|
||||
subgraph path94 [Path]
|
||||
94["Path<br>[3140, 3298, 0]"]
|
||||
95["Segment<br>[3140, 3298, 0]"]
|
||||
94["Path<br>[3164, 3322, 0]"]
|
||||
95["Segment<br>[3164, 3322, 0]"]
|
||||
96[Solid2d]
|
||||
end
|
||||
subgraph path97 [Path]
|
||||
97["Path<br>[3313, 3482, 0]"]
|
||||
98["Segment<br>[3313, 3482, 0]"]
|
||||
97["Path<br>[3337, 3506, 0]"]
|
||||
98["Segment<br>[3337, 3506, 0]"]
|
||||
99[Solid2d]
|
||||
end
|
||||
subgraph path119 [Path]
|
||||
119["Path<br>[3923, 4007, 0]"]
|
||||
120["Segment<br>[4013, 4083, 0]"]
|
||||
121["Segment<br>[4089, 4213, 0]"]
|
||||
122["Segment<br>[4219, 4339, 0]"]
|
||||
123["Segment<br>[4345, 4430, 0]"]
|
||||
124["Segment<br>[4436, 4443, 0]"]
|
||||
119["Path<br>[3947, 4031, 0]"]
|
||||
120["Segment<br>[4037, 4125, 0]"]
|
||||
121["Segment<br>[4131, 4252, 0]"]
|
||||
122["Segment<br>[4258, 4375, 0]"]
|
||||
123["Segment<br>[4381, 4466, 0]"]
|
||||
124["Segment<br>[4472, 4479, 0]"]
|
||||
125[Solid2d]
|
||||
end
|
||||
subgraph path126 [Path]
|
||||
126["Path<br>[4454, 4626, 0]"]
|
||||
127["Segment<br>[4454, 4626, 0]"]
|
||||
126["Path<br>[4490, 4662, 0]"]
|
||||
127["Segment<br>[4490, 4662, 0]"]
|
||||
128[Solid2d]
|
||||
end
|
||||
subgraph path129 [Path]
|
||||
129["Path<br>[4641, 4824, 0]"]
|
||||
130["Segment<br>[4641, 4824, 0]"]
|
||||
129["Path<br>[4677, 4860, 0]"]
|
||||
130["Segment<br>[4677, 4860, 0]"]
|
||||
131[Solid2d]
|
||||
end
|
||||
subgraph path132 [Path]
|
||||
132["Path<br>[4839, 5013, 0]"]
|
||||
133["Segment<br>[4839, 5013, 0]"]
|
||||
132["Path<br>[4875, 5049, 0]"]
|
||||
133["Segment<br>[4875, 5049, 0]"]
|
||||
134[Solid2d]
|
||||
end
|
||||
subgraph path135 [Path]
|
||||
135["Path<br>[5028, 5213, 0]"]
|
||||
136["Segment<br>[5028, 5213, 0]"]
|
||||
135["Path<br>[5064, 5249, 0]"]
|
||||
136["Segment<br>[5064, 5249, 0]"]
|
||||
137[Solid2d]
|
||||
end
|
||||
1["Plane<br>[264, 281, 0]"]
|
||||
9["Sweep Extrusion<br>[718, 753, 0]"]
|
||||
9["Sweep Extrusion<br>[730, 765, 0]"]
|
||||
10[Wall]
|
||||
11[Wall]
|
||||
12[Wall]
|
||||
@ -123,40 +123,40 @@ flowchart LR
|
||||
21["SweepEdge Adjacent"]
|
||||
22["SweepEdge Opposite"]
|
||||
23["SweepEdge Adjacent"]
|
||||
24["EdgeCut Fillet<br>[759, 1041, 0]"]
|
||||
25["EdgeCut Fillet<br>[759, 1041, 0]"]
|
||||
26["EdgeCut Fillet<br>[759, 1041, 0]"]
|
||||
27["EdgeCut Fillet<br>[759, 1041, 0]"]
|
||||
28["Plane<br>[1584, 1607, 0]"]
|
||||
35["Sweep Extrusion<br>[1798, 1849, 0]"]
|
||||
24["EdgeCut Fillet<br>[771, 1053, 0]"]
|
||||
25["EdgeCut Fillet<br>[771, 1053, 0]"]
|
||||
26["EdgeCut Fillet<br>[771, 1053, 0]"]
|
||||
27["EdgeCut Fillet<br>[771, 1053, 0]"]
|
||||
28["Plane<br>[1596, 1619, 0]"]
|
||||
35["Sweep Extrusion<br>[1810, 1861, 0]"]
|
||||
36[Wall]
|
||||
37["Cap Start"]
|
||||
38["Cap End"]
|
||||
39["SweepEdge Opposite"]
|
||||
40["SweepEdge Adjacent"]
|
||||
41["Plane<br>[1584, 1607, 0]"]
|
||||
48["Sweep Extrusion<br>[1798, 1849, 0]"]
|
||||
41["Plane<br>[1596, 1619, 0]"]
|
||||
48["Sweep Extrusion<br>[1810, 1861, 0]"]
|
||||
49[Wall]
|
||||
50["Cap Start"]
|
||||
51["Cap End"]
|
||||
52["SweepEdge Opposite"]
|
||||
53["SweepEdge Adjacent"]
|
||||
54["Plane<br>[1584, 1607, 0]"]
|
||||
61["Sweep Extrusion<br>[1798, 1849, 0]"]
|
||||
54["Plane<br>[1596, 1619, 0]"]
|
||||
61["Sweep Extrusion<br>[1810, 1861, 0]"]
|
||||
62[Wall]
|
||||
63["Cap Start"]
|
||||
64["Cap End"]
|
||||
65["SweepEdge Opposite"]
|
||||
66["SweepEdge Adjacent"]
|
||||
67["Plane<br>[1584, 1607, 0]"]
|
||||
74["Sweep Extrusion<br>[1798, 1849, 0]"]
|
||||
67["Plane<br>[1596, 1619, 0]"]
|
||||
74["Sweep Extrusion<br>[1810, 1861, 0]"]
|
||||
75[Wall]
|
||||
76["Cap Start"]
|
||||
77["Cap End"]
|
||||
78["SweepEdge Opposite"]
|
||||
79["SweepEdge Adjacent"]
|
||||
80["Plane<br>[2326, 2343, 0]"]
|
||||
100["Sweep Extrusion<br>[3500, 3542, 0]"]
|
||||
80["Plane<br>[2338, 2355, 0]"]
|
||||
100["Sweep Extrusion<br>[3524, 3566, 0]"]
|
||||
101[Wall]
|
||||
102[Wall]
|
||||
103[Wall]
|
||||
@ -171,11 +171,11 @@ flowchart LR
|
||||
112["SweepEdge Adjacent"]
|
||||
113["SweepEdge Opposite"]
|
||||
114["SweepEdge Adjacent"]
|
||||
115["EdgeCut Fillet<br>[3548, 3830, 0]"]
|
||||
116["EdgeCut Fillet<br>[3548, 3830, 0]"]
|
||||
117["EdgeCut Fillet<br>[3548, 3830, 0]"]
|
||||
118["EdgeCut Fillet<br>[3548, 3830, 0]"]
|
||||
138["Sweep Extrusion<br>[5231, 5273, 0]"]
|
||||
115["EdgeCut Fillet<br>[3572, 3854, 0]"]
|
||||
116["EdgeCut Fillet<br>[3572, 3854, 0]"]
|
||||
117["EdgeCut Fillet<br>[3572, 3854, 0]"]
|
||||
118["EdgeCut Fillet<br>[3572, 3854, 0]"]
|
||||
138["Sweep Extrusion<br>[5267, 5309, 0]"]
|
||||
139[Wall]
|
||||
140[Wall]
|
||||
141[Wall]
|
||||
@ -190,11 +190,11 @@ flowchart LR
|
||||
150["SweepEdge Adjacent"]
|
||||
151["SweepEdge Opposite"]
|
||||
152["SweepEdge Adjacent"]
|
||||
153["EdgeCut Fillet<br>[5279, 5561, 0]"]
|
||||
154["EdgeCut Fillet<br>[5279, 5561, 0]"]
|
||||
155["EdgeCut Fillet<br>[5279, 5561, 0]"]
|
||||
156["EdgeCut Fillet<br>[5279, 5561, 0]"]
|
||||
157["StartSketchOnFace<br>[3885, 3917, 0]"]
|
||||
153["EdgeCut Fillet<br>[5315, 5597, 0]"]
|
||||
154["EdgeCut Fillet<br>[5315, 5597, 0]"]
|
||||
155["EdgeCut Fillet<br>[5315, 5597, 0]"]
|
||||
156["EdgeCut Fillet<br>[5315, 5597, 0]"]
|
||||
157["StartSketchOnFace<br>[3909, 3941, 0]"]
|
||||
1 --- 2
|
||||
2 --- 3
|
||||
2 --- 4
|
||||
|
||||
Reference in New Issue
Block a user