Merge remote-tracking branch 'origin/main' into jess/cleaned-imports

This commit is contained in:
Paul Tagliamonte
2025-04-15 10:58:15 -04:00
159 changed files with 9762 additions and 1504 deletions

View File

@ -318,40 +318,40 @@ flowchart LR
892["Segment<br>[5591, 5619, 0]"]
893["Segment<br>[5627, 5661, 0]"]
894["Segment<br>[5669, 5699, 0]"]
895["Segment<br>[5707, 5816, 0]"]
896["Segment<br>[5824, 5831, 0]"]
895["Segment<br>[5707, 5775, 0]"]
896["Segment<br>[5783, 5790, 0]"]
897[Solid2d]
end
subgraph path950 [Path]
950["Path<br>[6031, 6129, 0]"]
951["Segment<br>[6137, 6256, 0]"]
952["Segment<br>[6264, 6311, 0]"]
953["Segment<br>[6319, 6440, 0]"]
954["Segment<br>[6448, 6455, 0]"]
950["Path<br>[5990, 6088, 0]"]
951["Segment<br>[6096, 6215, 0]"]
952["Segment<br>[6223, 6270, 0]"]
953["Segment<br>[6278, 6399, 0]"]
954["Segment<br>[6407, 6414, 0]"]
955[Solid2d]
end
subgraph path972 [Path]
972["Path<br>[6563, 6660, 0]"]
973["Segment<br>[6668, 6787, 0]"]
974["Segment<br>[6795, 6843, 0]"]
975["Segment<br>[6851, 6972, 0]"]
976["Segment<br>[6980, 6987, 0]"]
972["Path<br>[6522, 6619, 0]"]
973["Segment<br>[6627, 6746, 0]"]
974["Segment<br>[6754, 6802, 0]"]
975["Segment<br>[6810, 6931, 0]"]
976["Segment<br>[6939, 6946, 0]"]
977[Solid2d]
end
subgraph path994 [Path]
994["Path<br>[6031, 6129, 0]"]
995["Segment<br>[6137, 6256, 0]"]
996["Segment<br>[6264, 6311, 0]"]
997["Segment<br>[6319, 6440, 0]"]
998["Segment<br>[6448, 6455, 0]"]
994["Path<br>[5990, 6088, 0]"]
995["Segment<br>[6096, 6215, 0]"]
996["Segment<br>[6223, 6270, 0]"]
997["Segment<br>[6278, 6399, 0]"]
998["Segment<br>[6407, 6414, 0]"]
999[Solid2d]
end
subgraph path1016 [Path]
1016["Path<br>[6563, 6660, 0]"]
1017["Segment<br>[6668, 6787, 0]"]
1018["Segment<br>[6795, 6843, 0]"]
1019["Segment<br>[6851, 6972, 0]"]
1020["Segment<br>[6980, 6987, 0]"]
1016["Path<br>[6522, 6619, 0]"]
1017["Segment<br>[6627, 6746, 0]"]
1018["Segment<br>[6754, 6802, 0]"]
1019["Segment<br>[6810, 6931, 0]"]
1020["Segment<br>[6939, 6946, 0]"]
1021[Solid2d]
end
1["Plane<br>[532, 549, 0]"]
@ -983,7 +983,7 @@ flowchart LR
877["SweepEdge Opposite"]
878["SweepEdge Adjacent"]
879["Plane<br>[4924, 4947, 0]"]
898["Sweep Extrusion<br>[5839, 5863, 0]"]
898["Sweep Extrusion<br>[5798, 5822, 0]"]
899[Wall]
900[Wall]
901[Wall]
@ -1034,8 +1034,8 @@ flowchart LR
946["SweepEdge Adjacent"]
947["SweepEdge Opposite"]
948["SweepEdge Adjacent"]
949["Plane<br>[6000, 6023, 0]"]
956["Sweep Extrusion<br>[6463, 6487, 0]"]
949["Plane<br>[5959, 5982, 0]"]
956["Sweep Extrusion<br>[6422, 6446, 0]"]
957[Wall]
958[Wall]
959[Wall]
@ -1050,8 +1050,8 @@ flowchart LR
968["SweepEdge Adjacent"]
969["SweepEdge Opposite"]
970["SweepEdge Adjacent"]
971["Plane<br>[6532, 6555, 0]"]
978["Sweep Extrusion<br>[6995, 7019, 0]"]
971["Plane<br>[6491, 6514, 0]"]
978["Sweep Extrusion<br>[6954, 6978, 0]"]
979[Wall]
980[Wall]
981[Wall]
@ -1066,8 +1066,8 @@ flowchart LR
990["SweepEdge Adjacent"]
991["SweepEdge Opposite"]
992["SweepEdge Adjacent"]
993["Plane<br>[6000, 6023, 0]"]
1000["Sweep Extrusion<br>[6463, 6487, 0]"]
993["Plane<br>[5959, 5982, 0]"]
1000["Sweep Extrusion<br>[6422, 6446, 0]"]
1001[Wall]
1002[Wall]
1003[Wall]
@ -1082,8 +1082,8 @@ flowchart LR
1012["SweepEdge Adjacent"]
1013["SweepEdge Opposite"]
1014["SweepEdge Adjacent"]
1015["Plane<br>[6532, 6555, 0]"]
1022["Sweep Extrusion<br>[6995, 7019, 0]"]
1015["Plane<br>[6491, 6514, 0]"]
1022["Sweep Extrusion<br>[6954, 6978, 0]"]
1023[Wall]
1024[Wall]
1025[Wall]

View File

@ -9548,99 +9548,74 @@ description: Result of parsing keyboard.kcl
{
"arguments": [
{
"commentStart": 0,
"end": 0,
"properties": [
{
"commentStart": 0,
"end": 0,
"key": {
"commentStart": 0,
"end": 0,
"name": "angle",
"start": 0,
"type": "Identifier"
},
"start": 0,
"type": "ObjectProperty",
"value": {
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"commentStart": 0,
"end": 0,
"key": {
"commentStart": 0,
"end": 0,
"name": "intersectTag",
"start": 0,
"type": "Identifier"
},
"start": 0,
"type": "ObjectProperty",
"value": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "seg2",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
}
},
{
"commentStart": 0,
"end": 0,
"key": {
"commentStart": 0,
"end": 0,
"name": "offset",
"start": 0,
"type": "Identifier"
},
"start": 0,
"type": "ObjectProperty",
"value": {
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "angle",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
],
"start": 0,
"type": "ObjectExpression",
"type": "ObjectExpression"
}
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "intersectTag",
"start": 0,
"type": "Identifier"
},
"arg": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "seg2",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
}
},
{
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "offset",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
}
],
"callee": {
@ -9661,8 +9636,9 @@ description: Result of parsing keyboard.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [],

View File

@ -7202,7 +7202,7 @@ description: Operations executed keyboard.kcl
"name": "z",
"functionSourceRange": [
4893,
5913,
5872,
0
],
"unlabeledArg": null,
@ -7438,8 +7438,8 @@ description: Operations executed keyboard.kcl
"type": "FunctionCall",
"name": "o",
"functionSourceRange": [
5960,
7069,
5919,
7028,
0
],
"unlabeledArg": null,
@ -7894,8 +7894,8 @@ description: Operations executed keyboard.kcl
"type": "FunctionCall",
"name": "o",
"functionSourceRange": [
5960,
7069,
5919,
7028,
0
],
"unlabeledArg": null,

View File

@ -75,45 +75,57 @@ flowchart LR
152["Segment<br>[2162, 2169, 6]"]
153[Solid2d]
end
subgraph path168 [Path]
168["Path<br>[2312, 2349, 6]"]
169["Segment<br>[2355, 2386, 6]"]
170["Segment<br>[2392, 2425, 6]"]
171["Segment<br>[2431, 2463, 6]"]
172["Segment<br>[2469, 2476, 6]"]
subgraph path156 [Path]
156["Path<br>[123, 210, 12]"]
157["Segment<br>[218, 247, 12]"]
158["Segment<br>[255, 283, 12]"]
159["Segment<br>[291, 369, 12]"]
160["Segment<br>[377, 424, 12]"]
161["Segment<br>[432, 460, 12]"]
162["Segment<br>[468, 497, 12]"]
163["Segment<br>[505, 534, 12]"]
164["Segment<br>[542, 608, 12]"]
165["Segment<br>[616, 644, 12]"]
166["Segment<br>[652, 681, 12]"]
167["Segment<br>[689, 751, 12]"]
168["Segment<br>[759, 787, 12]"]
169["Segment<br>[795, 829, 12]"]
170["Segment<br>[837, 867, 12]"]
171["Segment<br>[875, 943, 12]"]
172["Segment<br>[951, 958, 12]"]
173[Solid2d]
end
subgraph path189 [Path]
189["Path<br>[1441, 1600, 7]"]
190["Segment<br>[1606, 1682, 7]"]
191["Segment<br>[1688, 1849, 7]"]
192["Segment<br>[1855, 1931, 7]"]
193["Segment<br>[1937, 2101, 7]"]
194["Segment<br>[2107, 2184, 7]"]
195["Segment<br>[2190, 2353, 7]"]
196["Segment<br>[2359, 2435, 7]"]
197["Segment<br>[2441, 2448, 7]"]
198[Solid2d]
subgraph path175 [Path]
175["Path<br>[1092, 1190, 12]"]
176["Segment<br>[1198, 1317, 12]"]
177["Segment<br>[1325, 1372, 12]"]
178["Segment<br>[1380, 1501, 12]"]
179["Segment<br>[1509, 1516, 12]"]
180[Solid2d]
end
subgraph path200 [Path]
200["Path<br>[123, 210, 8]"]
201["Segment<br>[218, 247, 8]"]
202["Segment<br>[255, 283, 8]"]
203["Segment<br>[291, 369, 8]"]
204["Segment<br>[377, 424, 8]"]
205["Segment<br>[432, 460, 8]"]
206["Segment<br>[468, 497, 8]"]
207["Segment<br>[505, 534, 8]"]
208["Segment<br>[542, 608, 8]"]
209["Segment<br>[616, 644, 8]"]
210["Segment<br>[652, 681, 8]"]
211["Segment<br>[689, 751, 8]"]
212["Segment<br>[759, 787, 8]"]
213["Segment<br>[795, 829, 8]"]
214["Segment<br>[837, 867, 8]"]
215["Segment<br>[875, 984, 8]"]
216["Segment<br>[992, 999, 8]"]
217[Solid2d]
subgraph path182 [Path]
182["Path<br>[1613, 1710, 12]"]
183["Segment<br>[1718, 1837, 12]"]
184["Segment<br>[1845, 1893, 12]"]
185["Segment<br>[1901, 2022, 12]"]
186["Segment<br>[2030, 2037, 12]"]
187[Solid2d]
end
subgraph path189 [Path]
189["Path<br>[1092, 1190, 12]"]
190["Segment<br>[1198, 1317, 12]"]
191["Segment<br>[1325, 1372, 12]"]
192["Segment<br>[1380, 1501, 12]"]
193["Segment<br>[1509, 1516, 12]"]
194[Solid2d]
end
subgraph path196 [Path]
196["Path<br>[1613, 1710, 12]"]
197["Segment<br>[1718, 1837, 12]"]
198["Segment<br>[1845, 1893, 12]"]
199["Segment<br>[1901, 2022, 12]"]
200["Segment<br>[2030, 2037, 12]"]
201[Solid2d]
end
subgraph path219 [Path]
219["Path<br>[1133, 1231, 8]"]

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,156 @@
---
source: kcl-lib/src/simulation_tests.rs
description: Artifact commands tangent_to_3_point_arc.kcl
---
[
{
"cmdId": "[uuid]",
"range": [],
"command": {
"type": "edge_lines_visible",
"hidden": false
}
},
{
"cmdId": "[uuid]",
"range": [],
"command": {
"type": "object_visible",
"object_id": "[uuid]",
"hidden": true
}
},
{
"cmdId": "[uuid]",
"range": [],
"command": {
"type": "object_visible",
"object_id": "[uuid]",
"hidden": true
}
},
{
"cmdId": "[uuid]",
"range": [],
"command": {
"type": "make_plane",
"origin": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"x_axis": {
"x": 1.0,
"y": 0.0,
"z": 0.0
},
"y_axis": {
"x": 0.0,
"y": 0.0,
"z": 1.0
},
"size": 60.0,
"clobber": false,
"hide": true
}
},
{
"cmdId": "[uuid]",
"range": [],
"command": {
"type": "enable_sketch_mode",
"entity_id": "[uuid]",
"ortho": false,
"animated": false,
"adjust_camera": false,
"planar_normal": {
"x": 0.0,
"y": -1.0,
"z": 0.0
}
}
},
{
"cmdId": "[uuid]",
"range": [],
"command": {
"type": "start_path"
}
},
{
"cmdId": "[uuid]",
"range": [],
"command": {
"type": "move_path_pen",
"path": "[uuid]",
"to": {
"x": 100.0,
"y": 0.0,
"z": 0.0
}
}
},
{
"cmdId": "[uuid]",
"range": [],
"command": {
"type": "sketch_mode_disable"
}
},
{
"cmdId": "[uuid]",
"range": [],
"command": {
"type": "extend_path",
"path": "[uuid]",
"segment": {
"type": "line",
"end": {
"x": 0.0,
"y": 120.0,
"z": 0.0
},
"relative": true
}
}
},
{
"cmdId": "[uuid]",
"range": [],
"command": {
"type": "extend_path",
"path": "[uuid]",
"segment": {
"type": "arc_to",
"interior": {
"x": 300.0,
"y": 100.0,
"z": 0.0
},
"end": {
"x": 200.0,
"y": -100.0,
"z": 0.0
},
"relative": false
}
}
},
{
"cmdId": "[uuid]",
"range": [],
"command": {
"type": "extend_path",
"path": "[uuid]",
"segment": {
"type": "line",
"end": {
"x": -99.8038,
"y": -6.2608,
"z": 0.0
},
"relative": true
}
}
}
]

View File

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

View File

@ -0,0 +1,14 @@
```mermaid
flowchart LR
subgraph path2 [Path]
2["Path<br>[43, 82, 0]"]
3["Segment<br>[88, 112, 0]"]
4["Segment<br>[118, 209, 0]"]
5["Segment<br>[215, 292, 0]"]
end
1["Plane<br>[12, 29, 0]"]
1 --- 2
2 --- 3
2 --- 4
2 --- 5
```

View File

@ -0,0 +1,490 @@
---
source: kcl-lib/src/simulation_tests.rs
description: Result of parsing tangent_to_3_point_arc.kcl
---
{
"Ok": {
"body": [
{
"commentStart": 0,
"declaration": {
"commentStart": 0,
"end": 0,
"id": {
"commentStart": 0,
"end": 0,
"name": "sketch001",
"start": 0,
"type": "Identifier"
},
"init": {
"arguments": [
{
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "XZ",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "startSketchOn",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
},
"start": 0,
"type": "VariableDeclarator"
},
"end": 0,
"kind": "const",
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"commentStart": 0,
"declaration": {
"commentStart": 0,
"end": 0,
"id": {
"commentStart": 0,
"end": 0,
"name": "profile001",
"start": 0,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "100.0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 100.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0.0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "sketch001",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "end",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "0.0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "120.0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 120.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "line",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"commentStart": 0,
"end": 0,
"properties": [
{
"commentStart": 0,
"end": 0,
"key": {
"commentStart": 0,
"end": 0,
"name": "interior",
"start": 0,
"type": "Identifier"
},
"start": 0,
"type": "ObjectProperty",
"value": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "300.0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 300.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "100.0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 100.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"commentStart": 0,
"end": 0,
"key": {
"commentStart": 0,
"end": 0,
"name": "end",
"start": 0,
"type": "Identifier"
},
"start": 0,
"type": "ObjectProperty",
"value": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "200.00",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 200.0,
"suffix": "None"
}
},
{
"argument": {
"commentStart": 0,
"end": 0,
"raw": "100.00",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 100.0,
"suffix": "None"
}
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"start": 0,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "TagDeclarator",
"type": "TagDeclarator",
"value": "seg01"
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "arcTo",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "angle",
"start": 0,
"type": "Identifier"
},
"arg": {
"arguments": [
{
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "seg01",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "tangentToEnd",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
}
},
{
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "length",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"end": 0,
"raw": "100.00",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 100.0,
"suffix": "None"
}
}
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "angledLine",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 0,
"type": "VariableDeclarator"
},
"end": 0,
"kind": "const",
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
}
],
"commentStart": 0,
"end": 0,
"start": 0
}
}

View File

@ -0,0 +1,11 @@
sketch001 = startSketchOn(XZ)
profile001 = startProfileAt([100.0, 0.0], sketch001)
|> line(end = [0.0, 120.0])
|> arcTo({
interior = [300.0, 100.0],
end = [200.00, -100.00]
}, %, $seg01)
|> angledLine(
angle = tangentToEnd(seg01),
length = 100.00
)

View File

@ -0,0 +1,21 @@
---
source: kcl-lib/src/simulation_tests.rs
description: Operations executed tangent_to_3_point_arc.kcl
---
[
{
"labeledArgs": {
"planeOrSolid": {
"value": {
"type": "Plane",
"artifact_id": "[uuid]"
},
"sourceRange": []
}
},
"name": "startSketchOn",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": null
}
]

View File

@ -0,0 +1,208 @@
---
source: kcl-lib/src/simulation_tests.rs
description: Variables in memory after executing tangent_to_3_point_arc.kcl
---
{
"profile001": {
"type": "Sketch",
"value": {
"type": "Sketch",
"id": "[uuid]",
"paths": [
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
100.0,
0.0
],
"tag": null,
"to": [
100.0,
120.0
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
100.0,
120.0
],
"p1": [
100.0,
120.0
],
"p2": [
300.0,
100.0
],
"p3": [
200.0,
-100.0
],
"tag": {
"commentStart": 202,
"end": 208,
"start": 202,
"type": "TagDeclarator",
"value": "seg01"
},
"to": [
200.0,
-100.0
],
"type": "ArcThreePoint",
"units": {
"type": "Mm"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
200.0,
-100.0
],
"tag": null,
"to": [
100.1962,
-106.2608
],
"type": "ToPoint",
"units": {
"type": "Mm"
}
}
],
"on": {
"type": "plane",
"id": "[uuid]",
"artifactId": "[uuid]",
"value": "XZ",
"origin": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"units": {
"type": "Mm"
}
},
"xAxis": {
"x": 1.0,
"y": 0.0,
"z": 0.0,
"units": {
"type": "Mm"
}
},
"yAxis": {
"x": 0.0,
"y": 0.0,
"z": 1.0,
"units": {
"type": "Mm"
}
},
"zAxis": {
"x": 0.0,
"y": -1.0,
"z": 0.0,
"units": {
"type": "Mm"
}
},
"units": {
"type": "Mm"
}
},
"start": {
"from": [
100.0,
0.0
],
"to": [
100.0,
0.0
],
"units": {
"type": "Mm"
},
"tag": null,
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
}
},
"tags": {
"seg01": {
"type": "TagIdentifier",
"value": "seg01"
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Mm"
}
}
},
"seg01": {
"type": "TagIdentifier",
"type": "TagIdentifier",
"value": "seg01"
},
"sketch001": {
"type": "Plane",
"value": {
"id": "[uuid]",
"artifactId": "[uuid]",
"value": "XZ",
"origin": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"units": {
"type": "Mm"
}
},
"xAxis": {
"x": 1.0,
"y": 0.0,
"z": 0.0,
"units": {
"type": "Mm"
}
},
"yAxis": {
"x": 0.0,
"y": 0.0,
"z": 1.0,
"units": {
"type": "Mm"
}
},
"zAxis": {
"x": 0.0,
"y": -1.0,
"z": 0.0,
"units": {
"type": "Mm"
}
},
"units": {
"type": "Mm"
}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View File

@ -0,0 +1,12 @@
---
source: kcl-lib/src/simulation_tests.rs
description: Result of unparsing tangent_to_3_point_arc.kcl
---
sketch001 = startSketchOn(XZ)
profile001 = startProfileAt([100.0, 0.0], sketch001)
|> line(end = [0.0, 120.0])
|> arcTo({
interior = [300.0, 100.0],
end = [200.0, -100.0]
}, %, $seg01)
|> angledLine(angle = tangentToEnd(seg01), length = 100.0)