KCL: Convert x/y lines to use keyword arguments (#5615)

Previously, `xLine`, `xLineTo`, `yLine` and `yLineTo` used positional arguments. Now:

- `xLineTo` and `yLineTo` have been removed
- `xLine` and `yLine` both use keyword arguments:
  - `length`, optional (i.e. a relative distance along the X or Y axis)
  - `endAbsolute` optional (i.e. an absolute point along the X or Y axis)
  - `tag` optional
- Exactly one of `length` or `endAbsolute` must be given. Not both, not neither.

For example:

```
// Old way
|> xLine(6.04, %)
|> yLineTo(20, %, $base)

// New way
|> xLine(length = 6.04)
|> yLine(endAbsolute = 20, tag = $base)
```

This also improves some of the general-purpose keyword arguments code in modeling app's TS codebase.
This commit is contained in:
Adam Chalmers
2025-03-07 22:07:16 -06:00
committed by GitHub
parent bc3a0e3896
commit aea82e004a
289 changed files with 65906 additions and 67955 deletions

View File

@ -134,7 +134,7 @@ description: Artifact commands poop_chute.kcl
"cmdId": "[uuid]",
"range": [
258,
286,
292,
0
],
"command": {
@ -154,8 +154,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
292,
355,
298,
361,
0
],
"command": {
@ -175,8 +175,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
361,
379,
367,
394,
0
],
"command": {
@ -196,8 +196,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
385,
410,
400,
431,
0
],
"command": {
@ -217,8 +217,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
416,
442,
437,
472,
0
],
"command": {
@ -238,8 +238,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
448,
547,
478,
577,
0
],
"command": {
@ -259,8 +259,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
553,
578,
583,
614,
0
],
"command": {
@ -280,8 +280,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
584,
662,
620,
698,
0
],
"command": {
@ -301,8 +301,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
668,
686,
704,
731,
0
],
"command": {
@ -322,29 +322,29 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
692,
705,
0
],
"command": {
"type": "extend_path",
"path": "[uuid]",
"segment": {
"type": "line",
"end": {
"x": 0.0,
"y": 5.5,
"z": 0.0
},
"relative": false
}
}
},
{
"cmdId": "[uuid]",
"range": [
711,
737,
759,
0
],
"command": {
"type": "extend_path",
"path": "[uuid]",
"segment": {
"type": "line",
"end": {
"x": 0.0,
"y": 5.5,
"z": 0.0
},
"relative": false
}
}
},
{
"cmdId": "[uuid]",
"range": [
765,
800,
0
],
"command": {
@ -364,8 +364,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
743,
789,
806,
852,
0
],
"command": {
@ -385,8 +385,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
795,
803,
858,
866,
0
],
"command": {
@ -397,8 +397,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
795,
803,
858,
866,
0
],
"command": {
@ -408,8 +408,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -436,8 +436,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -448,8 +448,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -461,8 +461,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -475,8 +475,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -489,8 +489,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -503,8 +503,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -517,8 +517,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -531,8 +531,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -545,8 +545,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -559,8 +559,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -573,8 +573,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -587,8 +587,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -601,8 +601,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -615,8 +615,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -629,8 +629,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -643,8 +643,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -657,8 +657,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -671,8 +671,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -685,8 +685,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -699,8 +699,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -713,8 +713,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -727,8 +727,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -741,8 +741,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -755,8 +755,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -769,8 +769,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -783,8 +783,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -797,8 +797,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -811,8 +811,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
814,
952,
877,
1015,
0
],
"command": {
@ -825,8 +825,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
966,
986,
1029,
1049,
0
],
"command": {
@ -854,8 +854,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
992,
1036,
1055,
1099,
0
],
"command": {
@ -874,8 +874,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
992,
1036,
1055,
1099,
0
],
"command": {
@ -885,8 +885,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
992,
1036,
1055,
1099,
0
],
"command": {
@ -902,8 +902,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1042,
1070,
1105,
1139,
0
],
"command": {
@ -923,8 +923,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1076,
1139,
1145,
1208,
0
],
"command": {
@ -944,8 +944,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1145,
1163,
1214,
1241,
0
],
"command": {
@ -965,8 +965,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1169,
1194,
1247,
1278,
0
],
"command": {
@ -986,8 +986,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1200,
1226,
1284,
1319,
0
],
"command": {
@ -1007,8 +1007,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1232,
1331,
1325,
1424,
0
],
"command": {
@ -1028,8 +1028,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1337,
1362,
1430,
1461,
0
],
"command": {
@ -1049,8 +1049,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1368,
1446,
1467,
1545,
0
],
"command": {
@ -1070,8 +1070,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1452,
1470,
1551,
1578,
0
],
"command": {
@ -1091,8 +1091,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1476,
1489,
1584,
1606,
0
],
"command": {
@ -1112,8 +1112,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1495,
1521,
1612,
1647,
0
],
"command": {
@ -1133,8 +1133,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1527,
1573,
1653,
1699,
0
],
"command": {
@ -1154,8 +1154,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1579,
1587,
1705,
1713,
0
],
"command": {
@ -1166,8 +1166,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1579,
1587,
1705,
1713,
0
],
"command": {
@ -1177,8 +1177,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1197,8 +1197,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1211,8 +1211,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1222,8 +1222,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1234,8 +1234,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1247,8 +1247,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1261,8 +1261,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1275,8 +1275,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1289,8 +1289,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1303,8 +1303,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1317,8 +1317,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1331,8 +1331,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1345,8 +1345,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1359,8 +1359,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1373,8 +1373,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1387,8 +1387,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1401,8 +1401,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1415,8 +1415,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1429,8 +1429,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1443,8 +1443,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1457,8 +1457,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1471,8 +1471,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1485,8 +1485,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1499,8 +1499,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1513,8 +1513,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1527,8 +1527,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1541,8 +1541,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1555,8 +1555,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1569,8 +1569,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1583,8 +1583,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {
@ -1597,8 +1597,8 @@ description: Artifact commands poop_chute.kcl
{
"cmdId": "[uuid]",
"range": [
1593,
1631,
1719,
1757,
0
],
"command": {

View File

@ -1,5 +1,5 @@
---
source: kcl/src/simulation_tests.rs
source: kcl-lib/src/simulation_tests.rs
description: Artifact graph flowchart poop_chute.kcl
extension: md
snapshot_kind: binary

View File

@ -2,40 +2,40 @@
flowchart LR
subgraph path2 [Path]
2["Path<br>[208, 252, 0]"]
3["Segment<br>[258, 286, 0]"]
4["Segment<br>[292, 355, 0]"]
5["Segment<br>[361, 379, 0]"]
6["Segment<br>[385, 410, 0]"]
7["Segment<br>[416, 442, 0]"]
8["Segment<br>[448, 547, 0]"]
9["Segment<br>[553, 578, 0]"]
10["Segment<br>[584, 662, 0]"]
11["Segment<br>[668, 686, 0]"]
12["Segment<br>[692, 705, 0]"]
13["Segment<br>[711, 737, 0]"]
14["Segment<br>[743, 789, 0]"]
15["Segment<br>[795, 803, 0]"]
3["Segment<br>[258, 292, 0]"]
4["Segment<br>[298, 361, 0]"]
5["Segment<br>[367, 394, 0]"]
6["Segment<br>[400, 431, 0]"]
7["Segment<br>[437, 472, 0]"]
8["Segment<br>[478, 577, 0]"]
9["Segment<br>[583, 614, 0]"]
10["Segment<br>[620, 698, 0]"]
11["Segment<br>[704, 731, 0]"]
12["Segment<br>[737, 759, 0]"]
13["Segment<br>[765, 800, 0]"]
14["Segment<br>[806, 852, 0]"]
15["Segment<br>[858, 866, 0]"]
16[Solid2d]
end
subgraph path60 [Path]
60["Path<br>[992, 1036, 0]"]
61["Segment<br>[1042, 1070, 0]"]
62["Segment<br>[1076, 1139, 0]"]
63["Segment<br>[1145, 1163, 0]"]
64["Segment<br>[1169, 1194, 0]"]
65["Segment<br>[1200, 1226, 0]"]
66["Segment<br>[1232, 1331, 0]"]
67["Segment<br>[1337, 1362, 0]"]
68["Segment<br>[1368, 1446, 0]"]
69["Segment<br>[1452, 1470, 0]"]
70["Segment<br>[1476, 1489, 0]"]
71["Segment<br>[1495, 1521, 0]"]
72["Segment<br>[1527, 1573, 0]"]
73["Segment<br>[1579, 1587, 0]"]
60["Path<br>[1055, 1099, 0]"]
61["Segment<br>[1105, 1139, 0]"]
62["Segment<br>[1145, 1208, 0]"]
63["Segment<br>[1214, 1241, 0]"]
64["Segment<br>[1247, 1278, 0]"]
65["Segment<br>[1284, 1319, 0]"]
66["Segment<br>[1325, 1424, 0]"]
67["Segment<br>[1430, 1461, 0]"]
68["Segment<br>[1467, 1545, 0]"]
69["Segment<br>[1551, 1578, 0]"]
70["Segment<br>[1584, 1606, 0]"]
71["Segment<br>[1612, 1647, 0]"]
72["Segment<br>[1653, 1699, 0]"]
73["Segment<br>[1705, 1713, 0]"]
74[Solid2d]
end
1["Plane<br>[182, 202, 0]"]
17["Sweep Revolve<br>[814, 952, 0]"]
17["Sweep Revolve<br>[877, 1015, 0]"]
18[Wall]
19[Wall]
20[Wall]
@ -77,8 +77,8 @@ flowchart LR
56["SweepEdge Adjacent"]
57["SweepEdge Opposite"]
58["SweepEdge Adjacent"]
59["Plane<br>[966, 986, 0]"]
75["Sweep Extrusion<br>[1593, 1631, 0]"]
59["Plane<br>[1029, 1049, 0]"]
75["Sweep Extrusion<br>[1719, 1757, 0]"]
76[Wall]
77[Wall]
78[Wall]

File diff suppressed because it is too large Load Diff

View File

@ -11,23 +11,23 @@ Fy = 0.5
sketch001 = startSketchOn('-YZ')
|> startProfileAt([back_walls_width / 2, 0], %)
|> xLine(wall_thickness / 2, %)
|> xLine(length = wall_thickness / 2)
|> angledLineToX({ angle = 45, to = back_walls_width }, %, $seg01)
|> yLineTo(height, %)
|> xLine(-wall_thickness, %)
|> yLineTo(segEndY(seg01), %)
|> yLine(endAbsolute = height)
|> xLine(length = -wall_thickness)
|> yLine(endAbsolute = segEndY(seg01))
|> angledLineToX({
angle = 45,
to = back_walls_width / 2 + wall_thickness / 2
}, %)
|> xLine(-wall_thickness, %)
|> xLine(length = -wall_thickness)
|> angledLineToX({
angle = 180 - 45,
to = wall_thickness
}, %)
|> yLineTo(height, %)
|> xLineTo(0, %)
|> yLineTo(segEndY(seg01), %)
|> yLine(endAbsolute = height)
|> xLine(endAbsolute = 0)
|> yLine(endAbsolute = segEndY(seg01))
|> angledLineToY({ angle = 180 - 45, to = 0 }, %)
|> close(%)
part001 = revolve({
@ -42,23 +42,23 @@ part001 = revolve({
sketch002 = startSketchOn('-YZ')
|> startProfileAt([back_walls_width / 2, 0], %)
|> xLine(wall_thickness / 2, %)
|> xLine(length = wall_thickness / 2)
|> angledLineToX({ angle = 45, to = back_walls_width }, %, $seg02)
|> yLineTo(height, %)
|> xLine(-wall_thickness, %)
|> yLineTo(segEndY(seg01), %)
|> yLine(endAbsolute = height)
|> xLine(length = -wall_thickness)
|> yLine(endAbsolute = segEndY(seg01))
|> angledLineToX({
angle = 45,
to = back_walls_width / 2 + wall_thickness / 2
}, %)
|> xLine(-wall_thickness, %)
|> xLine(length = -wall_thickness)
|> angledLineToX({
angle = 180 - 45,
to = wall_thickness
}, %)
|> yLineTo(height, %)
|> xLineTo(0, %)
|> yLineTo(segEndY(seg02), %)
|> yLine(endAbsolute = height)
|> xLine(endAbsolute = 0)
|> yLine(endAbsolute = segEndY(seg02))
|> angledLineToY({ angle = 180 - 45, to = 0 }, %)
|> close(%)
|> extrude(length = back_length - height)

View File

@ -1,5 +1,5 @@
---
source: kcl/src/simulation_tests.rs
source: kcl-lib/src/simulation_tests.rs
description: Operations executed poop_chute.kcl
---
[
@ -120,8 +120,8 @@ description: Operations executed poop_chute.kcl
}
},
"sourceRange": [
822,
940,
885,
1003,
0
]
},
@ -133,16 +133,16 @@ description: Operations executed poop_chute.kcl
}
},
"sourceRange": [
942,
951,
1005,
1014,
0
]
}
},
"name": "revolve",
"sourceRange": [
814,
952,
877,
1015,
0
],
"type": "StdLibCall",
@ -156,16 +156,16 @@ description: Operations executed poop_chute.kcl
"value": "-YZ"
},
"sourceRange": [
980,
985,
1043,
1048,
0
]
}
},
"name": "startSketchOn",
"sourceRange": [
966,
986,
1029,
1049,
0
],
"type": "StdLibCall",
@ -188,16 +188,16 @@ description: Operations executed poop_chute.kcl
}
},
"sourceRange": [
1610,
1630,
1736,
1756,
0
]
}
},
"name": "extrude",
"sourceRange": [
1593,
1631,
1719,
1757,
0
],
"type": "StdLibCall",

File diff suppressed because it is too large Load Diff