Remove start sketch at (#5586)

* remove start sketch at

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>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2025-03-01 16:32:46 -08:00
committed by GitHub
parent c3bdc6f106
commit 66f3500ca9
84 changed files with 5416 additions and 7913 deletions

View File

@ -1,7 +1,6 @@
---
source: kcl/src/simulation_tests.rs
source: kcl-lib/src/simulation_tests.rs
description: Artifact commands tangential_arc.kcl
snapshot_kind: text
---
[
{
@ -286,7 +285,7 @@ snapshot_kind: text
"cmdId": "[uuid]",
"range": [
12,
33,
29,
0
],
"command": {
@ -314,8 +313,8 @@ snapshot_kind: text
{
"cmdId": "[uuid]",
"range": [
12,
33,
35,
60,
0
],
"command": {
@ -334,8 +333,8 @@ snapshot_kind: text
{
"cmdId": "[uuid]",
"range": [
12,
33,
35,
60,
0
],
"command": {
@ -345,8 +344,8 @@ snapshot_kind: text
{
"cmdId": "[uuid]",
"range": [
12,
33,
35,
60,
0
],
"command": {
@ -362,8 +361,8 @@ snapshot_kind: text
{
"cmdId": "[uuid]",
"range": [
39,
58,
66,
85,
0
],
"command": {
@ -383,8 +382,8 @@ snapshot_kind: text
{
"cmdId": "[uuid]",
"range": [
64,
109,
91,
136,
0
],
"command": {
@ -403,8 +402,8 @@ snapshot_kind: text
{
"cmdId": "[uuid]",
"range": [
115,
135,
142,
162,
0
],
"command": {
@ -424,8 +423,8 @@ snapshot_kind: text
{
"cmdId": "[uuid]",
"range": [
141,
161,
168,
188,
0
],
"command": {
@ -444,8 +443,8 @@ snapshot_kind: text
{
"cmdId": "[uuid]",
"range": [
141,
161,
168,
188,
0
],
"command": {
@ -458,8 +457,8 @@ snapshot_kind: text
{
"cmdId": "[uuid]",
"range": [
141,
161,
168,
188,
0
],
"command": {
@ -469,8 +468,8 @@ snapshot_kind: text
{
"cmdId": "[uuid]",
"range": [
141,
161,
168,
188,
0
],
"command": {
@ -481,8 +480,8 @@ snapshot_kind: text
{
"cmdId": "[uuid]",
"range": [
141,
161,
168,
188,
0
],
"command": {
@ -494,8 +493,8 @@ snapshot_kind: text
{
"cmdId": "[uuid]",
"range": [
141,
161,
168,
188,
0
],
"command": {
@ -508,8 +507,8 @@ snapshot_kind: text
{
"cmdId": "[uuid]",
"range": [
141,
161,
168,
188,
0
],
"command": {
@ -522,8 +521,8 @@ snapshot_kind: text
{
"cmdId": "[uuid]",
"range": [
141,
161,
168,
188,
0
],
"command": {
@ -536,8 +535,8 @@ snapshot_kind: text
{
"cmdId": "[uuid]",
"range": [
141,
161,
168,
188,
0
],
"command": {
@ -550,8 +549,8 @@ snapshot_kind: text
{
"cmdId": "[uuid]",
"range": [
141,
161,
168,
188,
0
],
"command": {
@ -564,8 +563,8 @@ snapshot_kind: text
{
"cmdId": "[uuid]",
"range": [
141,
161,
168,
188,
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 tangential_arc.kcl
extension: md
snapshot_kind: binary

View File

@ -1,13 +1,13 @@
```mermaid
flowchart LR
subgraph path2 [Path]
2["Path<br>[12, 33, 0]"]
3["Segment<br>[39, 58, 0]"]
4["Segment<br>[64, 109, 0]"]
5["Segment<br>[115, 135, 0]"]
2["Path<br>[35, 60, 0]"]
3["Segment<br>[66, 85, 0]"]
4["Segment<br>[91, 136, 0]"]
5["Segment<br>[142, 162, 0]"]
end
1["Plane<br>[12, 33, 0]"]
6["Sweep Extrusion<br>[141, 161, 0]"]
1["Plane<br>[12, 29, 0]"]
6["Sweep Extrusion<br>[168, 188, 0]"]
7[Wall]
8[Wall]
9[Wall]

View File

@ -1,5 +1,5 @@
---
source: kcl/src/simulation_tests.rs
source: kcl-lib/src/simulation_tests.rs
description: Result of parsing tangential_arc.kcl
---
{
@ -7,7 +7,7 @@ description: Result of parsing tangential_arc.kcl
"body": [
{
"declaration": {
"end": 161,
"end": 188,
"id": {
"end": 9,
"name": "boxSketch",
@ -16,14 +16,35 @@ description: Result of parsing tangential_arc.kcl
},
"init": {
"body": [
{
"arguments": [
{
"end": 28,
"name": "XY",
"start": 26,
"type": "Identifier",
"type": "Identifier"
}
],
"callee": {
"end": 25,
"name": "startSketchOn",
"start": 12,
"type": "Identifier"
},
"end": 29,
"start": 12,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"elements": [
{
"end": 28,
"end": 52,
"raw": "0",
"start": 27,
"start": 51,
"type": "Literal",
"type": "Literal",
"value": {
@ -32,9 +53,9 @@ description: Result of parsing tangential_arc.kcl
}
},
{
"end": 31,
"end": 55,
"raw": "0",
"start": 30,
"start": 54,
"type": "Literal",
"type": "Literal",
"value": {
@ -43,20 +64,26 @@ description: Result of parsing tangential_arc.kcl
}
}
],
"end": 32,
"start": 26,
"end": 56,
"start": 50,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"end": 59,
"start": 58,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 25,
"name": "startSketchAt",
"start": 12,
"end": 49,
"name": "startProfileAt",
"start": 35,
"type": "Identifier"
},
"end": 33,
"start": 12,
"end": 60,
"start": 35,
"type": "CallExpression",
"type": "CallExpression"
},
@ -71,9 +98,9 @@ description: Result of parsing tangential_arc.kcl
"arg": {
"elements": [
{
"end": 52,
"end": 79,
"raw": "0",
"start": 51,
"start": 78,
"type": "Literal",
"type": "Literal",
"value": {
@ -82,9 +109,9 @@ description: Result of parsing tangential_arc.kcl
}
},
{
"end": 56,
"end": 83,
"raw": "10",
"start": 54,
"start": 81,
"type": "Literal",
"type": "Literal",
"value": {
@ -93,21 +120,21 @@ description: Result of parsing tangential_arc.kcl
}
}
],
"end": 57,
"start": 50,
"end": 84,
"start": 77,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 43,
"end": 70,
"name": "line",
"start": 39,
"start": 66,
"type": "Identifier"
},
"end": 58,
"start": 39,
"end": 85,
"start": 66,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
@ -115,22 +142,22 @@ description: Result of parsing tangential_arc.kcl
{
"arguments": [
{
"end": 105,
"end": 132,
"properties": [
{
"end": 90,
"end": 117,
"key": {
"end": 86,
"end": 113,
"name": "radius",
"start": 80,
"start": 107,
"type": "Identifier"
},
"start": 80,
"start": 107,
"type": "ObjectProperty",
"value": {
"end": 90,
"end": 117,
"raw": "5",
"start": 89,
"start": 116,
"type": "Literal",
"type": "Literal",
"value": {
@ -140,19 +167,19 @@ description: Result of parsing tangential_arc.kcl
}
},
{
"end": 103,
"end": 130,
"key": {
"end": 98,
"end": 125,
"name": "offset",
"start": 92,
"start": 119,
"type": "Identifier"
},
"start": 92,
"start": 119,
"type": "ObjectProperty",
"value": {
"end": 103,
"end": 130,
"raw": "90",
"start": 101,
"start": 128,
"type": "Literal",
"type": "Literal",
"value": {
@ -162,25 +189,25 @@ description: Result of parsing tangential_arc.kcl
}
}
],
"start": 78,
"start": 105,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
"end": 108,
"start": 107,
"end": 135,
"start": 134,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 77,
"end": 104,
"name": "tangentialArc",
"start": 64,
"start": 91,
"type": "Identifier"
},
"end": 109,
"start": 64,
"end": 136,
"start": 91,
"type": "CallExpression",
"type": "CallExpression"
},
@ -195,9 +222,9 @@ description: Result of parsing tangential_arc.kcl
"arg": {
"elements": [
{
"end": 128,
"end": 155,
"raw": "5",
"start": 127,
"start": 154,
"type": "Literal",
"type": "Literal",
"value": {
@ -207,9 +234,9 @@ description: Result of parsing tangential_arc.kcl
},
{
"argument": {
"end": 133,
"end": 160,
"raw": "15",
"start": 131,
"start": 158,
"type": "Literal",
"type": "Literal",
"value": {
@ -217,28 +244,28 @@ description: Result of parsing tangential_arc.kcl
"suffix": "None"
}
},
"end": 133,
"end": 160,
"operator": "-",
"start": 130,
"start": 157,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"end": 134,
"start": 126,
"end": 161,
"start": 153,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 119,
"end": 146,
"name": "line",
"start": 115,
"start": 142,
"type": "Identifier"
},
"end": 135,
"start": 115,
"end": 162,
"start": 142,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
@ -252,9 +279,9 @@ description: Result of parsing tangential_arc.kcl
"name": "length"
},
"arg": {
"end": 160,
"end": 187,
"raw": "10",
"start": 158,
"start": 185,
"type": "Literal",
"type": "Literal",
"value": {
@ -265,19 +292,19 @@ description: Result of parsing tangential_arc.kcl
}
],
"callee": {
"end": 148,
"end": 175,
"name": "extrude",
"start": 141,
"start": 168,
"type": "Identifier"
},
"end": 161,
"start": 141,
"end": 188,
"start": 168,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 161,
"end": 188,
"start": 12,
"type": "PipeExpression",
"type": "PipeExpression"
@ -285,14 +312,14 @@ description: Result of parsing tangential_arc.kcl
"start": 0,
"type": "VariableDeclarator"
},
"end": 161,
"end": 188,
"kind": "const",
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
}
],
"end": 162,
"end": 189,
"start": 0
}
}

View File

@ -1,4 +1,5 @@
boxSketch = startSketchAt([0, 0])
boxSketch = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> line(end = [0, 10])
|> tangentialArc({ radius = 5, offset = 90 }, %)
|> line(end = [5, -15])

View File

@ -1,8 +1,31 @@
---
source: kcl/src/simulation_tests.rs
source: kcl-lib/src/simulation_tests.rs
description: Operations executed tangential_arc.kcl
---
[
{
"labeledArgs": {
"data": {
"value": {
"type": "Plane",
"artifact_id": "[uuid]"
},
"sourceRange": [
26,
28,
0
]
}
},
"name": "startSketchOn",
"sourceRange": [
12,
29,
0
],
"type": "StdLibCall",
"unlabeledArg": null
},
{
"labeledArgs": {
"length": {
@ -20,16 +43,16 @@ description: Operations executed tangential_arc.kcl
}
},
"sourceRange": [
158,
160,
185,
187,
0
]
}
},
"name": "extrude",
"sourceRange": [
141,
161,
168,
188,
0
],
"type": "StdLibCall",

View File

@ -1,5 +1,5 @@
---
source: kcl/src/simulation_tests.rs
source: kcl-lib/src/simulation_tests.rs
description: Variables in memory after executing tangential_arc.kcl
---
{
@ -14,8 +14,8 @@ description: Variables in memory after executing tangential_arc.kcl
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [
39,
58,
66,
85,
0
],
"tag": null,
@ -25,8 +25,8 @@ description: Variables in memory after executing tangential_arc.kcl
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [
64,
109,
91,
136,
0
],
"tag": null,
@ -36,8 +36,8 @@ description: Variables in memory after executing tangential_arc.kcl
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [
115,
135,
142,
162,
0
],
"tag": null,
@ -52,8 +52,8 @@ description: Variables in memory after executing tangential_arc.kcl
"__geoMeta": {
"id": "[uuid]",
"sourceRange": [
39,
58,
66,
85,
0
]
},
@ -75,8 +75,8 @@ description: Variables in memory after executing tangential_arc.kcl
"__geoMeta": {
"id": "[uuid]",
"sourceRange": [
64,
109,
91,
136,
0
]
},
@ -103,8 +103,8 @@ description: Variables in memory after executing tangential_arc.kcl
"__geoMeta": {
"id": "[uuid]",
"sourceRange": [
115,
135,
142,
162,
0
]
},
@ -169,8 +169,8 @@ description: Variables in memory after executing tangential_arc.kcl
"__geoMeta": {
"id": "[uuid]",
"sourceRange": [
12,
33,
35,
60,
0
]
}
@ -183,8 +183,8 @@ description: Variables in memory after executing tangential_arc.kcl
"__meta": [
{
"sourceRange": [
12,
33,
35,
60,
0
]
}
@ -199,8 +199,8 @@ description: Variables in memory after executing tangential_arc.kcl
"__meta": [
{
"sourceRange": [
12,
33,
35,
60,
0
]
}