Kwargs: startProfileAt (#6424)

Previous:

```
startProfileAt([x, y], %)
startProfileAt([x, y], sketch001)
```

New:
```
startProfile(%, at = [x, y])
startProfile(sketch001, at = [x, y])
```
This commit is contained in:
Adam Chalmers
2025-04-25 16:01:35 -05:00
committed by GitHub
parent 9547e95e9d
commit ffbe20b586
573 changed files with 19805 additions and 16552 deletions

View File

@ -55,44 +55,47 @@ description: Result of parsing angled_line.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "4.83",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 4.83,
"suffix": "None"
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "4.83",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 4.83,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "12.56",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 12.56,
"suffix": "None"
}
}
},
{
"commentStart": 0,
"end": 0,
"raw": "12.56",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 12.56,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -102,7 +105,7 @@ description: Result of parsing angled_line.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -113,8 +116,9 @@ description: Result of parsing angled_line.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -1,5 +1,5 @@
part001 = startSketchOn('XY')
|> startProfileAt([4.83, 12.56], %)
|> startProfile(at = [4.83, 12.56])
|> line(end = [15.1, 2.48])
|> line(end = [3.15, -9.85], tag = $seg01)
|> line(end = [-15.17, -4.1])

View File

@ -3,7 +3,7 @@ source: kcl-lib/src/simulation_tests.rs
description: Result of unparsing angled_line.kcl
---
part001 = startSketchOn(XY)
|> startProfileAt([4.83, 12.56], %)
|> startProfile(at = [4.83, 12.56])
|> line(end = [15.1, 2.48])
|> line(end = [3.15, -9.85], tag = $seg01)
|> line(end = [-15.17, -4.1])

View File

@ -55,60 +55,63 @@ description: Result of parsing artifact_graph_example_code1.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"argument": {
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"argument": {
"commentStart": 0,
"end": 0,
"raw": "5",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 5.0,
"suffix": "None"
}
},
"commentStart": 0,
"end": 0,
"raw": "5",
"operator": "-",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 5.0,
"suffix": "None"
}
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
{
"argument": {
{
"argument": {
"commentStart": 0,
"end": 0,
"raw": "5",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 5.0,
"suffix": "None"
}
},
"commentStart": 0,
"end": 0,
"raw": "5",
"operator": "-",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 5.0,
"suffix": "None"
}
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -118,7 +121,7 @@ description: Result of parsing artifact_graph_example_code1.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -129,8 +132,9 @@ description: Result of parsing artifact_graph_example_code1.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
@ -790,60 +794,63 @@ description: Result of parsing artifact_graph_example_code1.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"argument": {
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"argument": {
"commentStart": 0,
"end": 0,
"raw": "2",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"commentStart": 0,
"end": 0,
"raw": "2",
"operator": "-",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
{
"argument": {
{
"argument": {
"commentStart": 0,
"end": 0,
"raw": "6",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 6.0,
"suffix": "None"
}
},
"commentStart": 0,
"end": 0,
"raw": "6",
"operator": "-",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 6.0,
"suffix": "None"
}
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -853,7 +860,7 @@ description: Result of parsing artifact_graph_example_code1.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -864,8 +871,9 @@ description: Result of parsing artifact_graph_example_code1.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -1,5 +1,5 @@
sketch001 = startSketchOn('XY')
|> startProfileAt([-5, -5], %)
|> startProfile(at = [-5, -5])
|> line(end = [0, 10])
|> line(end = [10.55, 0], tag = $seg01)
|> line(end = [0, -10], tag = $seg02)
@ -8,7 +8,7 @@ sketch001 = startSketchOn('XY')
extrude001 = extrude(sketch001, length = -10)
|> fillet(radius = 5, tags = [seg01])
sketch002 = startSketchOn(extrude001, face = seg02)
|> startProfileAt([-2, -6], %)
|> startProfile(at = [-2, -6])
|> line(end = [2, 3])
|> line(end = [2, -3])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])

View File

@ -3,7 +3,7 @@ source: kcl-lib/src/simulation_tests.rs
description: Result of unparsing artifact_graph_example_code1.kcl
---
sketch001 = startSketchOn(XY)
|> startProfileAt([-5, -5], %)
|> startProfile(at = [-5, -5])
|> line(end = [0, 10])
|> line(end = [10.55, 0], tag = $seg01)
|> line(end = [0, -10], tag = $seg02)
@ -12,7 +12,7 @@ sketch001 = startSketchOn(XY)
extrude001 = extrude(sketch001, length = -10)
|> fillet(radius = 5, tags = [seg01])
sketch002 = startSketchOn(extrude001, face = seg02)
|> startProfileAt([-2, -6], %)
|> startProfile(at = [-2, -6])
|> line(end = [2, 3])
|> line(end = [2, -3])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])

View File

@ -55,44 +55,47 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "5.82",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 5.82,
"suffix": "None"
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "5.82",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 5.82,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -102,7 +105,7 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -113,8 +116,9 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
@ -684,44 +688,47 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"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": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "14.36",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 14.36,
"suffix": "None"
}
}
},
{
"commentStart": 0,
"end": 0,
"raw": "14.36",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 14.36,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -731,7 +738,7 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -742,8 +749,9 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -1,12 +1,12 @@
sketch003 = startSketchOn('YZ')
|> startProfileAt([5.82, 0], %)
|> startProfile(at = [5.82, 0])
|> angledLine(angle = 180, length = 11.54, tag = $rectangleSegmentA001)
|> angledLine(angle = segAng(rectangleSegmentA001) - 90, length = 8.21, tag = $rectangleSegmentB001)
|> angledLine(angle = segAng(rectangleSegmentA001), length = -segLen(rectangleSegmentA001), tag = $rectangleSegmentC001)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
sketch004 = startSketchOn('-XZ')
|> startProfileAt([0, 14.36], %)
|> startProfile(at = [0, 14.36])
|> line(end = [15.49, 0.05])
|> tangentialArc(endAbsolute = [0, 0])
|> tangentialArc(endAbsolute = [-6.8, 8.17])

View File

@ -3,14 +3,14 @@ source: kcl-lib/src/simulation_tests.rs
description: Result of unparsing artifact_graph_example_code_no_3d.kcl
---
sketch003 = startSketchOn(YZ)
|> startProfileAt([5.82, 0], %)
|> startProfile(at = [5.82, 0])
|> angledLine(angle = 180, length = 11.54, tag = $rectangleSegmentA001)
|> angledLine(angle = segAng(rectangleSegmentA001) - 90, length = 8.21, tag = $rectangleSegmentB001)
|> angledLine(angle = segAng(rectangleSegmentA001), length = -segLen(rectangleSegmentA001), tag = $rectangleSegmentC001)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
sketch004 = startSketchOn(-XZ)
|> startProfileAt([0, 14.36], %)
|> startProfile(at = [0, 14.36])
|> line(end = [15.49, 0.05])
|> tangentialArc(endAbsolute = [0, 0])
|> tangentialArc(endAbsolute = [-6.8, 8.17])

View File

@ -298,44 +298,47 @@ description: Result of parsing artifact_graph_example_code_offset_planes.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"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": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -345,7 +348,7 @@ description: Result of parsing artifact_graph_example_code_offset_planes.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -356,8 +359,9 @@ description: Result of parsing artifact_graph_example_code_offset_planes.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -3,5 +3,5 @@ offsetPlane002 = offsetPlane("XZ", offset = -50)
offsetPlane003 = offsetPlane("YZ", offset = 10)
sketch002 = startSketchOn(offsetPlane001)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [6.78, 15.01])

View File

@ -7,5 +7,5 @@ offsetPlane002 = offsetPlane(XZ, offset = -50)
offsetPlane003 = offsetPlane(YZ, offset = 10)
sketch002 = startSketchOn(offsetPlane001)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [6.78, 15.01])

View File

@ -62,44 +62,47 @@ description: Result of parsing artifact_graph_sketch_on_face_etc.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"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": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -109,7 +112,7 @@ description: Result of parsing artifact_graph_sketch_on_face_etc.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -120,8 +123,9 @@ description: Result of parsing artifact_graph_sketch_on_face_etc.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
@ -596,10 +600,38 @@ description: Result of parsing artifact_graph_sketch_on_face_etc.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"argument": {
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"argument": {
"commentStart": 0,
"end": 0,
"raw": "0.5",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.5,
"suffix": "None"
}
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
{
"commentStart": 0,
"end": 0,
"raw": "0.5",
@ -610,38 +642,13 @@ description: Result of parsing artifact_graph_sketch_on_face_etc.kcl
"value": 0.5,
"suffix": "None"
}
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
{
"commentStart": 0,
"end": 0,
"raw": "0.5",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.5,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -651,7 +658,7 @@ description: Result of parsing artifact_graph_sketch_on_face_etc.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -662,8 +669,9 @@ description: Result of parsing artifact_graph_sketch_on_face_etc.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
@ -1113,44 +1121,47 @@ description: Result of parsing artifact_graph_sketch_on_face_etc.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "1",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "1",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "1.5",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.5,
"suffix": "None"
}
}
},
{
"commentStart": 0,
"end": 0,
"raw": "1.5",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.5,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -1160,7 +1171,7 @@ description: Result of parsing artifact_graph_sketch_on_face_etc.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -1171,8 +1182,9 @@ description: Result of parsing artifact_graph_sketch_on_face_etc.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
@ -1647,52 +1659,55 @@ description: Result of parsing artifact_graph_sketch_on_face_etc.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"argument": {
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"argument": {
"commentStart": 0,
"end": 0,
"raw": "3",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 3.0,
"suffix": "None"
}
},
"commentStart": 0,
"end": 0,
"raw": "3",
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
{
"commentStart": 0,
"end": 0,
"raw": "14",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 3.0,
"value": 14.0,
"suffix": "None"
}
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
{
"commentStart": 0,
"end": 0,
"raw": "14",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 14.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -1702,7 +1717,7 @@ description: Result of parsing artifact_graph_sketch_on_face_etc.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -1713,8 +1728,9 @@ description: Result of parsing artifact_graph_sketch_on_face_etc.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -1,26 +1,26 @@
sketch001 = startSketchOn(XZ)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [4, 8])
|> line(end = [5, -8], tag = $seg01)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
extrude001 = extrude(sketch001, length = 6)
sketch002 = startSketchOn(extrude001, face = seg01)
|> startProfileAt([-0.5, 0.5], %)
|> startProfile(at = [-0.5, 0.5])
|> line(end = [2, 5])
|> line(end = [2, -5])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
extrude002 = extrude(sketch002, length = 5)
sketch003 = startSketchOn(extrude002, face = 'END')
|> startProfileAt([1, 1.5], %)
|> startProfile(at = [1, 1.5])
|> line(end = [0.5, 2], tag = $seg02)
|> line(end = [1, -2])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
extrude003 = extrude(sketch003, length = 4)
sketch004 = startSketchOn(extrude003, face = seg02)
|> startProfileAt([-3, 14], %)
|> startProfile(at = [-3, 14])
|> line(end = [0.5, 1])
|> line(end = [0.5, -2])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])

View File

@ -3,28 +3,28 @@ source: kcl-lib/src/simulation_tests.rs
description: Result of unparsing artifact_graph_sketch_on_face_etc.kcl
---
sketch001 = startSketchOn(XZ)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [4, 8])
|> line(end = [5, -8], tag = $seg01)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
extrude001 = extrude(sketch001, length = 6)
sketch002 = startSketchOn(extrude001, face = seg01)
|> startProfileAt([-0.5, 0.5], %)
|> startProfile(at = [-0.5, 0.5])
|> line(end = [2, 5])
|> line(end = [2, -5])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
extrude002 = extrude(sketch002, length = 5)
sketch003 = startSketchOn(extrude002, face = END)
|> startProfileAt([1, 1.5], %)
|> startProfile(at = [1, 1.5])
|> line(end = [0.5, 2], tag = $seg02)
|> line(end = [1, -2])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
extrude003 = extrude(sketch003, length = 4)
sketch004 = startSketchOn(extrude003, face = seg02)
|> startProfileAt([-3, 14], %)
|> startProfile(at = [-3, 14])
|> line(end = [0.5, 1])
|> line(end = [0.5, -2])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])

View File

@ -1,25 +1,25 @@
```mermaid
flowchart LR
subgraph path2 [Path]
2["Path<br>[76, 113, 6]"]
3["Segment<br>[119, 136, 6]"]
4["Segment<br>[142, 160, 6]"]
5["Segment<br>[166, 184, 6]"]
6["Segment<br>[190, 246, 6]"]
7["Segment<br>[252, 259, 6]"]
2["Path<br>[76, 116, 6]"]
3["Segment<br>[122, 139, 6]"]
4["Segment<br>[145, 163, 6]"]
5["Segment<br>[169, 187, 6]"]
6["Segment<br>[193, 249, 6]"]
7["Segment<br>[255, 262, 6]"]
8[Solid2d]
end
subgraph path25 [Path]
25["Path<br>[76, 111, 7]"]
26["Segment<br>[117, 134, 7]"]
27["Segment<br>[140, 158, 7]"]
28["Segment<br>[164, 182, 7]"]
29["Segment<br>[188, 244, 7]"]
30["Segment<br>[250, 257, 7]"]
25["Path<br>[76, 114, 7]"]
26["Segment<br>[120, 137, 7]"]
27["Segment<br>[143, 161, 7]"]
28["Segment<br>[167, 185, 7]"]
29["Segment<br>[191, 247, 7]"]
30["Segment<br>[253, 260, 7]"]
31[Solid2d]
end
1["Plane<br>[47, 66, 6]"]
9["Sweep Extrusion<br>[265, 287, 6]"]
9["Sweep Extrusion<br>[268, 290, 6]"]
10[Wall]
11[Wall]
12[Wall]
@ -35,7 +35,7 @@ flowchart LR
22["SweepEdge Opposite"]
23["SweepEdge Adjacent"]
24["Plane<br>[47, 66, 7]"]
32["Sweep Extrusion<br>[263, 285, 7]"]
32["Sweep Extrusion<br>[266, 288, 7]"]
33[Wall]
34[Wall]
35[Wall]

View File

@ -1,7 +1,7 @@
@settings(defaultLengthUnit = in)
sketch001 = startSketchOn('XY')
cubeIn = startProfileAt([-10, -10], sketch001)
cubeIn = startProfile(sketch001, at = [-10, -10])
|> xLine(length = 5)
|> yLine(length = -5)
|> xLine(length = -5)

View File

@ -1,7 +1,7 @@
@settings(defaultLengthUnit = mm)
sketch001 = startSketchOn('XY')
cubeMm = startProfileAt([10, 10], sketch001)
cubeMm = startProfile(sketch001, at = [10, 10])
|> xLine(length = 5)
|> yLine(length = -5)
|> xLine(length = -5)

View File

@ -5,7 +5,7 @@ description: Result of unparsing tests/assembly_mixed_units_cubes/cube-inches.kc
@settings(defaultLengthUnit = in)
sketch001 = startSketchOn(XY)
cubeIn = startProfileAt([-10, -10], sketch001)
cubeIn = startProfile(sketch001, at = [-10, -10])
|> xLine(length = 5)
|> yLine(length = -5)
|> xLine(length = -5)

View File

@ -5,7 +5,7 @@ description: Result of unparsing tests/assembly_mixed_units_cubes/cube-mm.kcl
@settings(defaultLengthUnit = mm)
sketch001 = startSketchOn(XY)
cubeMm = startProfileAt([10, 10], sketch001)
cubeMm = startProfile(sketch001, at = [10, 10])
|> xLine(length = 5)
|> yLine(length = -5)
|> xLine(length = -5)

View File

@ -55,44 +55,47 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"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": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -102,7 +105,7 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -113,8 +116,9 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -1,5 +1,5 @@
part001 = startSketchOn('XY')
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, 10], tag = $thing)
|> line(end = [10, 0])
|> line(end = [0, -10], tag = $thing2)

View File

@ -3,7 +3,7 @@ source: kcl-lib/src/simulation_tests.rs
description: Result of unparsing basic_fillet_cube_close_opposite.kcl
---
part001 = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, 10], tag = $thing)
|> line(end = [10, 0])
|> line(end = [0, -10], tag = $thing2)

View File

@ -55,44 +55,47 @@ description: Result of parsing basic_fillet_cube_end.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"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": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -102,7 +105,7 @@ description: Result of parsing basic_fillet_cube_end.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -113,8 +116,9 @@ description: Result of parsing basic_fillet_cube_end.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -1,5 +1,5 @@
part001 = startSketchOn('XY')
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, 10], tag = $thing)
|> line(end = [10, 0])
|> line(end = [0, -10], tag = $thing2)

View File

@ -3,7 +3,7 @@ source: kcl-lib/src/simulation_tests.rs
description: Result of unparsing basic_fillet_cube_end.kcl
---
part001 = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, 10], tag = $thing)
|> line(end = [10, 0])
|> line(end = [0, -10], tag = $thing2)

View File

@ -55,44 +55,47 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"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": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -102,7 +105,7 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -113,8 +116,9 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -1,5 +1,5 @@
part001 = startSketchOn('XY')
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, 10], tag = $thing)
|> line(end = [10, 0], tag = $thing1)
|> line(end = [0, -10], tag = $thing2)

View File

@ -3,7 +3,7 @@ source: kcl-lib/src/simulation_tests.rs
description: Result of unparsing basic_fillet_cube_next_adjacent.kcl
---
part001 = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, 10], tag = $thing)
|> line(end = [10, 0], tag = $thing1)
|> line(end = [0, -10], tag = $thing2)

View File

@ -55,44 +55,47 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"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": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -102,7 +105,7 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -113,8 +116,9 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -1,5 +1,5 @@
part001 = startSketchOn('XY')
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, 10], tag = $thing)
|> line(end = [10, 0], tag = $thing1)
|> line(end = [0, -10], tag = $thing2)

View File

@ -3,7 +3,7 @@ source: kcl-lib/src/simulation_tests.rs
description: Result of unparsing basic_fillet_cube_previous_adjacent.kcl
---
part001 = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, 10], tag = $thing)
|> line(end = [10, 0], tag = $thing1)
|> line(end = [0, -10], tag = $thing2)

View File

@ -55,44 +55,47 @@ description: Result of parsing basic_fillet_cube_start.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"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": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -102,7 +105,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -113,8 +116,9 @@ description: Result of parsing basic_fillet_cube_start.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -1,5 +1,5 @@
part001 = startSketchOn('XY')
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, 10], tag = $thing)
|> line(end = [10, 0])
|> line(end = [0, -10], tag = $thing2)

View File

@ -3,7 +3,7 @@ source: kcl-lib/src/simulation_tests.rs
description: Result of unparsing basic_fillet_cube_start.kcl
---
part001 = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, 10], tag = $thing)
|> line(end = [10, 0])
|> line(end = [0, -10], tag = $thing2)

View File

@ -0,0 +1,432 @@
---
source: kcl-lib/src/simulation_tests.rs
description: Result of parsing big_number_angle_to_match_length_x.kcl
---
{
"Ok": {
"body": [
{
"commentStart": 0,
"declaration": {
"commentStart": 0,
"end": 0,
"id": {
"commentStart": 0,
"end": 0,
"name": "part001",
"start": 0,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"commentStart": 0,
"end": 0,
"raw": "'XY'",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": "XY"
}
],
"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"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.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": "startProfile",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "end",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "1",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "3.82",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 3.82,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "tag",
"start": 0,
"type": "Identifier"
},
"arg": {
"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": "line",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "angle",
"start": 0,
"type": "Identifier"
},
"arg": {
"argument": {
"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"
},
{
"commentStart": 0,
"end": 0,
"raw": "3",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 3.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "angleToMatchLengthX",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
},
{
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "endAbsoluteX",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"end": 0,
"raw": "3",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 3.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
},
{
"arguments": [
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "close",
"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": "length",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"end": 0,
"raw": "10",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 10.0,
"suffix": "None"
}
}
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "extrude",
"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,6 @@
part001 = startSketchOn('XY')
|> startProfile(at = [0, 0])
|> line(end = [1, 3.82], tag = $seg01)
|> angledLine(angle = -angleToMatchLengthX(seg01, 3, %), endAbsoluteX = 3)
|> close(%)
|> extrude(length = 10)

View File

@ -0,0 +1,10 @@
---
source: kcl-lib/src/simulation_tests.rs
description: Result of unparsing big_number_angle_to_match_length_x.kcl
---
part001 = startSketchOn(XY)
|> startProfile(at = [0, 0])
|> line(end = [1, 3.82], tag = $seg01)
|> angledLine(angle = -angleToMatchLengthX(seg01, 3, %), endAbsoluteX = 3)
|> close(%)
|> extrude(length = 10)

View File

@ -0,0 +1,432 @@
---
source: kcl-lib/src/simulation_tests.rs
description: Result of parsing big_number_angle_to_match_length_y.kcl
---
{
"Ok": {
"body": [
{
"commentStart": 0,
"declaration": {
"commentStart": 0,
"end": 0,
"id": {
"commentStart": 0,
"end": 0,
"name": "part001",
"start": 0,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"commentStart": 0,
"end": 0,
"raw": "'XY'",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": "XY"
}
],
"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"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.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": "startProfile",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "end",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "1",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "3.82",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 3.82,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "tag",
"start": 0,
"type": "Identifier"
},
"arg": {
"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": "line",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "angle",
"start": 0,
"type": "Identifier"
},
"arg": {
"argument": {
"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"
},
{
"commentStart": 0,
"end": 0,
"raw": "3",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 3.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "angleToMatchLengthY",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
},
{
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "endAbsoluteX",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"end": 0,
"raw": "3",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 3.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
},
{
"arguments": [
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "close",
"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": "length",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"end": 0,
"raw": "10",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 10.0,
"suffix": "None"
}
}
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "extrude",
"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,6 @@
part001 = startSketchOn('XY')
|> startProfile(at = [0, 0])
|> line(end = [1, 3.82], tag = $seg01)
|> angledLine(angle = -angleToMatchLengthY(seg01, 3, %), endAbsoluteX = 3)
|> close(%)
|> extrude(length = 10)

View File

@ -0,0 +1,10 @@
---
source: kcl-lib/src/simulation_tests.rs
description: Result of unparsing big_number_angle_to_match_length_y.kcl
---
part001 = startSketchOn(XY)
|> startProfile(at = [0, 0])
|> line(end = [1, 3.82], tag = $seg01)
|> angledLine(angle = -angleToMatchLengthY(seg01, 3, %), endAbsoluteX = 3)
|> close(%)
|> extrude(length = 10)

View File

@ -55,44 +55,47 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"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": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -102,7 +105,7 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -113,8 +116,9 @@ description: Result of parsing circular_pattern3d_a_pattern.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -1,5 +1,5 @@
exampleSketch = startSketchOn('XZ')
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, 2])
|> line(end = [3, 1])
|> line(end = [0, -4])

View File

@ -3,7 +3,7 @@ source: kcl-lib/src/simulation_tests.rs
description: Result of unparsing circular_pattern3d_a_pattern.kcl
---
exampleSketch = startSketchOn(XZ)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, 2])
|> line(end = [3, 1])
|> line(end = [0, -4])

View File

@ -1,85 +1,85 @@
```mermaid
flowchart LR
subgraph path2 [Path]
2["Path<br>[43, 83, 0]"]
3["Segment<br>[89, 127, 0]"]
4["Segment<br>[133, 172, 0]"]
5["Segment<br>[178, 234, 0]"]
6["Segment<br>[240, 247, 0]"]
2["Path<br>[43, 86, 0]"]
3["Segment<br>[92, 130, 0]"]
4["Segment<br>[136, 175, 0]"]
5["Segment<br>[181, 237, 0]"]
6["Segment<br>[243, 250, 0]"]
7[Solid2d]
end
subgraph path20 [Path]
20["Path<br>[359, 399, 0]"]
21["Segment<br>[405, 429, 0]"]
22["Segment<br>[435, 460, 0]"]
20["Path<br>[362, 405, 0]"]
21["Segment<br>[411, 435, 0]"]
22["Segment<br>[441, 466, 0]"]
end
subgraph path23 [Path]
23["Path<br>[474, 513, 0]"]
24["Segment<br>[519, 584, 0]"]
25["Segment<br>[590, 658, 0]"]
26["Segment<br>[664, 752, 0]"]
27["Segment<br>[758, 814, 0]"]
28["Segment<br>[820, 827, 0]"]
23["Path<br>[480, 522, 0]"]
24["Segment<br>[528, 593, 0]"]
25["Segment<br>[599, 667, 0]"]
26["Segment<br>[673, 761, 0]"]
27["Segment<br>[767, 823, 0]"]
28["Segment<br>[829, 836, 0]"]
29[Solid2d]
end
subgraph path30 [Path]
30["Path<br>[841, 880, 0]"]
31["Segment<br>[886, 906, 0]"]
32["Segment<br>[912, 938, 0]"]
33["Segment<br>[944, 1000, 0]"]
34["Segment<br>[1006, 1013, 0]"]
30["Path<br>[850, 892, 0]"]
31["Segment<br>[898, 918, 0]"]
32["Segment<br>[924, 950, 0]"]
33["Segment<br>[956, 1012, 0]"]
34["Segment<br>[1018, 1025, 0]"]
35[Solid2d]
end
subgraph path36 [Path]
36["Path<br>[1027, 1082, 0]"]
37["Segment<br>[1027, 1082, 0]"]
36["Path<br>[1039, 1094, 0]"]
37["Segment<br>[1039, 1094, 0]"]
38[Solid2d]
end
subgraph path39 [Path]
39["Path<br>[1096, 1135, 0]"]
40["Segment<br>[1141, 1165, 0]"]
41["Segment<br>[1171, 1196, 0]"]
42["Segment<br>[1202, 1258, 0]"]
43["Segment<br>[1264, 1271, 0]"]
39["Path<br>[1108, 1150, 0]"]
40["Segment<br>[1156, 1180, 0]"]
41["Segment<br>[1186, 1211, 0]"]
42["Segment<br>[1217, 1273, 0]"]
43["Segment<br>[1279, 1286, 0]"]
44[Solid2d]
end
subgraph path59 [Path]
59["Path<br>[1441, 1479, 0]"]
60["Segment<br>[1485, 1509, 0]"]
61["Segment<br>[1515, 1540, 0]"]
59["Path<br>[1456, 1497, 0]"]
60["Segment<br>[1503, 1527, 0]"]
61["Segment<br>[1533, 1558, 0]"]
end
subgraph path62 [Path]
62["Path<br>[1554, 1593, 0]"]
63["Segment<br>[1599, 1623, 0]"]
64["Segment<br>[1629, 1654, 0]"]
65["Segment<br>[1660, 1716, 0]"]
66["Segment<br>[1722, 1729, 0]"]
62["Path<br>[1572, 1614, 0]"]
63["Segment<br>[1620, 1644, 0]"]
64["Segment<br>[1650, 1675, 0]"]
65["Segment<br>[1681, 1737, 0]"]
66["Segment<br>[1743, 1750, 0]"]
67[Solid2d]
end
subgraph path68 [Path]
68["Path<br>[1743, 1782, 0]"]
69["Segment<br>[1788, 1811, 0]"]
70["Segment<br>[1817, 1842, 0]"]
71["Segment<br>[1848, 1904, 0]"]
72["Segment<br>[1910, 1917, 0]"]
68["Path<br>[1764, 1806, 0]"]
69["Segment<br>[1812, 1835, 0]"]
70["Segment<br>[1841, 1866, 0]"]
71["Segment<br>[1872, 1928, 0]"]
72["Segment<br>[1934, 1941, 0]"]
73[Solid2d]
end
subgraph path74 [Path]
74["Path<br>[1931, 1987, 0]"]
75["Segment<br>[1931, 1987, 0]"]
74["Path<br>[1955, 2011, 0]"]
75["Segment<br>[1955, 2011, 0]"]
76[Solid2d]
end
subgraph path77 [Path]
77["Path<br>[2001, 2041, 0]"]
78["Segment<br>[2047, 2112, 0]"]
79["Segment<br>[2118, 2186, 0]"]
80["Segment<br>[2192, 2280, 0]"]
81["Segment<br>[2286, 2342, 0]"]
82["Segment<br>[2348, 2355, 0]"]
77["Path<br>[2025, 2068, 0]"]
78["Segment<br>[2074, 2139, 0]"]
79["Segment<br>[2145, 2213, 0]"]
80["Segment<br>[2219, 2307, 0]"]
81["Segment<br>[2313, 2369, 0]"]
82["Segment<br>[2375, 2382, 0]"]
83[Solid2d]
end
1["Plane<br>[12, 29, 0]"]
8["Sweep Extrusion<br>[261, 293, 0]"]
8["Sweep Extrusion<br>[264, 296, 0]"]
9[Wall]
10[Wall]
11[Wall]
@ -91,8 +91,8 @@ flowchart LR
17["SweepEdge Adjacent"]
18["SweepEdge Opposite"]
19["SweepEdge Adjacent"]
45["Sweep RevolveAboutEdge<br>[1285, 1351, 0]"]
46["Sweep Extrusion<br>[1365, 1396, 0]"]
45["Sweep RevolveAboutEdge<br>[1300, 1366, 0]"]
46["Sweep Extrusion<br>[1380, 1411, 0]"]
47[Wall]
48[Wall]
49[Wall]
@ -104,8 +104,8 @@ flowchart LR
55["SweepEdge Adjacent"]
56["SweepEdge Opposite"]
57["SweepEdge Adjacent"]
58["Plane<br>[1409, 1427, 0]"]
84["Sweep Extrusion<br>[2369, 2402, 0]"]
58["Plane<br>[1424, 1442, 0]"]
84["Sweep Extrusion<br>[2396, 2429, 0]"]
85[Wall]
86[Wall]
87[Wall]
@ -120,7 +120,7 @@ flowchart LR
96["SweepEdge Adjacent"]
97["SweepEdge Opposite"]
98["SweepEdge Adjacent"]
99["Sweep RevolveAboutEdge<br>[2416, 2461, 0]"]
99["Sweep RevolveAboutEdge<br>[2443, 2488, 0]"]
100[Wall]
101[Wall]
102[Wall]
@ -132,7 +132,7 @@ flowchart LR
108["SweepEdge Adjacent"]
109["SweepEdge Opposite"]
110["SweepEdge Adjacent"]
111["StartSketchOnFace<br>[306, 345, 0]"]
111["StartSketchOnFace<br>[309, 348, 0]"]
1 --- 2
2 --- 3
2 --- 4

File diff suppressed because it is too large Load Diff

View File

@ -1,27 +1,27 @@
sketch001 = startSketchOn(XZ)
profile001 = startProfileAt([6.71, -3.66], sketch001)
profile001 = startProfile(sketch001, at = [6.71, -3.66])
|> line(end = [2.65, 9.02], tag = $seg02)
|> line(end = [3.73, -9.36], tag = $seg01)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
extrude001 = extrude(profile001, length = 20)
sketch002 = startSketchOn(extrude001, face = seg01)
profile002 = startProfileAt([0.75, 13.46], sketch002)
profile002 = startProfile(sketch002, at = [0.75, 13.46])
|> line(end = [4.52, 3.79])
|> line(end = [5.98, -2.81])
profile003 = startProfileAt([3.19, 13.3], sketch002)
profile003 = startProfile(sketch002, at = [3.19, 13.3])
|> angledLine(angle = 0, length = 6.64, tag = $rectangleSegmentA001)
|> angledLine(angle = segAng(rectangleSegmentA001) - 90, length = 2.81)
|> angledLine(angle = segAng(rectangleSegmentA001), length = -segLen(rectangleSegmentA001))
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
profile004 = startProfileAt([3.15, 9.39], sketch002)
profile004 = startProfile(sketch002, at = [3.15, 9.39])
|> xLine(length = 6.92)
|> line(end = [-7.41, -2.85])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
profile005 = circle(sketch002, center = [5.15, 4.34], radius = 1.66)
profile006 = startProfileAt([9.65, 3.82], sketch002)
profile006 = startProfile(sketch002, at = [9.65, 3.82])
|> line(end = [2.38, 5.62])
|> line(end = [2.13, -5.57])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
@ -29,21 +29,21 @@ profile006 = startProfileAt([9.65, 3.82], sketch002)
revolve001 = revolve(profile004, angle = 45, axis = getNextAdjacentEdge(seg01))
extrude002 = extrude(profile006, length = 4)
sketch003 = startSketchOn(-XZ)
profile007 = startProfileAt([4.8, 7.55], sketch003)
profile007 = startProfile(sketch003, at = [4.8, 7.55])
|> line(end = [7.39, 2.58])
|> line(end = [7.02, -2.85])
profile008 = startProfileAt([5.54, 5.49], sketch003)
profile008 = startProfile(sketch003, at = [5.54, 5.49])
|> line(end = [6.34, 2.64])
|> line(end = [6.33, -2.96])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
profile009 = startProfileAt([5.23, 1.95], sketch003)
profile009 = startProfile(sketch003, at = [5.23, 1.95])
|> line(end = [6.8, 2.17])
|> line(end = [7.34, -2.75])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
profile010 = circle(sketch003, center = [7.18, -2.11], radius = 2.67)
profile011 = startProfileAt([5.07, -6.39], sketch003)
profile011 = startProfile(sketch003, at = [5.07, -6.39])
|> angledLine(angle = 0, length = 4.54, tag = $rectangleSegmentA002)
|> angledLine(angle = segAng(rectangleSegmentA002) - 90, length = 4.17)
|> angledLine(angle = segAng(rectangleSegmentA002), length = -segLen(rectangleSegmentA002))

View File

@ -15,9 +15,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -28,9 +28,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -58,9 +58,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
-3.66
],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -83,9 +83,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
5.36
],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -351,9 +351,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -364,9 +364,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -394,9 +394,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
-3.66
],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -419,9 +419,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
5.36
],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -594,9 +594,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 2090,
"end": 2111,
"start": 2090,
"commentStart": 2117,
"end": 2138,
"start": 2117,
"type": "TagDeclarator",
"value": "rectangleSegmentA002"
},
@ -638,9 +638,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
-6.39
],
"tag": {
"commentStart": 2090,
"end": 2111,
"start": 2090,
"commentStart": 2117,
"end": 2138,
"start": 2117,
"type": "TagDeclarator",
"value": "rectangleSegmentA002"
},
@ -815,9 +815,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
-3.66
],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -840,9 +840,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
5.36
],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -1035,9 +1035,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -1048,9 +1048,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -1078,9 +1078,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
-3.66
],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -1103,9 +1103,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
5.36
],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -1274,9 +1274,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
13.3
],
"tag": {
"commentStart": 562,
"end": 583,
"start": 562,
"commentStart": 571,
"end": 592,
"start": 571,
"type": "TagDeclarator",
"value": "rectangleSegmentA001"
},
@ -1397,9 +1397,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -1410,9 +1410,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -1440,9 +1440,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
-3.66
],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -1465,9 +1465,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
5.36
],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -1740,9 +1740,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -1753,9 +1753,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -1783,9 +1783,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
-3.66
],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -1808,9 +1808,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
5.36
],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -2026,9 +2026,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -2039,9 +2039,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -2069,9 +2069,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
-3.66
],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -2094,9 +2094,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
5.36
],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -2363,9 +2363,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -2376,9 +2376,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -2406,9 +2406,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
-3.66
],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -2431,9 +2431,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
5.36
],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -3065,9 +3065,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
-6.39
],
"tag": {
"commentStart": 2090,
"end": 2111,
"start": 2090,
"commentStart": 2117,
"end": 2138,
"start": 2117,
"type": "TagDeclarator",
"value": "rectangleSegmentA002"
},
@ -3347,9 +3347,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -3360,9 +3360,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -3390,9 +3390,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
-3.66
],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -3415,9 +3415,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
5.36
],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -3825,9 +3825,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -3838,9 +3838,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},
@ -3868,9 +3868,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
-3.66
],
"tag": {
"commentStart": 120,
"end": 126,
"start": 120,
"commentStart": 123,
"end": 129,
"start": 123,
"type": "TagDeclarator",
"value": "seg02"
},
@ -3893,9 +3893,9 @@ description: Variables in memory after executing crazy_multi_profile.kcl
5.36
],
"tag": {
"commentStart": 165,
"end": 171,
"start": 165,
"commentStart": 168,
"end": 174,
"start": 168,
"type": "TagDeclarator",
"value": "seg01"
},

View File

@ -3,29 +3,29 @@ source: kcl-lib/src/simulation_tests.rs
description: Result of unparsing crazy_multi_profile.kcl
---
sketch001 = startSketchOn(XZ)
profile001 = startProfileAt([6.71, -3.66], sketch001)
profile001 = startProfile(sketch001, at = [6.71, -3.66])
|> line(end = [2.65, 9.02], tag = $seg02)
|> line(end = [3.73, -9.36], tag = $seg01)
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
extrude001 = extrude(profile001, length = 20)
sketch002 = startSketchOn(extrude001, face = seg01)
profile002 = startProfileAt([0.75, 13.46], sketch002)
profile002 = startProfile(sketch002, at = [0.75, 13.46])
|> line(end = [4.52, 3.79])
|> line(end = [5.98, -2.81])
profile003 = startProfileAt([3.19, 13.3], sketch002)
profile003 = startProfile(sketch002, at = [3.19, 13.3])
|> angledLine(angle = 0, length = 6.64, tag = $rectangleSegmentA001)
|> angledLine(angle = segAng(rectangleSegmentA001) - 90, length = 2.81)
|> angledLine(angle = segAng(rectangleSegmentA001), length = -segLen(rectangleSegmentA001))
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
profile004 = startProfileAt([3.15, 9.39], sketch002)
profile004 = startProfile(sketch002, at = [3.15, 9.39])
|> xLine(length = 6.92)
|> line(end = [-7.41, -2.85])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
profile005 = circle(sketch002, center = [5.15, 4.34], radius = 1.66)
profile006 = startProfileAt([9.65, 3.82], sketch002)
profile006 = startProfile(sketch002, at = [9.65, 3.82])
|> line(end = [2.38, 5.62])
|> line(end = [2.13, -5.57])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
@ -33,21 +33,21 @@ profile006 = startProfileAt([9.65, 3.82], sketch002)
revolve001 = revolve(profile004, angle = 45, axis = getNextAdjacentEdge(seg01))
extrude002 = extrude(profile006, length = 4)
sketch003 = startSketchOn(-XZ)
profile007 = startProfileAt([4.8, 7.55], sketch003)
profile007 = startProfile(sketch003, at = [4.8, 7.55])
|> line(end = [7.39, 2.58])
|> line(end = [7.02, -2.85])
profile008 = startProfileAt([5.54, 5.49], sketch003)
profile008 = startProfile(sketch003, at = [5.54, 5.49])
|> line(end = [6.34, 2.64])
|> line(end = [6.33, -2.96])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
profile009 = startProfileAt([5.23, 1.95], sketch003)
profile009 = startProfile(sketch003, at = [5.23, 1.95])
|> line(end = [6.8, 2.17])
|> line(end = [7.34, -2.75])
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|> close()
profile010 = circle(sketch003, center = [7.18, -2.11], radius = 2.67)
profile011 = startProfileAt([5.07, -6.39], sketch003)
profile011 = startProfile(sketch003, at = [5.07, -6.39])
|> angledLine(angle = 0, length = 4.54, tag = $rectangleSegmentA002)
|> angledLine(angle = segAng(rectangleSegmentA002) - 90, length = 4.17)
|> angledLine(angle = segAng(rectangleSegmentA002), length = -segLen(rectangleSegmentA002))

View File

@ -693,27 +693,30 @@ description: Result of parsing cube.kcl
{
"arguments": [
{
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "p0",
"name": "at",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
"arg": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "p0",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
}
}
],
"callee": {
@ -723,7 +726,7 @@ description: Result of parsing cube.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -734,8 +737,9 @@ description: Result of parsing cube.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -8,7 +8,7 @@ fn cube(sideLength, center) {
p3 = [l + x, -l + y]
return startSketchOn(XY)
|> startProfileAt(p0, %)
|> startProfile(at = p0)
|> line(endAbsolute = p1)
|> line(endAbsolute = p2)
|> line(endAbsolute = p3)

View File

@ -12,7 +12,7 @@ fn cube(sideLength, center) {
p3 = [l + x, -l + y]
return startSketchOn(XY)
|> startProfileAt(p0, %)
|> startProfile(at = p0)
|> line(endAbsolute = p1)
|> line(endAbsolute = p2)
|> line(endAbsolute = p3)

View File

@ -693,27 +693,30 @@ description: Result of parsing cube_with_error.kcl
{
"arguments": [
{
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "p0",
"name": "at",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
"arg": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "p0",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
}
}
],
"callee": {
@ -723,7 +726,7 @@ description: Result of parsing cube_with_error.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -734,8 +737,9 @@ description: Result of parsing cube_with_error.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -8,7 +8,7 @@ fn cube(length, center) {
p3 = [l + x, -l + y]
return startSketchOn(XY)
|> startProfileAt(p0, %)
|> startProfile(at = p0)
|> line(endAbsolute = p1)
|> line(endAbsolute = p2)
|> line(endAbsolute = p3)

View File

@ -12,7 +12,7 @@ fn cube(length, center) {
p3 = [l + x, -l + y]
return startSketchOn(XY)
|> startProfileAt(p0, %)
|> startProfile(at = p0)
|> line(endAbsolute = p1)
|> line(endAbsolute = p2)
|> line(endAbsolute = p3)

View File

@ -1,76 +1,76 @@
```mermaid
flowchart LR
subgraph path2 [Path]
2["Path<br>[396, 488, 0]"]
3["Segment<br>[494, 585, 0]"]
4["Segment<br>[591, 682, 0]"]
5["Segment<br>[688, 781, 0]"]
6["Segment<br>[787, 795, 0]"]
2["Path<br>[396, 467, 0]"]
3["Segment<br>[473, 564, 0]"]
4["Segment<br>[570, 661, 0]"]
5["Segment<br>[667, 760, 0]"]
6["Segment<br>[766, 774, 0]"]
7[Solid2d]
end
subgraph path9 [Path]
9["Path<br>[829, 854, 0]"]
10["Segment<br>[860, 908, 0]"]
11["Segment<br>[914, 971, 0]"]
12["Segment<br>[977, 1026, 0]"]
13["Segment<br>[1032, 1051, 0]"]
9["Path<br>[808, 833, 0]"]
10["Segment<br>[839, 887, 0]"]
11["Segment<br>[893, 950, 0]"]
12["Segment<br>[956, 1005, 0]"]
13["Segment<br>[1011, 1030, 0]"]
14[Solid2d]
end
subgraph path31 [Path]
31["Path<br>[1364, 1389, 0]"]
31["Path<br>[1343, 1368, 0]"]
end
subgraph path32 [Path]
32["Path<br>[1397, 1434, 0]"]
33["Segment<br>[1397, 1434, 0]"]
32["Path<br>[1376, 1413, 0]"]
33["Segment<br>[1376, 1413, 0]"]
34[Solid2d]
end
subgraph path35 [Path]
35["Path<br>[1447, 1485, 0]"]
36["Segment<br>[1447, 1485, 0]"]
35["Path<br>[1426, 1464, 0]"]
36["Segment<br>[1426, 1464, 0]"]
37[Solid2d]
end
subgraph path45 [Path]
45["Path<br>[1364, 1389, 0]"]
45["Path<br>[1343, 1368, 0]"]
end
subgraph path46 [Path]
46["Path<br>[1397, 1434, 0]"]
47["Segment<br>[1397, 1434, 0]"]
46["Path<br>[1376, 1413, 0]"]
47["Segment<br>[1376, 1413, 0]"]
48[Solid2d]
end
subgraph path49 [Path]
49["Path<br>[1447, 1485, 0]"]
50["Segment<br>[1447, 1485, 0]"]
49["Path<br>[1426, 1464, 0]"]
50["Segment<br>[1426, 1464, 0]"]
51[Solid2d]
end
subgraph path59 [Path]
59["Path<br>[1364, 1389, 0]"]
59["Path<br>[1343, 1368, 0]"]
end
subgraph path60 [Path]
60["Path<br>[1397, 1434, 0]"]
61["Segment<br>[1397, 1434, 0]"]
60["Path<br>[1376, 1413, 0]"]
61["Segment<br>[1376, 1413, 0]"]
62[Solid2d]
end
subgraph path63 [Path]
63["Path<br>[1447, 1485, 0]"]
64["Segment<br>[1447, 1485, 0]"]
63["Path<br>[1426, 1464, 0]"]
64["Segment<br>[1426, 1464, 0]"]
65[Solid2d]
end
subgraph path73 [Path]
73["Path<br>[1364, 1389, 0]"]
73["Path<br>[1343, 1368, 0]"]
end
subgraph path74 [Path]
74["Path<br>[1397, 1434, 0]"]
75["Segment<br>[1397, 1434, 0]"]
74["Path<br>[1376, 1413, 0]"]
75["Segment<br>[1376, 1413, 0]"]
76[Solid2d]
end
subgraph path77 [Path]
77["Path<br>[1447, 1485, 0]"]
78["Segment<br>[1447, 1485, 0]"]
77["Path<br>[1426, 1464, 0]"]
78["Segment<br>[1426, 1464, 0]"]
79[Solid2d]
end
1["Plane<br>[373, 390, 0]"]
8["Plane<br>[804, 823, 0]"]
15["Sweep Extrusion<br>[1057, 1085, 0]"]
8["Plane<br>[783, 802, 0]"]
15["Sweep Extrusion<br>[1036, 1064, 0]"]
16[Wall]
17[Wall]
18[Wall]
@ -85,38 +85,38 @@ flowchart LR
27["SweepEdge Adjacent"]
28["SweepEdge Opposite"]
29["SweepEdge Adjacent"]
30["Plane<br>[1337, 1356, 0]"]
38["Sweep Extrusion<br>[1497, 1521, 0]"]
30["Plane<br>[1316, 1335, 0]"]
38["Sweep Extrusion<br>[1476, 1500, 0]"]
39[Wall]
40["Cap Start"]
41["Cap End"]
42["SweepEdge Opposite"]
43["SweepEdge Adjacent"]
44["Plane<br>[1337, 1356, 0]"]
52["Sweep Extrusion<br>[1497, 1521, 0]"]
44["Plane<br>[1316, 1335, 0]"]
52["Sweep Extrusion<br>[1476, 1500, 0]"]
53[Wall]
54["Cap Start"]
55["Cap End"]
56["SweepEdge Opposite"]
57["SweepEdge Adjacent"]
58["Plane<br>[1337, 1356, 0]"]
66["Sweep Extrusion<br>[1497, 1521, 0]"]
58["Plane<br>[1316, 1335, 0]"]
66["Sweep Extrusion<br>[1476, 1500, 0]"]
67[Wall]
68["Cap Start"]
69["Cap End"]
70["SweepEdge Opposite"]
71["SweepEdge Adjacent"]
72["Plane<br>[1337, 1356, 0]"]
80["Sweep Extrusion<br>[1497, 1521, 0]"]
72["Plane<br>[1316, 1335, 0]"]
80["Sweep Extrusion<br>[1476, 1500, 0]"]
81[Wall]
82["Cap Start"]
83["Cap End"]
84["SweepEdge Opposite"]
85["SweepEdge Adjacent"]
86["EdgeCut Fillet<br>[1091, 1297, 0]"]
87["EdgeCut Fillet<br>[1091, 1297, 0]"]
88["EdgeCut Fillet<br>[1091, 1297, 0]"]
89["EdgeCut Fillet<br>[1091, 1297, 0]"]
86["EdgeCut Fillet<br>[1070, 1276, 0]"]
87["EdgeCut Fillet<br>[1070, 1276, 0]"]
88["EdgeCut Fillet<br>[1070, 1276, 0]"]
89["EdgeCut Fillet<br>[1070, 1276, 0]"]
1 --- 2
2 --- 3
2 --- 4

View File

@ -706,116 +706,119 @@ description: Result of parsing fillet-and-shell.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"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": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"left": {
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "border",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"operator": "+",
"right": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "miniHdmiDistance",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "-",
"right": {
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "miniHdmiWidth",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"operator": "/",
"right": {
"commentStart": 0,
"end": 0,
"raw": "2",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
},
{
"commentStart": 0,
"end": 0,
"left": {
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "border",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"operator": "+",
"right": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "miniHdmiDistance",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "-",
"right": {
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "miniHdmiWidth",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"operator": "/",
"right": {
"commentStart": 0,
"end": 0,
"raw": "2",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -825,7 +828,7 @@ description: Result of parsing fillet-and-shell.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -836,8 +839,9 @@ description: Result of parsing fillet-and-shell.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
@ -1356,44 +1360,47 @@ description: Result of parsing fillet-and-shell.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"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": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -1403,7 +1410,7 @@ description: Result of parsing fillet-and-shell.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -1414,8 +1421,9 @@ description: Result of parsing fillet-and-shell.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
@ -2092,44 +2100,47 @@ description: Result of parsing fillet-and-shell.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"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": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -2139,7 +2150,7 @@ description: Result of parsing fillet-and-shell.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -2150,8 +2161,9 @@ description: Result of parsing fillet-and-shell.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -23,10 +23,7 @@ microUsbWidth = 7.4
connectorPadding = 4
miniHdmiHole = startSketchOn(XY)
|> startProfileAt([
0,
border + miniHdmiDistance - (miniHdmiWidth / 2)
], %)
|> startProfile(at = [0, border + miniHdmiDistance - (miniHdmiWidth / 2)])
|> line(endAbsolute = [
0,
border + miniHdmiDistance + miniHdmiWidth / 2
@ -42,7 +39,7 @@ miniHdmiHole = startSketchOn(XY)
|> close(%)
case = startSketchOn('XY')
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(endAbsolute = [caseWidth, 0], tag = $edge1)
|> line(endAbsolute = [caseWidth, caseLength], tag = $edge2)
|> line(endAbsolute = [0, caseLength], tag = $edge3)
@ -60,7 +57,7 @@ case = startSketchOn('XY')
fn m25Screw(x, y, height) {
screw = startSketchOn("XY")
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> circle(center = [x, y], radius = 2.5)
|> hole(circle(center = [x, y], radius = 1.25), %)
|> extrude(length = height)

View File

@ -127,8 +127,8 @@ description: Operations executed fillet-and-shell.kcl
"type": "FunctionCall",
"name": "m25Screw",
"functionSourceRange": [
1310,
1538,
1289,
1517,
0
],
"unlabeledArg": null,
@ -218,8 +218,8 @@ description: Operations executed fillet-and-shell.kcl
"type": "FunctionCall",
"name": "m25Screw",
"functionSourceRange": [
1310,
1538,
1289,
1517,
0
],
"unlabeledArg": null,
@ -309,8 +309,8 @@ description: Operations executed fillet-and-shell.kcl
"type": "FunctionCall",
"name": "m25Screw",
"functionSourceRange": [
1310,
1538,
1289,
1517,
0
],
"unlabeledArg": null,
@ -400,8 +400,8 @@ description: Operations executed fillet-and-shell.kcl
"type": "FunctionCall",
"name": "m25Screw",
"functionSourceRange": [
1310,
1538,
1289,
1517,
0
],
"unlabeledArg": null,

View File

@ -28,9 +28,9 @@ description: Variables in memory after executing fillet-and-shell.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 901,
"end": 907,
"start": 901,
"commentStart": 880,
"end": 886,
"start": 880,
"type": "TagDeclarator",
"value": "edge1"
},
@ -41,9 +41,9 @@ description: Variables in memory after executing fillet-and-shell.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 964,
"end": 970,
"start": 964,
"commentStart": 943,
"end": 949,
"start": 943,
"type": "TagDeclarator",
"value": "edge2"
},
@ -54,9 +54,9 @@ description: Variables in memory after executing fillet-and-shell.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 1019,
"end": 1025,
"start": 1019,
"commentStart": 998,
"end": 1004,
"start": 998,
"type": "TagDeclarator",
"value": "edge3"
},
@ -67,9 +67,9 @@ description: Variables in memory after executing fillet-and-shell.kcl
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 1044,
"end": 1050,
"start": 1044,
"commentStart": 1023,
"end": 1029,
"start": 1023,
"type": "TagDeclarator",
"value": "edge4"
},
@ -90,9 +90,9 @@ description: Variables in memory after executing fillet-and-shell.kcl
0.0
],
"tag": {
"commentStart": 901,
"end": 907,
"start": 901,
"commentStart": 880,
"end": 886,
"start": 880,
"type": "TagDeclarator",
"value": "edge1"
},
@ -115,9 +115,9 @@ description: Variables in memory after executing fillet-and-shell.kcl
0.0
],
"tag": {
"commentStart": 964,
"end": 970,
"start": 964,
"commentStart": 943,
"end": 949,
"start": 943,
"type": "TagDeclarator",
"value": "edge2"
},
@ -140,9 +140,9 @@ description: Variables in memory after executing fillet-and-shell.kcl
73.0
],
"tag": {
"commentStart": 1019,
"end": 1025,
"start": 1019,
"commentStart": 998,
"end": 1004,
"start": 998,
"type": "TagDeclarator",
"value": "edge3"
},
@ -165,9 +165,9 @@ description: Variables in memory after executing fillet-and-shell.kcl
73.0
],
"tag": {
"commentStart": 1044,
"end": 1050,
"start": 1044,
"commentStart": 1023,
"end": 1029,
"start": 1023,
"type": "TagDeclarator",
"value": "edge4"
},

View File

@ -27,10 +27,10 @@ microUsbWidth = 7.4
connectorPadding = 4
miniHdmiHole = startSketchOn(XY)
|> startProfileAt([
|> startProfile(at = [
0,
border + miniHdmiDistance - (miniHdmiWidth / 2)
], %)
])
|> line(endAbsolute = [
0,
border + miniHdmiDistance + miniHdmiWidth / 2
@ -46,7 +46,7 @@ miniHdmiHole = startSketchOn(XY)
|> close(%)
case = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(endAbsolute = [caseWidth, 0], tag = $edge1)
|> line(endAbsolute = [caseWidth, caseLength], tag = $edge2)
|> line(endAbsolute = [0, caseLength], tag = $edge3)
@ -64,7 +64,7 @@ case = startSketchOn(XY)
fn m25Screw(x, y, height) {
screw = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> circle(center = [x, y], radius = 2.5)
|> hole(circle(center = [x, y], radius = 1.25), %)
|> extrude(length = height)

View File

@ -70,44 +70,47 @@ description: Result of parsing function_sketch.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"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": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -117,7 +120,7 @@ description: Result of parsing function_sketch.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -128,8 +131,9 @@ description: Result of parsing function_sketch.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -1,6 +1,6 @@
fn box(h, l, w) {
myBox = startSketchOn('XY')
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, l])
|> line(end = [w, 0])
|> line(end = [0, -l])

View File

@ -4,7 +4,7 @@ description: Result of unparsing function_sketch.kcl
---
fn box(h, l, w) {
myBox = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, l])
|> line(end = [w, 0])
|> line(end = [0, -l])

View File

@ -70,27 +70,30 @@ description: Result of parsing function_sketch_with_position.kcl
{
"arguments": [
{
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "p",
"name": "at",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
"arg": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "p",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
}
}
],
"callee": {
@ -100,7 +103,7 @@ description: Result of parsing function_sketch_with_position.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -111,8 +114,9 @@ description: Result of parsing function_sketch_with_position.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -1,6 +1,6 @@
fn box(p, h, l, w) {
myBox = startSketchOn('XY')
|> startProfileAt(p, %)
|> startProfile(at = p)
|> line(end = [0, l])
|> line(end = [w, 0])
|> line(end = [0, -l])

View File

@ -4,7 +4,7 @@ description: Result of unparsing function_sketch_with_position.kcl
---
fn box(p, h, l, w) {
myBox = startSketchOn(XY)
|> startProfileAt(p, %)
|> startProfile(at = p)
|> line(end = [0, l])
|> line(end = [w, 0])
|> line(end = [0, -l])

View File

@ -55,44 +55,47 @@ description: Result of parsing helix_simple.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"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": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -102,7 +105,7 @@ description: Result of parsing helix_simple.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -113,8 +116,9 @@ description: Result of parsing helix_simple.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -1,6 +1,6 @@
// Create a helix around an edge.
helper001 = startSketchOn('XZ')
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, 10], tag = $edge001)
helixPath = helix(

View File

@ -4,7 +4,7 @@ description: Result of unparsing helix_simple.kcl
---
// Create a helix around an edge.
helper001 = startSketchOn(XZ)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> line(end = [0, 10], tag = $edge001)
helixPath = helix(

View File

@ -396,48 +396,51 @@ description: Result of parsing i_shape.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": "corner_radius",
"name": {
"commentStart": 0,
"end": 0,
"name": "corner_radius",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name",
"type": "Name"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -447,7 +450,7 @@ description: Result of parsing i_shape.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -458,8 +461,9 @@ description: Result of parsing i_shape.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
@ -2885,44 +2889,47 @@ description: Result of parsing i_shape.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"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": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -2932,7 +2939,7 @@ description: Result of parsing i_shape.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -2943,8 +2950,9 @@ description: Result of parsing i_shape.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -8,7 +8,7 @@ corner_radius = 5.0
// but I measured intentionally to not be symmetric,
// because your wrist isn't a perfect cylindrical surface
brace_base = startSketchOn(XY)
|> startProfileAt([corner_radius, 0], %)
|> startProfile(at = [corner_radius, 0])
|> line(end = [width - corner_radius, 0.0])
|> tangentialArc(end = [corner_radius, corner_radius])
|> yLine(length = 25.0 - corner_radius)
@ -36,7 +36,7 @@ brace_base = startSketchOn(XY)
|> close(%)
inner = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> xLine(length = 1.0)
|> tangentialArc(end = [corner_radius, corner_radius])
|> yLine(length = 25.0 - (corner_radius * 2))

View File

@ -12,7 +12,7 @@ corner_radius = 5.0
// but I measured intentionally to not be symmetric,
// because your wrist isn't a perfect cylindrical surface
brace_base = startSketchOn(XY)
|> startProfileAt([corner_radius, 0], %)
|> startProfile(at = [corner_radius, 0])
|> line(end = [width - corner_radius, 0.0])
|> tangentialArc(end = [corner_radius, corner_radius])
|> yLine(length = 25.0 - corner_radius)
@ -40,7 +40,7 @@ brace_base = startSketchOn(XY)
|> close(%)
inner = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> startProfile(at = [0, 0])
|> xLine(length = 1.0)
|> tangentialArc(end = [corner_radius, corner_radius])
|> yLine(length = 25.0 - (corner_radius * 2))

View File

@ -214,13 +214,13 @@ flowchart LR
218[Solid2d]
end
subgraph path220 [Path]
220["Path<br>[2309, 2409, 0]"]
221["Segment<br>[2415, 2442, 0]"]
222["Segment<br>[2448, 2476, 0]"]
223["Segment<br>[2482, 2510, 0]"]
224["Segment<br>[2516, 2632, 0]"]
225["Segment<br>[2638, 2743, 0]"]
226["Segment<br>[2749, 2756, 0]"]
220["Path<br>[2309, 2388, 0]"]
221["Segment<br>[2394, 2421, 0]"]
222["Segment<br>[2427, 2455, 0]"]
223["Segment<br>[2461, 2489, 0]"]
224["Segment<br>[2495, 2611, 0]"]
225["Segment<br>[2617, 2722, 0]"]
226["Segment<br>[2728, 2735, 0]"]
227[Solid2d]
end
1["Plane<br>[168, 185, 0]"]
@ -233,7 +233,7 @@ flowchart LR
11["SweepEdge Adjacent"]
12["Plane<br>[1565, 1582, 0]"]
219["Sweep Extrusion<br>[1834, 1862, 0]"]
228["Sweep Extrusion<br>[2762, 2791, 0]"]
228["Sweep Extrusion<br>[2741, 2770, 0]"]
229[Wall]
230[Wall]
231[Wall]

View File

@ -3053,76 +3053,79 @@ description: Result of parsing import_async.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"computed": false,
"end": 0,
"object": {
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"computed": false,
"end": 0,
"name": "xs",
"object": {
"commentStart": 0,
"end": 0,
"name": "xs",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"commentStart": 0,
"end": 0,
"raw": "101",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 101.0,
"suffix": "None"
}
},
"start": 0,
"type": "Identifier",
"type": "Identifier"
"type": "MemberExpression",
"type": "MemberExpression"
},
"property": {
{
"commentStart": 0,
"computed": false,
"end": 0,
"raw": "101",
"object": {
"commentStart": 0,
"end": 0,
"name": "ys",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"commentStart": 0,
"end": 0,
"raw": "101",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 101.0,
"suffix": "None"
}
},
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 101.0,
"suffix": "None"
}
},
"start": 0,
"type": "MemberExpression",
"type": "MemberExpression"
},
{
"commentStart": 0,
"computed": false,
"end": 0,
"object": {
"commentStart": 0,
"end": 0,
"name": "ys",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"commentStart": 0,
"end": 0,
"raw": "101",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 101.0,
"suffix": "None"
}
},
"start": 0,
"type": "MemberExpression",
"type": "MemberExpression"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
"type": "MemberExpression",
"type": "MemberExpression"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -3132,7 +3135,7 @@ description: Result of parsing import_async.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -3143,8 +3146,9 @@ description: Result of parsing import_async.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"commentStart": 0,
@ -4121,148 +4125,151 @@ description: Result of parsing import_async.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "holeRadius",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"operator": "*",
"right": {
"arguments": [
{
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "startAngle",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
}
],
"callee": {
"left": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "cos",
"name": "holeRadius",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "holeRadius",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"operator": "*",
"right": {
"arguments": [
{
"operator": "*",
"right": {
"arguments": [
{
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "startAngle",
"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": "startAngle",
"name": "cos",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
}
],
"callee": {
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "sin",
"name": "holeRadius",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"commentStart": 0,
"end": 0,
"operator": "*",
"right": {
"arguments": [
{
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "startAngle",
"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": "sin",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
},
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -4272,7 +4279,7 @@ description: Result of parsing import_async.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -4283,8 +4290,9 @@ description: Result of parsing import_async.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -66,7 +66,7 @@ fn rightInvolute(i, sg) {
// Draw gear teeth
start = startSketchOn(XY)
|> startProfileAt([xs[101], ys[101]], %)
|> startProfile(at = [xs[101], ys[101]])
teeth = reduce([0..100], start, leftInvolute)
|> arc(
angleStart = 0,
@ -93,10 +93,7 @@ startAngle = asin(keywayWidth / 2 / holeRadius)
// Sketch the keyway and center hole and extrude
keyWay = startSketchOn(body, face = END)
|> startProfileAt([
holeRadius * cos(startAngle),
holeRadius * sin(startAngle)
], %)
|> startProfile(at = [holeRadius * cos(startAngle), holeRadius * sin(startAngle)])
|> xLine(length = keywayDepth)
|> yLine(length = -keywayWidth)
|> xLine(length = -keywayDepth)

File diff suppressed because it is too large Load Diff

View File

@ -69,7 +69,7 @@ fn rightInvolute(i, sg) {
// Draw gear teeth
start = startSketchOn(XY)
|> startProfileAt([xs[101], ys[101]], %)
|> startProfile(at = [xs[101], ys[101]])
teeth = reduce([0..100], start, leftInvolute)
|> arc(angleStart = 0, angleEnd = toothAngle, radius = baseDiameter / 2)
|> reduce([1..101], %, rightInvolute)
@ -92,10 +92,10 @@ startAngle = asin(keywayWidth / 2 / holeRadius)
// Sketch the keyway and center hole and extrude
keyWay = startSketchOn(body, face = END)
|> startProfileAt([
|> startProfile(at = [
holeRadius * cos(startAngle),
holeRadius * sin(startAngle)
], %)
])
|> xLine(length = keywayDepth)
|> yLine(length = -keywayWidth)
|> xLine(length = -keywayDepth)

View File

@ -1,7 +1,7 @@
@settings(defaultLengthUnit = mm)
export part001 = startSketchOn(XY)
|> startProfileAt([4, 12], %)
|> startProfile(at = [4, 12])
|> line(end = [2, 0])
|> line(end = [0, -6])
|> line(end = [4, -6])

View File

@ -5,7 +5,7 @@ description: Result of unparsing tests/import_function_not_sketch/my_functions.k
@settings(defaultLengthUnit = mm)
export part001 = startSketchOn(XY)
|> startProfileAt([4, 12], %)
|> startProfile(at = [4, 12])
|> line(end = [2, 0])
|> line(end = [0, -6])
|> line(end = [4, -6])

View File

@ -66,124 +66,127 @@ description: Result of parsing intersect_cubes.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"left": {
"commentStart": 0,
"computed": false,
"end": 0,
"object": {
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
"start": 0,
"type": "MemberExpression",
"type": "MemberExpression"
},
"operator": "-",
"right": {
"abs_path": false,
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"name": {
"left": {
"commentStart": 0,
"computed": false,
"end": 0,
"name": "size",
"object": {
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
"start": 0,
"type": "Identifier"
"type": "MemberExpression",
"type": "MemberExpression"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"commentStart": 0,
"end": 0,
"left": {
"commentStart": 0,
"computed": false,
"end": 0,
"object": {
"operator": "-",
"right": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": "center",
"name": {
"commentStart": 0,
"end": 0,
"name": "size",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"commentStart": 0,
"end": 0,
"raw": "1",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
"type": "Name",
"type": "Name"
},
"start": 0,
"type": "MemberExpression",
"type": "MemberExpression"
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "-",
"right": {
"abs_path": false,
{
"commentStart": 0,
"end": 0,
"name": {
"left": {
"commentStart": 0,
"computed": false,
"end": 0,
"object": {
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"commentStart": 0,
"end": 0,
"raw": "1",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
"start": 0,
"type": "MemberExpression",
"type": "MemberExpression"
},
"operator": "-",
"right": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": "size",
"name": {
"commentStart": 0,
"end": 0,
"name": "size",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name",
"type": "Name"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -193,7 +196,7 @@ description: Result of parsing intersect_cubes.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -204,8 +207,9 @@ description: Result of parsing intersect_cubes.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -1,6 +1,6 @@
fn cube(center, size) {
return startSketchOn(XY)
|> startProfileAt([center[0] - size, center[1] - size], %)
|> startProfile(at = [center[0] - size, center[1] - size])
|> line(endAbsolute = [center[0] + size, center[1] - size])
|> line(endAbsolute = [center[0] + size, center[1] + size])
|> line(endAbsolute = [center[0] - size, center[1] + size])

View File

@ -4,7 +4,7 @@ description: Result of unparsing intersect_cubes.kcl
---
fn cube(center, size) {
return startSketchOn(XY)
|> startProfileAt([center[0] - size, center[1] - size], %)
|> startProfile(at = [center[0] - size, center[1] - size])
|> line(endAbsolute = [center[0] + size, center[1] - size])
|> line(endAbsolute = [center[0] + size, center[1] + size])
|> line(endAbsolute = [center[0] - size, center[1] + size])

View File

@ -85,77 +85,18 @@ description: Result of parsing 80-20-rail.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"computed": false,
"end": 0,
"object": {
"commentStart": 0,
"end": 0,
"name": "originStart",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
"start": 0,
"type": "MemberExpression",
"type": "MemberExpression"
},
{
"commentStart": 0,
"end": 0,
"left": {
"commentStart": 0,
"end": 0,
"left": {
"commentStart": 0,
"end": 0,
"raw": "0.1",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.1,
"suffix": "None"
}
},
"operator": "*",
"right": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "railHeight",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "+",
"right": {
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"computed": false,
"end": 0,
@ -170,12 +111,12 @@ description: Result of parsing 80-20-rail.kcl
"property": {
"commentStart": 0,
"end": 0,
"raw": "1",
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"value": 0.0,
"suffix": "None"
}
},
@ -183,22 +124,84 @@ description: Result of parsing 80-20-rail.kcl
"type": "MemberExpression",
"type": "MemberExpression"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
{
"commentStart": 0,
"end": 0,
"left": {
"commentStart": 0,
"end": 0,
"left": {
"commentStart": 0,
"end": 0,
"raw": "0.1",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.1,
"suffix": "None"
}
},
"operator": "*",
"right": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "railHeight",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "+",
"right": {
"commentStart": 0,
"computed": false,
"end": 0,
"object": {
"commentStart": 0,
"end": 0,
"name": "originStart",
"start": 0,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"commentStart": 0,
"end": 0,
"raw": "1",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
"start": 0,
"type": "MemberExpression",
"type": "MemberExpression"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -208,7 +211,7 @@ description: Result of parsing 80-20-rail.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -219,8 +222,9 @@ description: Result of parsing 80-20-rail.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -64,47 +64,47 @@ flowchart LR
115[Solid2d]
end
subgraph path120 [Path]
120["Path<br>[3470, 3529, 6]"]
121["Segment<br>[3535, 3603, 6]"]
122["Segment<br>[3609, 3709, 6]"]
123["Segment<br>[3715, 3832, 6]"]
124["Segment<br>[3838, 3923, 6]"]
125["Segment<br>[3929, 3936, 6]"]
120["Path<br>[3470, 3532, 6]"]
121["Segment<br>[3538, 3606, 6]"]
122["Segment<br>[3612, 3712, 6]"]
123["Segment<br>[3718, 3835, 6]"]
124["Segment<br>[3841, 3926, 6]"]
125["Segment<br>[3932, 3939, 6]"]
126[Solid2d]
end
subgraph path127 [Path]
127["Path<br>[3947, 3998, 6]"]
128["Segment<br>[3947, 3998, 6]"]
127["Path<br>[3950, 4001, 6]"]
128["Segment<br>[3950, 4001, 6]"]
129[Solid2d]
end
subgraph path130 [Path]
130["Path<br>[4013, 4160, 6]"]
131["Segment<br>[4013, 4160, 6]"]
130["Path<br>[4016, 4163, 6]"]
131["Segment<br>[4016, 4163, 6]"]
132[Solid2d]
end
subgraph path133 [Path]
133["Path<br>[4175, 4323, 6]"]
134["Segment<br>[4175, 4323, 6]"]
133["Path<br>[4178, 4326, 6]"]
134["Segment<br>[4178, 4326, 6]"]
135[Solid2d]
end
subgraph path136 [Path]
136["Path<br>[4338, 4486, 6]"]
137["Segment<br>[4338, 4486, 6]"]
136["Path<br>[4341, 4489, 6]"]
137["Segment<br>[4341, 4489, 6]"]
138[Solid2d]
end
subgraph path139 [Path]
139["Path<br>[4501, 4650, 6]"]
140["Segment<br>[4501, 4650, 6]"]
139["Path<br>[4504, 4653, 6]"]
140["Segment<br>[4504, 4653, 6]"]
141[Solid2d]
end
subgraph path157 [Path]
157["Path<br>[4795, 4833, 6]"]
158["Segment<br>[4795, 4833, 6]"]
157["Path<br>[4798, 4836, 6]"]
158["Segment<br>[4798, 4836, 6]"]
159[Solid2d]
end
subgraph path165 [Path]
165["Path<br>[4906, 4942, 6]"]
166["Segment<br>[4906, 4942, 6]"]
165["Path<br>[4909, 4945, 6]"]
166["Segment<br>[4909, 4945, 6]"]
167[Solid2d]
end
subgraph path181 [Path]
@ -231,7 +231,7 @@ flowchart LR
117[Wall]
118["SweepEdge Opposite"]
119["SweepEdge Adjacent"]
142["Sweep Extrusion<br>[4660, 4679, 6]"]
142["Sweep Extrusion<br>[4663, 4682, 6]"]
143[Wall]
144[Wall]
145[Wall]
@ -246,23 +246,23 @@ flowchart LR
154["SweepEdge Adjacent"]
155["SweepEdge Opposite"]
156["SweepEdge Adjacent"]
160["Sweep Extrusion<br>[4839, 4859, 6]"]
160["Sweep Extrusion<br>[4842, 4862, 6]"]
161[Wall]
162["Cap End"]
163["SweepEdge Opposite"]
164["SweepEdge Adjacent"]
168["Sweep Extrusion<br>[4948, 4969, 6]"]
168["Sweep Extrusion<br>[4951, 4972, 6]"]
169[Wall]
170["SweepEdge Opposite"]
171["SweepEdge Adjacent"]
172["EdgeCut Fillet<br>[5010, 5521, 6]"]
173["EdgeCut Fillet<br>[5010, 5521, 6]"]
174["EdgeCut Fillet<br>[5010, 5521, 6]"]
175["EdgeCut Fillet<br>[5010, 5521, 6]"]
176["EdgeCut Fillet<br>[5010, 5521, 6]"]
177["EdgeCut Fillet<br>[5010, 5521, 6]"]
178["EdgeCut Fillet<br>[5010, 5521, 6]"]
179["EdgeCut Fillet<br>[5010, 5521, 6]"]
172["EdgeCut Fillet<br>[5013, 5524, 6]"]
173["EdgeCut Fillet<br>[5013, 5524, 6]"]
174["EdgeCut Fillet<br>[5013, 5524, 6]"]
175["EdgeCut Fillet<br>[5013, 5524, 6]"]
176["EdgeCut Fillet<br>[5013, 5524, 6]"]
177["EdgeCut Fillet<br>[5013, 5524, 6]"]
178["EdgeCut Fillet<br>[5013, 5524, 6]"]
179["EdgeCut Fillet<br>[5013, 5524, 6]"]
180["Plane<br>[204, 231, 7]"]
184["Sweep Extrusion<br>[333, 353, 7]"]
185[Wall]
@ -326,8 +326,8 @@ flowchart LR
278["StartSketchOnFace<br>[2498, 2541, 6]"]
279["StartSketchOnFace<br>[3197, 3234, 6]"]
280["StartSketchOnFace<br>[3421, 3458, 6]"]
281["StartSketchOnFace<br>[4746, 4789, 6]"]
282["StartSketchOnFace<br>[4861, 4900, 6]"]
281["StartSketchOnFace<br>[4749, 4792, 6]"]
282["StartSketchOnFace<br>[4864, 4903, 6]"]
283["StartSketchOnPlane<br>[244, 271, 7]"]
284["StartSketchOnPlane<br>[453, 496, 7]"]
285["StartSketchOnPlane<br>[1039, 1092, 8]"]

View File

@ -1138,8 +1138,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -1174,8 +1174,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -1210,8 +1210,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -1246,8 +1246,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -1282,8 +1282,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -1318,8 +1318,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -1354,8 +1354,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -1390,8 +1390,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -1426,8 +1426,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -1462,8 +1462,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -1498,8 +1498,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -1534,8 +1534,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -1633,8 +1633,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -1669,8 +1669,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -1705,8 +1705,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -1741,8 +1741,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -1777,8 +1777,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -1813,8 +1813,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -1849,8 +1849,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -1885,8 +1885,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -1921,8 +1921,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -1957,8 +1957,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -1993,8 +1993,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -2029,8 +2029,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -2128,8 +2128,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -2164,8 +2164,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -2200,8 +2200,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -2236,8 +2236,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -2272,8 +2272,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -2308,8 +2308,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -2344,8 +2344,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -2380,8 +2380,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -2416,8 +2416,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -2452,8 +2452,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -2488,8 +2488,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -2524,8 +2524,8 @@ description: Operations executed axial-fan.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,

View File

@ -1008,22 +1008,65 @@ description: Result of parsing ball-bearing.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"left": {
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"left": {
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "shaftDia",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"operator": "/",
"right": {
"commentStart": 0,
"end": 0,
"raw": "2",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "+",
"right": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "shaftDia",
"name": "wallThickness",
"start": 0,
"type": "Identifier"
},
@ -1032,68 +1075,28 @@ description: Result of parsing ball-bearing.kcl
"type": "Name",
"type": "Name"
},
"operator": "/",
"right": {
"commentStart": 0,
"end": 0,
"raw": "2",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "+",
"right": {
"abs_path": false,
{
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "wallThickness",
"start": 0,
"type": "Identifier"
},
"path": [],
"raw": "0.001",
"start": 0,
"type": "Name",
"type": "Name"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"commentStart": 0,
"end": 0,
"raw": "0.001",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.001,
"suffix": "None"
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.001,
"suffix": "None"
}
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -1103,7 +1106,7 @@ description: Result of parsing ball-bearing.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -1114,8 +1117,9 @@ description: Result of parsing ball-bearing.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
@ -1667,12 +1671,18 @@ description: Result of parsing ball-bearing.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"left": {
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"left": {
@ -1682,13 +1692,74 @@ description: Result of parsing ball-bearing.kcl
"commentStart": 0,
"end": 0,
"left": {
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "shaftDia",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"operator": "/",
"right": {
"commentStart": 0,
"end": 0,
"raw": "2",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "+",
"right": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "shaftDia",
"name": "wallThickness",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "+",
"right": {
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "sphereDia",
"start": 0,
"type": "Identifier"
},
@ -1714,28 +1785,11 @@ description: Result of parsing ball-bearing.kcl
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "+",
"right": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "wallThickness",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "+",
"operator": "-",
"right": {
"commentStart": 0,
"end": 0,
@ -1746,7 +1800,7 @@ description: Result of parsing ball-bearing.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "sphereDia",
"name": "chainWidth",
"start": 0,
"type": "Identifier"
},
@ -1776,139 +1830,92 @@ description: Result of parsing ball-bearing.kcl
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "-",
"right": {
{
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "chainWidth",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"operator": "/",
"right": {
"commentStart": 0,
"end": 0,
"raw": "2",
"raw": "0.125",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"value": 0.125,
"suffix": "None"
}
},
"operator": "*",
"right": {
"arguments": [
{
"arguments": [
{
"commentStart": 0,
"end": 0,
"raw": "60",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 60.0,
"suffix": "None"
}
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "toRadians",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "sin",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"commentStart": 0,
"end": 0,
"left": {
"commentStart": 0,
"end": 0,
"raw": "0.125",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.125,
"suffix": "None"
}
},
"operator": "*",
"right": {
"arguments": [
{
"arguments": [
{
"commentStart": 0,
"end": 0,
"raw": "60",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 60.0,
"suffix": "None"
}
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "toRadians",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "sin",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -1918,7 +1925,7 @@ description: Result of parsing ball-bearing.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -1929,8 +1936,9 @@ description: Result of parsing ball-bearing.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -382,8 +382,8 @@ description: Operations executed ball-bearing.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,

View File

@ -263,76 +263,79 @@ description: Result of parsing bottle.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"left": {
"argument": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"left": {
"argument": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": "bottleLength",
"name": {
"commentStart": 0,
"end": 0,
"name": "bottleLength",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name",
"type": "Name"
},
"path": [],
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "Name",
"type": "Name"
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"operator": "/",
"right": {
"commentStart": 0,
"end": 0,
"raw": "2",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "/",
"right": {
{
"commentStart": 0,
"end": 0,
"raw": "2",
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"value": 0.0,
"suffix": "None"
}
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -342,7 +345,7 @@ description: Result of parsing bottle.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -353,8 +356,9 @@ description: Result of parsing bottle.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -1275,44 +1275,47 @@ description: Result of parsing bracket.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"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": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -1322,7 +1325,7 @@ description: Result of parsing bracket.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -1333,8 +1336,9 @@ description: Result of parsing bracket.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -825,10 +825,42 @@ description: Result of parsing color-cube.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"argument": {
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"argument": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "halfSize",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
{
"abs_path": false,
"commentStart": 0,
"end": 0,
@ -843,42 +875,13 @@ description: Result of parsing color-cube.kcl
"start": 0,
"type": "Name",
"type": "Name"
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
{
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "halfSize",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -888,7 +891,7 @@ description: Result of parsing color-cube.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -899,8 +902,9 @@ description: Result of parsing color-cube.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -227,15 +227,130 @@ description: Result of parsing cycloidal-gear.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"left": {
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"left": {
"commentStart": 0,
"end": 0,
"left": {
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "gearPitch",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"operator": "*",
"right": {
"commentStart": 0,
"end": 0,
"raw": "1.55",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.55,
"suffix": "None"
}
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "*",
"right": {
"arguments": [
{
"arguments": [
{
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "helixAngleP",
"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": "toRadians",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "cos",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "+",
"right": {
"commentStart": 0,
"end": 0,
"left": {
@ -256,117 +371,133 @@ description: Result of parsing cycloidal-gear.kcl
},
"operator": "*",
"right": {
"commentStart": 0,
"end": 0,
"raw": "1.55",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.55,
"suffix": "None"
}
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "*",
"right": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"arguments": [
{
"argument": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "helixAngleP",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "helixAngleP",
"name": "toRadians",
"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": "toRadians",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"type": "CallExpression",
"type": "CallExpression"
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "sin",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
}
],
"callee": {
"abs_path": false,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "cos",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
"type": "CallExpression",
"type": "CallExpression"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "+",
"right": {
{
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"left": {
"commentStart": 0,
"end": 0,
"name": "gearPitch",
"left": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "gearPitch",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"operator": "*",
"right": {
"commentStart": 0,
"end": 0,
"raw": "1.55",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.55,
"suffix": "None"
}
},
"start": 0,
"type": "Identifier"
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"operator": "*",
"right": {
"arguments": [
{
"arguments": [
{
"argument": {
"operator": "*",
"right": {
"arguments": [
{
"arguments": [
{
"abs_path": false,
"commentStart": 0,
"end": 0,
@ -381,73 +512,57 @@ description: Result of parsing cycloidal-gear.kcl
"start": 0,
"type": "Name",
"type": "Name"
},
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"operator": "-",
"name": {
"commentStart": 0,
"end": 0,
"name": "toRadians",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"callee": {
"abs_path": false,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "toRadians",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"type": "CallExpression",
"type": "CallExpression"
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "sin",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
}
],
"callee": {
"abs_path": false,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "sin",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
"type": "CallExpression",
"type": "CallExpression"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"commentStart": 0,
"end": 0,
"left": {
"commentStart": 0,
"end": 0,
"left": {
"operator": "+",
"right": {
"commentStart": 0,
"end": 0,
"left": {
@ -468,203 +583,91 @@ description: Result of parsing cycloidal-gear.kcl
},
"operator": "*",
"right": {
"commentStart": 0,
"end": 0,
"raw": "1.55",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.55,
"suffix": "None"
}
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "*",
"right": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"arguments": [
{
"argument": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "helixAngleP",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "helixAngleP",
"name": "toRadians",
"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": "toRadians",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"type": "CallExpression",
"type": "CallExpression"
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "cos",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
}
],
"callee": {
"abs_path": false,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "sin",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
"type": "CallExpression",
"type": "CallExpression"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "+",
"right": {
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "gearPitch",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"operator": "*",
"right": {
"arguments": [
{
"arguments": [
{
"argument": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "helixAngleP",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "toRadians",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "cos",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -674,7 +677,7 @@ description: Result of parsing cycloidal-gear.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -685,8 +688,9 @@ description: Result of parsing cycloidal-gear.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -84,8 +84,8 @@ description: Operations executed cycloidal-gear.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -120,8 +120,8 @@ description: Operations executed cycloidal-gear.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -156,8 +156,8 @@ description: Operations executed cycloidal-gear.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -192,8 +192,8 @@ description: Operations executed cycloidal-gear.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -317,8 +317,8 @@ description: Operations executed cycloidal-gear.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -353,8 +353,8 @@ description: Operations executed cycloidal-gear.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -389,8 +389,8 @@ description: Operations executed cycloidal-gear.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -425,8 +425,8 @@ description: Operations executed cycloidal-gear.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -550,8 +550,8 @@ description: Operations executed cycloidal-gear.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -586,8 +586,8 @@ description: Operations executed cycloidal-gear.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -622,8 +622,8 @@ description: Operations executed cycloidal-gear.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -658,8 +658,8 @@ description: Operations executed cycloidal-gear.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,

View File

@ -113,108 +113,111 @@ description: Result of parsing dodecahedron.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"left": {
"argument": {
"commentStart": 0,
"end": 0,
"raw": "1000",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1000.0,
"suffix": "None"
}
},
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"left": {
"argument": {
"commentStart": 0,
"end": 0,
"raw": "1000",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1000.0,
"suffix": "None"
}
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"operator": "-",
"right": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"right": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": "dither",
"name": {
"commentStart": 0,
"end": 0,
"name": "dither",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name",
"type": "Name"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"commentStart": 0,
"end": 0,
"left": {
"argument": {
"commentStart": 0,
"end": 0,
"raw": "1000",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1000.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"left": {
"argument": {
"commentStart": 0,
"end": 0,
"raw": "1000",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1000.0,
"suffix": "None"
}
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"operator": "-",
"right": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"right": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": "dither",
"name": {
"commentStart": 0,
"end": 0,
"name": "dither",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name",
"type": "Name"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -224,7 +227,7 @@ description: Result of parsing dodecahedron.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -235,8 +238,9 @@ description: Result of parsing dodecahedron.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -1,119 +1,119 @@
```mermaid
flowchart LR
subgraph path2 [Path]
2["Path<br>[672, 706, 0]"]
3["Segment<br>[712, 744, 0]"]
4["Segment<br>[750, 782, 0]"]
5["Segment<br>[788, 821, 0]"]
6["Segment<br>[827, 883, 0]"]
7["Segment<br>[889, 896, 0]"]
2["Path<br>[672, 709, 0]"]
3["Segment<br>[715, 747, 0]"]
4["Segment<br>[753, 785, 0]"]
5["Segment<br>[791, 824, 0]"]
6["Segment<br>[830, 886, 0]"]
7["Segment<br>[892, 899, 0]"]
8[Solid2d]
end
subgraph path32 [Path]
32["Path<br>[1289, 1342, 0]"]
33["Segment<br>[1348, 1380, 0]"]
34["Segment<br>[1386, 1418, 0]"]
35["Segment<br>[1424, 1457, 0]"]
36["Segment<br>[1463, 1519, 0]"]
37["Segment<br>[1525, 1532, 0]"]
32["Path<br>[1292, 1348, 0]"]
33["Segment<br>[1354, 1386, 0]"]
34["Segment<br>[1392, 1424, 0]"]
35["Segment<br>[1430, 1463, 0]"]
36["Segment<br>[1469, 1525, 0]"]
37["Segment<br>[1531, 1538, 0]"]
38[Solid2d]
end
subgraph path59 [Path]
59["Path<br>[1797, 1850, 0]"]
60["Segment<br>[1856, 1888, 0]"]
61["Segment<br>[1894, 1926, 0]"]
62["Segment<br>[1932, 1965, 0]"]
63["Segment<br>[1971, 2027, 0]"]
64["Segment<br>[2033, 2040, 0]"]
59["Path<br>[1803, 1859, 0]"]
60["Segment<br>[1865, 1897, 0]"]
61["Segment<br>[1903, 1935, 0]"]
62["Segment<br>[1941, 1974, 0]"]
63["Segment<br>[1980, 2036, 0]"]
64["Segment<br>[2042, 2049, 0]"]
65[Solid2d]
end
subgraph path83 [Path]
83["Path<br>[2436, 2491, 0]"]
84["Segment<br>[2497, 2529, 0]"]
85["Segment<br>[2535, 2567, 0]"]
86["Segment<br>[2573, 2606, 0]"]
87["Segment<br>[2612, 2668, 0]"]
88["Segment<br>[2674, 2681, 0]"]
83["Path<br>[2445, 2503, 0]"]
84["Segment<br>[2509, 2541, 0]"]
85["Segment<br>[2547, 2579, 0]"]
86["Segment<br>[2585, 2618, 0]"]
87["Segment<br>[2624, 2680, 0]"]
88["Segment<br>[2686, 2693, 0]"]
89[Solid2d]
end
subgraph path111 [Path]
111["Path<br>[2983, 3021, 0]"]
112["Segment<br>[3027, 3059, 0]"]
113["Segment<br>[3065, 3091, 0]"]
114["Segment<br>[3097, 3130, 0]"]
115["Segment<br>[3136, 3192, 0]"]
116["Segment<br>[3198, 3205, 0]"]
111["Path<br>[2995, 3036, 0]"]
112["Segment<br>[3042, 3074, 0]"]
113["Segment<br>[3080, 3106, 0]"]
114["Segment<br>[3112, 3145, 0]"]
115["Segment<br>[3151, 3207, 0]"]
116["Segment<br>[3213, 3220, 0]"]
117[Solid2d]
end
subgraph path134 [Path]
134["Path<br>[3388, 3441, 0]"]
135["Segment<br>[3447, 3479, 0]"]
136["Segment<br>[3485, 3517, 0]"]
137["Segment<br>[3523, 3556, 0]"]
138["Segment<br>[3562, 3618, 0]"]
139["Segment<br>[3624, 3631, 0]"]
134["Path<br>[3403, 3459, 0]"]
135["Segment<br>[3465, 3497, 0]"]
136["Segment<br>[3503, 3535, 0]"]
137["Segment<br>[3541, 3574, 0]"]
138["Segment<br>[3580, 3636, 0]"]
139["Segment<br>[3642, 3649, 0]"]
140[Solid2d]
end
subgraph path158 [Path]
158["Path<br>[3859, 3896, 0]"]
159["Segment<br>[3902, 3928, 0]"]
160["Segment<br>[3934, 3960, 0]"]
161["Segment<br>[3966, 3993, 0]"]
162["Segment<br>[3999, 4055, 0]"]
163["Segment<br>[4061, 4068, 0]"]
158["Path<br>[3877, 3917, 0]"]
159["Segment<br>[3923, 3949, 0]"]
160["Segment<br>[3955, 3981, 0]"]
161["Segment<br>[3987, 4014, 0]"]
162["Segment<br>[4020, 4076, 0]"]
163["Segment<br>[4082, 4089, 0]"]
164[Solid2d]
end
subgraph path180 [Path]
180["Path<br>[4355, 4423, 0]"]
181["Segment<br>[4429, 4455, 0]"]
182["Segment<br>[4461, 4487, 0]"]
183["Segment<br>[4493, 4520, 0]"]
184["Segment<br>[4526, 4582, 0]"]
185["Segment<br>[4588, 4595, 0]"]
180["Path<br>[4376, 4447, 0]"]
181["Segment<br>[4453, 4479, 0]"]
182["Segment<br>[4485, 4511, 0]"]
183["Segment<br>[4517, 4544, 0]"]
184["Segment<br>[4550, 4606, 0]"]
185["Segment<br>[4612, 4619, 0]"]
186[Solid2d]
end
subgraph path202 [Path]
202["Path<br>[4789, 4910, 0]"]
203["Segment<br>[4916, 4965, 0]"]
204["Segment<br>[4971, 5019, 0]"]
205["Segment<br>[5025, 5073, 0]"]
206["Segment<br>[5079, 5135, 0]"]
207["Segment<br>[5141, 5148, 0]"]
202["Path<br>[4813, 4965, 0]"]
203["Segment<br>[4971, 5020, 0]"]
204["Segment<br>[5026, 5074, 0]"]
205["Segment<br>[5080, 5128, 0]"]
206["Segment<br>[5134, 5190, 0]"]
207["Segment<br>[5196, 5203, 0]"]
208[Solid2d]
end
subgraph path225 [Path]
225["Path<br>[5680, 5721, 0]"]
226["Segment<br>[5727, 5759, 0]"]
227["Segment<br>[5765, 5790, 0]"]
228["Segment<br>[5796, 5829, 0]"]
229["Segment<br>[5835, 5891, 0]"]
230["Segment<br>[5897, 5904, 0]"]
225["Path<br>[5735, 5779, 0]"]
226["Segment<br>[5785, 5817, 0]"]
227["Segment<br>[5823, 5848, 0]"]
228["Segment<br>[5854, 5887, 0]"]
229["Segment<br>[5893, 5949, 0]"]
230["Segment<br>[5955, 5962, 0]"]
231[Solid2d]
end
subgraph path252 [Path]
252["Path<br>[6191, 6232, 0]"]
253["Segment<br>[6238, 6264, 0]"]
254["Segment<br>[6270, 6302, 0]"]
255["Segment<br>[6308, 6335, 0]"]
256["Segment<br>[6341, 6397, 0]"]
257["Segment<br>[6403, 6410, 0]"]
252["Path<br>[6249, 6293, 0]"]
253["Segment<br>[6299, 6325, 0]"]
254["Segment<br>[6331, 6363, 0]"]
255["Segment<br>[6369, 6396, 0]"]
256["Segment<br>[6402, 6458, 0]"]
257["Segment<br>[6464, 6471, 0]"]
258[Solid2d]
end
subgraph path276 [Path]
276["Path<br>[6887, 6937, 0]"]
277["Segment<br>[6943, 6980, 0]"]
278["Segment<br>[6986, 7079, 0]"]
279["Segment<br>[7085, 7121, 0]"]
280["Segment<br>[7127, 7228, 0]"]
281["Segment<br>[7234, 7270, 0]"]
276["Path<br>[6948, 7001, 0]"]
277["Segment<br>[7007, 7044, 0]"]
278["Segment<br>[7050, 7143, 0]"]
279["Segment<br>[7149, 7185, 0]"]
280["Segment<br>[7191, 7292, 0]"]
281["Segment<br>[7298, 7334, 0]"]
end
subgraph path283 [Path]
283["Path<br>[7333, 7444, 0]"]
284["Segment<br>[7333, 7444, 0]"]
283["Path<br>[7397, 7508, 0]"]
284["Segment<br>[7397, 7508, 0]"]
285[Solid2d]
end
1["Plane<br>[565, 582, 0]"]
9["Sweep Extrusion<br>[1057, 1084, 0]"]
9["Sweep Extrusion<br>[1060, 1087, 0]"]
10[Wall]
11[Wall]
12[Wall]
@ -128,15 +128,15 @@ flowchart LR
21["SweepEdge Adjacent"]
22["SweepEdge Opposite"]
23["SweepEdge Adjacent"]
24["Sweep Extrusion<br>[1057, 1084, 0]"]
25["Sweep Extrusion<br>[1057, 1084, 0]"]
26["Sweep Extrusion<br>[1057, 1084, 0]"]
27["Sweep Extrusion<br>[1057, 1084, 0]"]
28["Sweep Extrusion<br>[1057, 1084, 0]"]
29["Sweep Extrusion<br>[1057, 1084, 0]"]
30["Sweep Extrusion<br>[1057, 1084, 0]"]
31["Plane<br>[1216, 1270, 0]"]
39["Sweep Extrusion<br>[1695, 1729, 0]"]
24["Sweep Extrusion<br>[1060, 1087, 0]"]
25["Sweep Extrusion<br>[1060, 1087, 0]"]
26["Sweep Extrusion<br>[1060, 1087, 0]"]
27["Sweep Extrusion<br>[1060, 1087, 0]"]
28["Sweep Extrusion<br>[1060, 1087, 0]"]
29["Sweep Extrusion<br>[1060, 1087, 0]"]
30["Sweep Extrusion<br>[1060, 1087, 0]"]
31["Plane<br>[1219, 1273, 0]"]
39["Sweep Extrusion<br>[1701, 1735, 0]"]
40[Wall]
41[Wall]
42[Wall]
@ -151,12 +151,12 @@ flowchart LR
51["SweepEdge Adjacent"]
52["SweepEdge Opposite"]
53["SweepEdge Adjacent"]
54["Sweep Extrusion<br>[1695, 1729, 0]"]
55["Sweep Extrusion<br>[1695, 1729, 0]"]
56["Sweep Extrusion<br>[1695, 1729, 0]"]
57["Sweep Extrusion<br>[1695, 1729, 0]"]
58["Sweep Extrusion<br>[1695, 1729, 0]"]
66["Sweep Extrusion<br>[2139, 2173, 0]"]
54["Sweep Extrusion<br>[1701, 1735, 0]"]
55["Sweep Extrusion<br>[1701, 1735, 0]"]
56["Sweep Extrusion<br>[1701, 1735, 0]"]
57["Sweep Extrusion<br>[1701, 1735, 0]"]
58["Sweep Extrusion<br>[1701, 1735, 0]"]
66["Sweep Extrusion<br>[2148, 2182, 0]"]
67[Wall]
68[Wall]
69[Wall]
@ -171,9 +171,9 @@ flowchart LR
78["SweepEdge Adjacent"]
79["SweepEdge Opposite"]
80["SweepEdge Adjacent"]
81["Sweep Extrusion<br>[2139, 2173, 0]"]
82["Plane<br>[2290, 2341, 0]"]
90["Sweep Extrusion<br>[2844, 2879, 0]"]
81["Sweep Extrusion<br>[2148, 2182, 0]"]
82["Plane<br>[2299, 2350, 0]"]
90["Sweep Extrusion<br>[2856, 2891, 0]"]
91[Wall]
92[Wall]
93[Wall]
@ -188,13 +188,13 @@ flowchart LR
102["SweepEdge Adjacent"]
103["SweepEdge Opposite"]
104["SweepEdge Adjacent"]
105["Sweep Extrusion<br>[2844, 2879, 0]"]
106["Sweep Extrusion<br>[2844, 2879, 0]"]
107["Sweep Extrusion<br>[2844, 2879, 0]"]
108["Sweep Extrusion<br>[2844, 2879, 0]"]
109["Sweep Extrusion<br>[2844, 2879, 0]"]
110["Plane<br>[2926, 2963, 0]"]
118["Sweep Extrusion<br>[3285, 3320, 0]"]
105["Sweep Extrusion<br>[2856, 2891, 0]"]
106["Sweep Extrusion<br>[2856, 2891, 0]"]
107["Sweep Extrusion<br>[2856, 2891, 0]"]
108["Sweep Extrusion<br>[2856, 2891, 0]"]
109["Sweep Extrusion<br>[2856, 2891, 0]"]
110["Plane<br>[2938, 2975, 0]"]
118["Sweep Extrusion<br>[3300, 3335, 0]"]
119[Wall]
120[Wall]
121[Wall]
@ -209,8 +209,8 @@ flowchart LR
130["SweepEdge Adjacent"]
131["SweepEdge Opposite"]
132["SweepEdge Adjacent"]
133["Sweep Extrusion<br>[3285, 3320, 0]"]
141["Sweep Extrusion<br>[3730, 3765, 0]"]
133["Sweep Extrusion<br>[3300, 3335, 0]"]
141["Sweep Extrusion<br>[3748, 3783, 0]"]
142[Wall]
143[Wall]
144[Wall]
@ -225,9 +225,9 @@ flowchart LR
153["SweepEdge Adjacent"]
154["SweepEdge Opposite"]
155["SweepEdge Adjacent"]
156["Sweep Extrusion<br>[3730, 3765, 0]"]
157["Plane<br>[3805, 3842, 0]"]
165["Sweep Extrusion<br>[4074, 4107, 0]"]
156["Sweep Extrusion<br>[3748, 3783, 0]"]
157["Plane<br>[3823, 3860, 0]"]
165["Sweep Extrusion<br>[4095, 4128, 0]"]
166[Wall]
167[Wall]
168[Wall]
@ -242,7 +242,7 @@ flowchart LR
177["SweepEdge Adjacent"]
178["SweepEdge Opposite"]
179["SweepEdge Adjacent"]
187["Sweep Extrusion<br>[4685, 4712, 0]"]
187["Sweep Extrusion<br>[4709, 4736, 0]"]
188[Wall]
189[Wall]
190[Wall]
@ -256,8 +256,8 @@ flowchart LR
198["SweepEdge Adjacent"]
199["SweepEdge Opposite"]
200["SweepEdge Adjacent"]
201["Sweep Extrusion<br>[4685, 4712, 0]"]
209["Sweep Extrusion<br>[5237, 5265, 0]"]
201["Sweep Extrusion<br>[4709, 4736, 0]"]
209["Sweep Extrusion<br>[5292, 5320, 0]"]
210[Wall]
211[Wall]
212[Wall]
@ -271,9 +271,9 @@ flowchart LR
220["SweepEdge Adjacent"]
221["SweepEdge Opposite"]
222["SweepEdge Adjacent"]
223["Sweep Extrusion<br>[5237, 5265, 0]"]
224["Plane<br>[5618, 5667, 0]"]
232["Sweep Extrusion<br>[6003, 6031, 0]"]
223["Sweep Extrusion<br>[5292, 5320, 0]"]
224["Plane<br>[5673, 5722, 0]"]
232["Sweep Extrusion<br>[6061, 6089, 0]"]
233[Wall]
234[Wall]
235[Wall]
@ -288,12 +288,12 @@ flowchart LR
244["SweepEdge Adjacent"]
245["SweepEdge Opposite"]
246["SweepEdge Adjacent"]
247["Sweep Extrusion<br>[6003, 6031, 0]"]
248["Sweep Extrusion<br>[6003, 6031, 0]"]
249["Sweep Extrusion<br>[6003, 6031, 0]"]
250["Sweep Extrusion<br>[6003, 6031, 0]"]
251["Sweep Extrusion<br>[6003, 6031, 0]"]
259["Sweep Extrusion<br>[6492, 6520, 0]"]
247["Sweep Extrusion<br>[6061, 6089, 0]"]
248["Sweep Extrusion<br>[6061, 6089, 0]"]
249["Sweep Extrusion<br>[6061, 6089, 0]"]
250["Sweep Extrusion<br>[6061, 6089, 0]"]
251["Sweep Extrusion<br>[6061, 6089, 0]"]
259["Sweep Extrusion<br>[6553, 6581, 0]"]
260[Wall]
261[Wall]
262[Wall]
@ -308,23 +308,23 @@ flowchart LR
271["SweepEdge Adjacent"]
272["SweepEdge Opposite"]
273["SweepEdge Adjacent"]
274["Sweep Extrusion<br>[6492, 6520, 0]"]
275["Plane<br>[6813, 6864, 0]"]
282["Plane<br>[7292, 7309, 0]"]
286["Sweep Sweep<br>[7458, 7511, 0]"]
274["Sweep Extrusion<br>[6553, 6581, 0]"]
275["Plane<br>[6874, 6925, 0]"]
282["Plane<br>[7356, 7373, 0]"]
286["Sweep Sweep<br>[7522, 7575, 0]"]
287[Wall]
288["Cap Start"]
289["Cap Start"]
290["SweepEdge Opposite"]
291["SweepEdge Adjacent"]
292["StartSketchOnPlane<br>[1202, 1271, 0]"]
293["StartSketchOnPlane<br>[2276, 2342, 0]"]
294["StartSketchOnPlane<br>[2912, 2964, 0]"]
295["StartSketchOnPlane<br>[3791, 3843, 0]"]
296["StartSketchOnFace<br>[4295, 4336, 0]"]
297["StartSketchOnFace<br>[4732, 4771, 0]"]
298["StartSketchOnPlane<br>[5604, 5668, 0]"]
299["StartSketchOnPlane<br>[6799, 6865, 0]"]
292["StartSketchOnPlane<br>[1205, 1274, 0]"]
293["StartSketchOnPlane<br>[2285, 2351, 0]"]
294["StartSketchOnPlane<br>[2924, 2976, 0]"]
295["StartSketchOnPlane<br>[3809, 3861, 0]"]
296["StartSketchOnFace<br>[4316, 4357, 0]"]
297["StartSketchOnFace<br>[4756, 4795, 0]"]
298["StartSketchOnPlane<br>[5659, 5723, 0]"]
299["StartSketchOnPlane<br>[6860, 6926, 0]"]
1 --- 2
2 --- 3
2 --- 4

File diff suppressed because it is too large Load Diff

View File

@ -230,44 +230,47 @@ description: Result of parsing enclosure.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"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": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -277,7 +280,7 @@ description: Result of parsing enclosure.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -288,8 +291,9 @@ description: Result of parsing enclosure.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
@ -2949,68 +2953,71 @@ description: Result of parsing enclosure.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"name": {
"left": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": "width",
"name": {
"commentStart": 0,
"end": 0,
"name": "width",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name",
"type": "Name"
},
"operator": "*",
"right": {
"commentStart": 0,
"end": 0,
"raw": "1.2",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.2,
"suffix": "None"
}
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "*",
"right": {
{
"commentStart": 0,
"end": 0,
"raw": "1.2",
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.2,
"value": 0.0,
"suffix": "None"
}
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -3020,7 +3027,7 @@ description: Result of parsing enclosure.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -3031,8 +3038,9 @@ description: Result of parsing enclosure.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
@ -5138,22 +5146,65 @@ description: Result of parsing enclosure.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"left": {
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"left": {
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "width",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"operator": "*",
"right": {
"commentStart": 0,
"end": 0,
"raw": "1.2",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.2,
"suffix": "None"
}
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "+",
"right": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "width",
"name": "wallThickness",
"start": 0,
"type": "Identifier"
},
@ -5162,25 +5213,11 @@ description: Result of parsing enclosure.kcl
"type": "Name",
"type": "Name"
},
"operator": "*",
"right": {
"commentStart": 0,
"end": 0,
"raw": "1.2",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.2,
"suffix": "None"
}
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "+",
"right": {
{
"abs_path": false,
"commentStart": 0,
"end": 0,
@ -5195,39 +5232,13 @@ description: Result of parsing enclosure.kcl
"start": 0,
"type": "Name",
"type": "Name"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "wallThickness",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -5237,7 +5248,7 @@ description: Result of parsing enclosure.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -5248,8 +5259,9 @@ description: Result of parsing enclosure.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -663,48 +663,51 @@ description: Result of parsing exhaust-manifold.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"name": "plateHeight",
"raw": "0",
"start": 0,
"type": "Identifier"
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
{
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "plateHeight",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -714,7 +717,7 @@ description: Result of parsing exhaust-manifold.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -725,8 +728,9 @@ description: Result of parsing exhaust-manifold.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
@ -2177,72 +2181,75 @@ description: Result of parsing exhaust-manifold.kcl
{
"arguments": [
{
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"left": {
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "3",
"left": {
"commentStart": 0,
"end": 0,
"raw": "3",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 3.0,
"suffix": "None"
}
},
"operator": "+",
"right": {
"commentStart": 0,
"end": 0,
"raw": "1.3",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.3,
"suffix": "None"
}
},
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 3.0,
"suffix": "None"
}
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "+",
"right": {
{
"argument": {
"commentStart": 0,
"end": 0,
"raw": "1.25",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.25,
"suffix": "None"
}
},
"commentStart": 0,
"end": 0,
"raw": "1.3",
"operator": "-",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.3,
"suffix": "None"
}
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"argument": {
"commentStart": 0,
"end": 0,
"raw": "1.25",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.25,
"suffix": "None"
}
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
@ -2252,7 +2259,7 @@ description: Result of parsing exhaust-manifold.kcl
"name": {
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"name": "startProfile",
"start": 0,
"type": "Identifier"
},
@ -2263,8 +2270,9 @@ description: Result of parsing exhaust-manifold.kcl
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [

View File

@ -24,8 +24,8 @@ description: Operations executed exhaust-manifold.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -60,8 +60,8 @@ description: Operations executed exhaust-manifold.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -362,8 +362,8 @@ description: Operations executed exhaust-manifold.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -398,8 +398,8 @@ description: Operations executed exhaust-manifold.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -700,8 +700,8 @@ description: Operations executed exhaust-manifold.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -736,8 +736,8 @@ description: Operations executed exhaust-manifold.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -1038,8 +1038,8 @@ description: Operations executed exhaust-manifold.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,
@ -1074,8 +1074,8 @@ description: Operations executed exhaust-manifold.kcl
"type": "FunctionCall",
"name": "toRadians",
"functionSourceRange": [
11497,
11546,
11503,
11552,
1
],
"unlabeledArg": null,

Some files were not shown because too many files have changed in this diff Show More