Remove start sketch at (#5586)
* remove start sketch at Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
File diff suppressed because one or more lines are too long
1710
docs/kcl/std.json
1710
docs/kcl/std.json
File diff suppressed because it is too large
Load Diff
@ -20,7 +20,8 @@ test.describe('Regression tests', { tag: ['@skipWin'] }, () => {
|
||||
localStorage.setItem(
|
||||
'persistCode',
|
||||
`sketch2 = startSketchOn("XY")
|
||||
sketch001 = startSketchAt([-0, -0])
|
||||
sketch001 = startSketchOn("XY")
|
||||
|> startProfileAt([-0, -0], %)
|
||||
|> line(end = [0, 0])
|
||||
|> line(end = [-4.84, -5.29])
|
||||
|> line(endAbsolute = [profileStartX(%), profileStartY(%)])
|
||||
|
@ -7,7 +7,8 @@ fn cube(length, center) {
|
||||
p2 = [ l + x, l + y]
|
||||
p3 = [ l + x, -l + y]
|
||||
|
||||
return startSketchAt(p0)
|
||||
return startSketchOn(XY)
|
||||
|> startProfileAt(p0, %)
|
||||
|> line(endAbsolute = p1)
|
||||
|> line(endAbsolute = p2)
|
||||
|> line(endAbsolute = p3)
|
||||
|
@ -1,31 +1,32 @@
|
||||
const rpizWidth = 30
|
||||
const rpizLength = 65
|
||||
rpizWidth = 30
|
||||
rpizLength = 65
|
||||
|
||||
const caseThickness = 1
|
||||
caseThickness = 1
|
||||
|
||||
const border = 4
|
||||
border = 4
|
||||
|
||||
const screwHeight = 4
|
||||
screwHeight = 4
|
||||
|
||||
const caseWidth = rpizWidth + border * 2
|
||||
const caseLength = rpizLength + border * 2
|
||||
const caseHeight = 8
|
||||
caseWidth = rpizWidth + border * 2
|
||||
caseLength = rpizLength + border * 2
|
||||
caseHeight = 8
|
||||
|
||||
const widthBetweenScrews = 23
|
||||
const lengthBetweenScrews = 29 * 2
|
||||
widthBetweenScrews = 23
|
||||
lengthBetweenScrews = 29 * 2
|
||||
|
||||
const miniHdmiDistance = 12.4
|
||||
const microUsb1Distance = 41.4
|
||||
const microUsb2Distance = 54
|
||||
miniHdmiDistance = 12.4
|
||||
microUsb1Distance = 41.4
|
||||
microUsb2Distance = 54
|
||||
|
||||
const miniHdmiWidth = 11.2
|
||||
const microUsbWidth = 7.4
|
||||
const connectorPadding = 4
|
||||
miniHdmiWidth = 11.2
|
||||
microUsbWidth = 7.4
|
||||
connectorPadding = 4
|
||||
|
||||
const miniHdmiHole = startSketchAt([
|
||||
miniHdmiHole = startSketchOn(XY)
|
||||
|> startProfileAt([
|
||||
0,
|
||||
border + miniHdmiDistance - (miniHdmiWidth / 2)
|
||||
])
|
||||
], %)
|
||||
|> lineTo([
|
||||
0,
|
||||
border + miniHdmiDistance + miniHdmiWidth / 2
|
||||
@ -40,7 +41,7 @@ const miniHdmiHole = startSketchAt([
|
||||
], %)
|
||||
|> close()
|
||||
|
||||
const case = startSketchOn('XY')
|
||||
case = startSketchOn('XY')
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line(endAbsolute = [caseWidth, 0], $edge1)
|
||||
|> line(endAbsolute = [caseWidth, caseLength], $edge2)
|
||||
@ -59,7 +60,7 @@ const case = startSketchOn('XY')
|
||||
|
||||
|
||||
fn m25Screw = (x, y, height) => {
|
||||
const screw = startSketchOn("XY")
|
||||
screw = startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> circle(center= [x, y], radius=2.5)
|
||||
|> hole(circle(center= [x, y], radius = 1.25), %)
|
||||
|
@ -7,7 +7,8 @@ let corner_radius = 5.0
|
||||
// At first I thought this was going to be symmetric,
|
||||
// but I measured intentionally to not be symmetric,
|
||||
// because your wrist isn't a perfect cylindrical surface
|
||||
let brace_base = startSketchAt([corner_radius, 0])
|
||||
let brace_base = startSketchOn(XY)
|
||||
|> startProfileAt([corner_radius, 0], %)
|
||||
|> line(end = [width - corner_radius, 0.0])
|
||||
|> tangentialArcToRelative([corner_radius, corner_radius], %)
|
||||
|> yLine(25.0 - corner_radius, %)
|
||||
@ -34,7 +35,8 @@ let brace_base = startSketchAt([corner_radius, 0])
|
||||
|> tangentialArcToRelative([corner_radius, -corner_radius], %)
|
||||
|> close()
|
||||
|
||||
let inner = startSketchAt([0, 0])
|
||||
let inner = startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> xLine(1.0, %)
|
||||
|> tangentialArcToRelative([corner_radius, corner_radius], %)
|
||||
|> yLine(25.0 - (corner_radius * 2), %)
|
||||
|
@ -100,6 +100,8 @@ fn F = (state, F) => {
|
||||
}
|
||||
|
||||
fn LSystem = (args, axioms) => {
|
||||
myThing = startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)
|
||||
return axioms({
|
||||
depthMax: args.iterations,
|
||||
depth: 0,
|
||||
@ -107,7 +109,7 @@ fn LSystem = (args, axioms) => {
|
||||
factor: args.factor,
|
||||
currentAngle: 0,
|
||||
angle: args.angle,
|
||||
q: startSketchAt([0, 0]),
|
||||
q = myThing,
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,8 @@ const filletR = thickness * 2
|
||||
const shelfMountL = 9
|
||||
const wallMountL = 8
|
||||
|
||||
const bracket = startSketchAt([0, 0])
|
||||
const bracket = startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line(end = [0, wallMountL])
|
||||
|> tangentialArc({
|
||||
radius: filletR,
|
||||
|
@ -7,7 +7,8 @@ fn cube = (length, center) => {
|
||||
let p2 = [ l + x, l + y]
|
||||
let p3 = [ l + x, -l + y]
|
||||
|
||||
return startSketchAt(p0)
|
||||
return startSketchOn(XY)
|
||||
|> startProfileAt(p0, %)
|
||||
|> line(endAbsolute = p1)
|
||||
|> line(endAbsolute = p2)
|
||||
|> line(endAbsolute = p3)
|
||||
|
@ -1,4 +1,5 @@
|
||||
const boxSketch = startSketchAt([0, 0])
|
||||
const boxSketch = startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line(end = [0, 10])
|
||||
|> tangentialArc({radius: 5, offset: 90}, %)
|
||||
|> line(end = [5, -15])
|
||||
|
@ -153,7 +153,8 @@ async fn kcl_test_negative_args() {
|
||||
|
||||
#[tokio::test(flavor = "multi_thread")]
|
||||
async fn kcl_test_basic_tangential_arc_with_point() {
|
||||
let code = r#"boxSketch = startSketchAt([0, 0])
|
||||
let code = r#"boxSketch = startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line(end = [0, 10])
|
||||
|> tangentialArcToRelative([-5, 5], %)
|
||||
|> line(end = [5, -15])
|
||||
@ -166,7 +167,8 @@ async fn kcl_test_basic_tangential_arc_with_point() {
|
||||
|
||||
#[tokio::test(flavor = "multi_thread")]
|
||||
async fn kcl_test_basic_tangential_arc_to() {
|
||||
let code = r#"boxSketch = startSketchAt([0, 0])
|
||||
let code = r#"boxSketch = startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line(end = [0, 10])
|
||||
|> tangentialArcTo([-5, 15], %)
|
||||
|> line(end = [5, -15])
|
||||
|
@ -2979,7 +2979,8 @@ comment */
|
||||
let test_program = r#"
|
||||
/* comment at start */
|
||||
|
||||
mySk1 = startSketchAt([0, 0])"#;
|
||||
mySk1 = startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)"#;
|
||||
let tokens = crate::parsing::token::lex(test_program, ModuleId::default()).unwrap();
|
||||
let program = program.parse(tokens.as_slice()).unwrap();
|
||||
let mut starting_comments = program.inner.non_code_meta.start_nodes;
|
||||
@ -3571,7 +3572,8 @@ mySk1 = startSketchAt([0, 0])"#;
|
||||
|
||||
#[test]
|
||||
fn pipes_on_pipes_minimal() {
|
||||
let test_program = r#"startSketchAt([0, 0])
|
||||
let test_program = r#"startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line(endAbsolute = [0, -0]) // MoveRelative
|
||||
|
||||
"#;
|
||||
@ -4704,7 +4706,8 @@ mod snapshot_tests {
|
||||
|
||||
snapshot_test!(
|
||||
a,
|
||||
r#"boxSketch = startSketchAt([0, 0])
|
||||
r#"boxSketch = startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line([0, 10], %)
|
||||
|> tangentialArc([-5, 5], %)
|
||||
|> line([5, -15], %)
|
||||
@ -4770,8 +4773,12 @@ mod snapshot_tests {
|
||||
snapshot_test!(v, r#"pt1 = b1[0]"#);
|
||||
snapshot_test!(w, r#"pt1 = b1['zero']"#);
|
||||
snapshot_test!(x, r#"pt1 = b1.zero"#);
|
||||
snapshot_test!(y, "sg = startSketchAt(pos)");
|
||||
snapshot_test!(z, "sg = startSketchAt(pos) |> line([0, -scale], %)");
|
||||
snapshot_test!(y, r#"sg = startSketchOn(XY) |> startProfileAt(pos, %)"#);
|
||||
snapshot_test!(
|
||||
z,
|
||||
"sg = startSketchOn(XY)
|
||||
|> startProfileAt(pos) |> line([0, -scale], %)"
|
||||
);
|
||||
snapshot_test!(aa, r#"sg = -scale"#);
|
||||
snapshot_test!(ab, "line(endAbsolute = [0, -1])");
|
||||
snapshot_test!(ac, "myArray = [0..10]");
|
||||
@ -4792,7 +4799,8 @@ mod snapshot_tests {
|
||||
);
|
||||
snapshot_test!(
|
||||
af,
|
||||
r#"mySketch = startSketchAt([0,0])
|
||||
r#"mySketch = startSketchOn(XY)
|
||||
|> startProfileAt([0,0], %)
|
||||
|> line(endAbsolute = [0, 1], tag = $myPath)
|
||||
|> line(endAbsolute = [1, 1])
|
||||
|> line(endAbsolute = [1, 0], tag = $rightPath)
|
||||
@ -4800,13 +4808,16 @@ mod snapshot_tests {
|
||||
);
|
||||
snapshot_test!(
|
||||
ag,
|
||||
"mySketch = startSketchAt([0,0]) |> line(endAbsolute = [1, 1]) |> close()"
|
||||
"mySketch = startSketchOn(XY) |> startProfileAt([0,0], %) |> line(endAbsolute = [1, 1]) |> close()"
|
||||
);
|
||||
snapshot_test!(ah, "myBox = startSketchAt(p)");
|
||||
snapshot_test!(ah, "myBox = startSketchOn(XY) |> startProfileAt(p, %)");
|
||||
snapshot_test!(ai, r#"myBox = f(1) |> g(2, %)"#);
|
||||
snapshot_test!(aj, r#"myBox = startSketchAt(p) |> line(end = [0, l])"#);
|
||||
snapshot_test!(
|
||||
aj,
|
||||
r#"myBox = startSketchOn(XY) |> startProfileAt(p, %) |> line(end = [0, l])"#
|
||||
);
|
||||
snapshot_test!(ak, "line(endAbsolute = [0, 1])");
|
||||
snapshot_test!(ap, "mySketch = startSketchAt([0,0])");
|
||||
snapshot_test!(ap, "mySketch = startSketchOn(XY) |> startProfileAt([0,0], %)");
|
||||
snapshot_test!(aq, "log(5, \"hello\", aIdentifier)");
|
||||
snapshot_test!(ar, r#"5 + "a""#);
|
||||
snapshot_test!(at, "line([0, l], %)");
|
||||
|
@ -1,12 +1,12 @@
|
||||
---
|
||||
source: kcl/src/parsing/parser.rs
|
||||
source: kcl-lib/src/parsing/parser.rs
|
||||
expression: actual
|
||||
---
|
||||
{
|
||||
"body": [
|
||||
{
|
||||
"declaration": {
|
||||
"end": 141,
|
||||
"end": 170,
|
||||
"id": {
|
||||
"end": 9,
|
||||
"name": "boxSketch",
|
||||
@ -17,44 +17,21 @@ expression: actual
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"elements": [
|
||||
{
|
||||
"end": 28,
|
||||
"raw": "0",
|
||||
"start": 27,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 31,
|
||||
"raw": "0",
|
||||
"start": 30,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 32,
|
||||
"name": "XY",
|
||||
"start": 26,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 25,
|
||||
"name": "startSketchAt",
|
||||
"name": "startSketchOn",
|
||||
"start": 12,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 33,
|
||||
"end": 29,
|
||||
"start": 12,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
@ -64,9 +41,9 @@ expression: actual
|
||||
{
|
||||
"elements": [
|
||||
{
|
||||
"end": 48,
|
||||
"end": 54,
|
||||
"raw": "0",
|
||||
"start": 47,
|
||||
"start": 53,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -75,9 +52,59 @@ expression: actual
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 52,
|
||||
"end": 57,
|
||||
"raw": "0",
|
||||
"start": 56,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 58,
|
||||
"start": 52,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"end": 61,
|
||||
"start": 60,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 51,
|
||||
"name": "startProfileAt",
|
||||
"start": 37,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 62,
|
||||
"start": 37,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"elements": [
|
||||
{
|
||||
"end": 77,
|
||||
"raw": "0",
|
||||
"start": 76,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 81,
|
||||
"raw": "10",
|
||||
"start": 50,
|
||||
"start": 79,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -86,26 +113,26 @@ expression: actual
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 53,
|
||||
"start": 46,
|
||||
"end": 82,
|
||||
"start": 75,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"end": 56,
|
||||
"start": 55,
|
||||
"end": 85,
|
||||
"start": 84,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 45,
|
||||
"end": 74,
|
||||
"name": "line",
|
||||
"start": 41,
|
||||
"start": 70,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 57,
|
||||
"start": 41,
|
||||
"end": 86,
|
||||
"start": 70,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
@ -115,9 +142,9 @@ expression: actual
|
||||
"elements": [
|
||||
{
|
||||
"argument": {
|
||||
"end": 82,
|
||||
"end": 111,
|
||||
"raw": "5",
|
||||
"start": 81,
|
||||
"start": 110,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -125,16 +152,16 @@ expression: actual
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"end": 82,
|
||||
"end": 111,
|
||||
"operator": "-",
|
||||
"start": 80,
|
||||
"start": 109,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
},
|
||||
{
|
||||
"end": 85,
|
||||
"end": 114,
|
||||
"raw": "5",
|
||||
"start": 84,
|
||||
"start": 113,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -143,26 +170,26 @@ expression: actual
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 86,
|
||||
"start": 79,
|
||||
"end": 115,
|
||||
"start": 108,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"end": 89,
|
||||
"start": 88,
|
||||
"end": 118,
|
||||
"start": 117,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 78,
|
||||
"end": 107,
|
||||
"name": "tangentialArc",
|
||||
"start": 65,
|
||||
"start": 94,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 90,
|
||||
"start": 65,
|
||||
"end": 119,
|
||||
"start": 94,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
@ -171,9 +198,9 @@ expression: actual
|
||||
{
|
||||
"elements": [
|
||||
{
|
||||
"end": 105,
|
||||
"end": 134,
|
||||
"raw": "5",
|
||||
"start": 104,
|
||||
"start": 133,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -183,9 +210,9 @@ expression: actual
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"end": 110,
|
||||
"end": 139,
|
||||
"raw": "15",
|
||||
"start": 108,
|
||||
"start": 137,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -193,33 +220,33 @@ expression: actual
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"end": 110,
|
||||
"end": 139,
|
||||
"operator": "-",
|
||||
"start": 107,
|
||||
"start": 136,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
}
|
||||
],
|
||||
"end": 111,
|
||||
"start": 103,
|
||||
"end": 140,
|
||||
"start": 132,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"end": 114,
|
||||
"start": 113,
|
||||
"end": 143,
|
||||
"start": 142,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 102,
|
||||
"end": 131,
|
||||
"name": "line",
|
||||
"start": 98,
|
||||
"start": 127,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 115,
|
||||
"start": 98,
|
||||
"end": 144,
|
||||
"start": 127,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
@ -232,9 +259,9 @@ expression: actual
|
||||
"name": "length"
|
||||
},
|
||||
"arg": {
|
||||
"end": 140,
|
||||
"end": 169,
|
||||
"raw": "10",
|
||||
"start": 138,
|
||||
"start": 167,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -245,19 +272,19 @@ expression: actual
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 130,
|
||||
"end": 159,
|
||||
"name": "extrude",
|
||||
"start": 123,
|
||||
"start": 152,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 141,
|
||||
"start": 123,
|
||||
"end": 170,
|
||||
"start": 152,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"end": 141,
|
||||
"end": 170,
|
||||
"start": 12,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
@ -265,13 +292,13 @@ expression: actual
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 141,
|
||||
"end": 170,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
}
|
||||
],
|
||||
"end": 142,
|
||||
"end": 171,
|
||||
"start": 0
|
||||
}
|
||||
|
@ -1,12 +1,12 @@
|
||||
---
|
||||
source: kcl/src/parsing/parser.rs
|
||||
source: kcl-lib/src/parsing/parser.rs
|
||||
expression: actual
|
||||
---
|
||||
{
|
||||
"body": [
|
||||
{
|
||||
"declaration": {
|
||||
"end": 197,
|
||||
"end": 230,
|
||||
"id": {
|
||||
"end": 8,
|
||||
"name": "mySketch",
|
||||
@ -17,48 +17,75 @@ expression: actual
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"elements": [
|
||||
{
|
||||
"end": 27,
|
||||
"raw": "0",
|
||||
"start": 26,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 29,
|
||||
"raw": "0",
|
||||
"start": 28,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 30,
|
||||
"name": "XY",
|
||||
"start": 25,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 24,
|
||||
"name": "startSketchAt",
|
||||
"name": "startSketchOn",
|
||||
"start": 11,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 31,
|
||||
"end": 28,
|
||||
"start": 11,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"elements": [
|
||||
{
|
||||
"end": 57,
|
||||
"raw": "0",
|
||||
"start": 56,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 59,
|
||||
"raw": "0",
|
||||
"start": 58,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 60,
|
||||
"start": 55,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"end": 63,
|
||||
"start": 62,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 54,
|
||||
"name": "startProfileAt",
|
||||
"start": 40,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 64,
|
||||
"start": 40,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
@ -70,9 +97,9 @@ expression: actual
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 64,
|
||||
"end": 97,
|
||||
"raw": "0",
|
||||
"start": 63,
|
||||
"start": 96,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -81,9 +108,9 @@ expression: actual
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 67,
|
||||
"end": 100,
|
||||
"raw": "1",
|
||||
"start": 66,
|
||||
"start": 99,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -92,8 +119,8 @@ expression: actual
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 68,
|
||||
"start": 62,
|
||||
"end": 101,
|
||||
"start": 95,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
@ -105,8 +132,8 @@ expression: actual
|
||||
"name": "tag"
|
||||
},
|
||||
"arg": {
|
||||
"end": 83,
|
||||
"start": 76,
|
||||
"end": 116,
|
||||
"start": 109,
|
||||
"type": "TagDeclarator",
|
||||
"type": "TagDeclarator",
|
||||
"value": "myPath"
|
||||
@ -114,13 +141,13 @@ expression: actual
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 47,
|
||||
"end": 80,
|
||||
"name": "line",
|
||||
"start": 43,
|
||||
"start": 76,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 84,
|
||||
"start": 43,
|
||||
"end": 117,
|
||||
"start": 76,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
@ -136,9 +163,9 @@ expression: actual
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 117,
|
||||
"end": 150,
|
||||
"raw": "1",
|
||||
"start": 116,
|
||||
"start": 149,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -147,9 +174,9 @@ expression: actual
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 120,
|
||||
"end": 153,
|
||||
"raw": "1",
|
||||
"start": 119,
|
||||
"start": 152,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -158,21 +185,21 @@ expression: actual
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 121,
|
||||
"start": 115,
|
||||
"end": 154,
|
||||
"start": 148,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 100,
|
||||
"end": 133,
|
||||
"name": "line",
|
||||
"start": 96,
|
||||
"start": 129,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 122,
|
||||
"start": 96,
|
||||
"end": 155,
|
||||
"start": 129,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
@ -188,9 +215,9 @@ expression: actual
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 155,
|
||||
"end": 188,
|
||||
"raw": "1",
|
||||
"start": 154,
|
||||
"start": 187,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -199,9 +226,9 @@ expression: actual
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 158,
|
||||
"end": 191,
|
||||
"raw": "0",
|
||||
"start": 157,
|
||||
"start": 190,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -210,8 +237,8 @@ expression: actual
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 159,
|
||||
"start": 153,
|
||||
"end": 192,
|
||||
"start": 186,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
@ -223,8 +250,8 @@ expression: actual
|
||||
"name": "tag"
|
||||
},
|
||||
"arg": {
|
||||
"end": 177,
|
||||
"start": 167,
|
||||
"end": 210,
|
||||
"start": 200,
|
||||
"type": "TagDeclarator",
|
||||
"type": "TagDeclarator",
|
||||
"value": "rightPath"
|
||||
@ -232,13 +259,13 @@ expression: actual
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 138,
|
||||
"end": 171,
|
||||
"name": "line",
|
||||
"start": 134,
|
||||
"start": 167,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 178,
|
||||
"start": 134,
|
||||
"end": 211,
|
||||
"start": 167,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
@ -246,18 +273,18 @@ expression: actual
|
||||
{
|
||||
"arguments": [],
|
||||
"callee": {
|
||||
"end": 195,
|
||||
"end": 228,
|
||||
"name": "close",
|
||||
"start": 190,
|
||||
"start": 223,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 197,
|
||||
"start": 190,
|
||||
"end": 230,
|
||||
"start": 223,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
}
|
||||
],
|
||||
"end": 197,
|
||||
"end": 230,
|
||||
"start": 11,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
@ -265,13 +292,13 @@ expression: actual
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 197,
|
||||
"end": 230,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
}
|
||||
],
|
||||
"end": 197,
|
||||
"end": 230,
|
||||
"start": 0
|
||||
}
|
||||
|
@ -1,12 +1,12 @@
|
||||
---
|
||||
source: kcl/src/parsing/parser.rs
|
||||
source: kcl-lib/src/parsing/parser.rs
|
||||
expression: actual
|
||||
---
|
||||
{
|
||||
"body": [
|
||||
{
|
||||
"declaration": {
|
||||
"end": 72,
|
||||
"end": 97,
|
||||
"id": {
|
||||
"end": 8,
|
||||
"name": "mySketch",
|
||||
@ -17,48 +17,75 @@ expression: actual
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"elements": [
|
||||
{
|
||||
"end": 27,
|
||||
"raw": "0",
|
||||
"start": 26,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 29,
|
||||
"raw": "0",
|
||||
"start": 28,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 30,
|
||||
"name": "XY",
|
||||
"start": 25,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 24,
|
||||
"name": "startSketchAt",
|
||||
"name": "startSketchOn",
|
||||
"start": 11,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 31,
|
||||
"end": 28,
|
||||
"start": 11,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"elements": [
|
||||
{
|
||||
"end": 49,
|
||||
"raw": "0",
|
||||
"start": 48,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 51,
|
||||
"raw": "0",
|
||||
"start": 50,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 52,
|
||||
"start": 47,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"end": 55,
|
||||
"start": 54,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 46,
|
||||
"name": "startProfileAt",
|
||||
"start": 32,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 56,
|
||||
"start": 32,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
@ -70,9 +97,9 @@ expression: actual
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 56,
|
||||
"end": 81,
|
||||
"raw": "1",
|
||||
"start": 55,
|
||||
"start": 80,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -81,9 +108,9 @@ expression: actual
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 59,
|
||||
"end": 84,
|
||||
"raw": "1",
|
||||
"start": 58,
|
||||
"start": 83,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -92,21 +119,21 @@ expression: actual
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 60,
|
||||
"start": 54,
|
||||
"end": 85,
|
||||
"start": 79,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 39,
|
||||
"end": 64,
|
||||
"name": "line",
|
||||
"start": 35,
|
||||
"start": 60,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 61,
|
||||
"start": 35,
|
||||
"end": 86,
|
||||
"start": 60,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
@ -114,18 +141,18 @@ expression: actual
|
||||
{
|
||||
"arguments": [],
|
||||
"callee": {
|
||||
"end": 70,
|
||||
"end": 95,
|
||||
"name": "close",
|
||||
"start": 65,
|
||||
"start": 90,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 72,
|
||||
"start": 65,
|
||||
"end": 97,
|
||||
"start": 90,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
}
|
||||
],
|
||||
"end": 72,
|
||||
"end": 97,
|
||||
"start": 11,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
@ -133,13 +160,13 @@ expression: actual
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 72,
|
||||
"end": 97,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
}
|
||||
],
|
||||
"end": 72,
|
||||
"end": 97,
|
||||
"start": 0
|
||||
}
|
||||
|
@ -1,12 +1,12 @@
|
||||
---
|
||||
source: kcl/src/parsing/parser.rs
|
||||
source: kcl-lib/src/parsing/parser.rs
|
||||
expression: actual
|
||||
---
|
||||
{
|
||||
"body": [
|
||||
{
|
||||
"declaration": {
|
||||
"end": 24,
|
||||
"end": 49,
|
||||
"id": {
|
||||
"end": 5,
|
||||
"name": "myBox",
|
||||
@ -14,10 +14,12 @@ expression: actual
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 23,
|
||||
"name": "p",
|
||||
"end": 24,
|
||||
"name": "XY",
|
||||
"start": 22,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
@ -25,25 +27,58 @@ expression: actual
|
||||
],
|
||||
"callee": {
|
||||
"end": 21,
|
||||
"name": "startSketchAt",
|
||||
"name": "startSketchOn",
|
||||
"start": 8,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 24,
|
||||
"end": 25,
|
||||
"start": 8,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 45,
|
||||
"name": "p",
|
||||
"start": 44,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"end": 48,
|
||||
"start": 47,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 43,
|
||||
"name": "startProfileAt",
|
||||
"start": 29,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 49,
|
||||
"start": 29,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
}
|
||||
],
|
||||
"end": 49,
|
||||
"start": 8,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
},
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 24,
|
||||
"end": 49,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
}
|
||||
],
|
||||
"end": 24,
|
||||
"end": 49,
|
||||
"start": 0
|
||||
}
|
||||
|
@ -1,12 +1,12 @@
|
||||
---
|
||||
source: kcl/src/parsing/parser.rs
|
||||
source: kcl-lib/src/parsing/parser.rs
|
||||
expression: actual
|
||||
---
|
||||
{
|
||||
"body": [
|
||||
{
|
||||
"declaration": {
|
||||
"end": 46,
|
||||
"end": 71,
|
||||
"id": {
|
||||
"end": 5,
|
||||
"name": "myBox",
|
||||
@ -18,8 +18,8 @@ expression: actual
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 23,
|
||||
"name": "p",
|
||||
"end": 24,
|
||||
"name": "XY",
|
||||
"start": 22,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
@ -27,15 +27,42 @@ expression: actual
|
||||
],
|
||||
"callee": {
|
||||
"end": 21,
|
||||
"name": "startSketchAt",
|
||||
"name": "startSketchOn",
|
||||
"start": 8,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 24,
|
||||
"end": 25,
|
||||
"start": 8,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 45,
|
||||
"name": "p",
|
||||
"start": 44,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"end": 48,
|
||||
"start": 47,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 43,
|
||||
"name": "startProfileAt",
|
||||
"start": 29,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 49,
|
||||
"start": 29,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
@ -47,9 +74,9 @@ expression: actual
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 41,
|
||||
"end": 66,
|
||||
"raw": "0",
|
||||
"start": 40,
|
||||
"start": 65,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -58,34 +85,34 @@ expression: actual
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 44,
|
||||
"end": 69,
|
||||
"name": "l",
|
||||
"start": 43,
|
||||
"start": 68,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
],
|
||||
"end": 45,
|
||||
"start": 39,
|
||||
"end": 70,
|
||||
"start": 64,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 32,
|
||||
"end": 57,
|
||||
"name": "line",
|
||||
"start": 28,
|
||||
"start": 53,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 46,
|
||||
"start": 28,
|
||||
"end": 71,
|
||||
"start": 53,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"end": 46,
|
||||
"end": 71,
|
||||
"start": 8,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
@ -93,13 +120,13 @@ expression: actual
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 46,
|
||||
"end": 71,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
}
|
||||
],
|
||||
"end": 46,
|
||||
"end": 71,
|
||||
"start": 0
|
||||
}
|
||||
|
@ -1,12 +1,12 @@
|
||||
---
|
||||
source: kcl/src/parsing/parser.rs
|
||||
source: kcl-lib/src/parsing/parser.rs
|
||||
expression: actual
|
||||
---
|
||||
{
|
||||
"body": [
|
||||
{
|
||||
"declaration": {
|
||||
"end": 31,
|
||||
"end": 56,
|
||||
"id": {
|
||||
"end": 8,
|
||||
"name": "mySketch",
|
||||
@ -14,59 +14,94 @@ expression: actual
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"elements": [
|
||||
{
|
||||
"end": 27,
|
||||
"raw": "0",
|
||||
"start": 26,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 29,
|
||||
"raw": "0",
|
||||
"start": 28,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 30,
|
||||
"name": "XY",
|
||||
"start": 25,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 24,
|
||||
"name": "startSketchAt",
|
||||
"name": "startSketchOn",
|
||||
"start": 11,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 31,
|
||||
"end": 28,
|
||||
"start": 11,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"elements": [
|
||||
{
|
||||
"end": 49,
|
||||
"raw": "0",
|
||||
"start": 48,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 51,
|
||||
"raw": "0",
|
||||
"start": 50,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 52,
|
||||
"start": 47,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"end": 55,
|
||||
"start": 54,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 46,
|
||||
"name": "startProfileAt",
|
||||
"start": 32,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 56,
|
||||
"start": 32,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
}
|
||||
],
|
||||
"end": 56,
|
||||
"start": 11,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
},
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 31,
|
||||
"end": 56,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
}
|
||||
],
|
||||
"end": 31,
|
||||
"end": 56,
|
||||
"start": 0
|
||||
}
|
||||
|
@ -1,12 +1,12 @@
|
||||
---
|
||||
source: kcl/src/parsing/parser.rs
|
||||
source: kcl-lib/src/parsing/parser.rs
|
||||
expression: actual
|
||||
---
|
||||
{
|
||||
"body": [
|
||||
{
|
||||
"declaration": {
|
||||
"end": 23,
|
||||
"end": 48,
|
||||
"id": {
|
||||
"end": 2,
|
||||
"name": "sg",
|
||||
@ -14,10 +14,12 @@ expression: actual
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 22,
|
||||
"name": "pos",
|
||||
"end": 21,
|
||||
"name": "XY",
|
||||
"start": 19,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
@ -25,25 +27,58 @@ expression: actual
|
||||
],
|
||||
"callee": {
|
||||
"end": 18,
|
||||
"name": "startSketchAt",
|
||||
"name": "startSketchOn",
|
||||
"start": 5,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 23,
|
||||
"end": 22,
|
||||
"start": 5,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 44,
|
||||
"name": "pos",
|
||||
"start": 41,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"end": 47,
|
||||
"start": 46,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 40,
|
||||
"name": "startProfileAt",
|
||||
"start": 26,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 48,
|
||||
"start": 26,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
}
|
||||
],
|
||||
"end": 48,
|
||||
"start": 5,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
},
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 23,
|
||||
"end": 48,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
}
|
||||
],
|
||||
"end": 23,
|
||||
"end": 48,
|
||||
"start": 0
|
||||
}
|
||||
|
@ -1,12 +1,12 @@
|
||||
---
|
||||
source: kcl/src/parsing/parser.rs
|
||||
source: kcl-lib/src/parsing/parser.rs
|
||||
expression: actual
|
||||
---
|
||||
{
|
||||
"body": [
|
||||
{
|
||||
"declaration": {
|
||||
"end": 47,
|
||||
"end": 73,
|
||||
"id": {
|
||||
"end": 2,
|
||||
"name": "sg",
|
||||
@ -18,8 +18,8 @@ expression: actual
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 22,
|
||||
"name": "pos",
|
||||
"end": 21,
|
||||
"name": "XY",
|
||||
"start": 19,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
@ -27,23 +27,44 @@ expression: actual
|
||||
],
|
||||
"callee": {
|
||||
"end": 18,
|
||||
"name": "startSketchAt",
|
||||
"name": "startSketchOn",
|
||||
"start": 5,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 23,
|
||||
"end": 22,
|
||||
"start": 5,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 48,
|
||||
"name": "pos",
|
||||
"start": 45,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 44,
|
||||
"name": "startProfileAt",
|
||||
"start": 30,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 49,
|
||||
"start": 30,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"elements": [
|
||||
{
|
||||
"end": 34,
|
||||
"end": 60,
|
||||
"raw": "0",
|
||||
"start": 33,
|
||||
"start": 59,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -53,44 +74,44 @@ expression: actual
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"end": 42,
|
||||
"end": 68,
|
||||
"name": "scale",
|
||||
"start": 37,
|
||||
"start": 63,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 42,
|
||||
"end": 68,
|
||||
"operator": "-",
|
||||
"start": 36,
|
||||
"start": 62,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
}
|
||||
],
|
||||
"end": 43,
|
||||
"start": 32,
|
||||
"end": 69,
|
||||
"start": 58,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"end": 46,
|
||||
"start": 45,
|
||||
"end": 72,
|
||||
"start": 71,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 31,
|
||||
"end": 57,
|
||||
"name": "line",
|
||||
"start": 27,
|
||||
"start": 53,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 47,
|
||||
"start": 27,
|
||||
"end": 73,
|
||||
"start": 53,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
}
|
||||
],
|
||||
"end": 47,
|
||||
"end": 73,
|
||||
"start": 5,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
@ -98,13 +119,13 @@ expression: actual
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 47,
|
||||
"end": 73,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
}
|
||||
],
|
||||
"end": 47,
|
||||
"end": 73,
|
||||
"start": 0
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -559,7 +559,8 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn test_program2() {
|
||||
let program = r#"const part001 = startSketchAt([0.0000000000, 5.0000000000])
|
||||
let program = r#"const part001 = startSketchOn(XY)
|
||||
|> startProfileAt([0.0000000000, 5.0000000000], %)
|
||||
|> line([0.4900857016, -0.0240763666], %)
|
||||
|
||||
const part002 = "part002"
|
||||
|
@ -1,969 +0,0 @@
|
||||
---
|
||||
source: kcl/src/tests.rs
|
||||
expression: tokens
|
||||
---
|
||||
Ok:
|
||||
- type: keyword
|
||||
start: 0
|
||||
end: 2
|
||||
value: fn
|
||||
- type: whitespace
|
||||
start: 2
|
||||
end: 3
|
||||
value: " "
|
||||
- type: word
|
||||
start: 3
|
||||
end: 9
|
||||
value: square
|
||||
- type: whitespace
|
||||
start: 9
|
||||
end: 10
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 10
|
||||
end: 11
|
||||
value: "="
|
||||
- type: whitespace
|
||||
start: 11
|
||||
end: 12
|
||||
value: " "
|
||||
- type: brace
|
||||
start: 12
|
||||
end: 13
|
||||
value: (
|
||||
- type: word
|
||||
start: 13
|
||||
end: 19
|
||||
value: length
|
||||
- type: comma
|
||||
start: 19
|
||||
end: 20
|
||||
value: ","
|
||||
- type: whitespace
|
||||
start: 20
|
||||
end: 21
|
||||
value: " "
|
||||
- type: word
|
||||
start: 21
|
||||
end: 27
|
||||
value: center
|
||||
- type: brace
|
||||
start: 27
|
||||
end: 28
|
||||
value: )
|
||||
- type: whitespace
|
||||
start: 28
|
||||
end: 29
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 29
|
||||
end: 31
|
||||
value: "=>"
|
||||
- type: whitespace
|
||||
start: 31
|
||||
end: 32
|
||||
value: " "
|
||||
- type: brace
|
||||
start: 32
|
||||
end: 33
|
||||
value: "{"
|
||||
- type: whitespace
|
||||
start: 33
|
||||
end: 36
|
||||
value: "\n "
|
||||
- type: word
|
||||
start: 36
|
||||
end: 37
|
||||
value: l
|
||||
- type: whitespace
|
||||
start: 37
|
||||
end: 38
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 38
|
||||
end: 39
|
||||
value: "="
|
||||
- type: whitespace
|
||||
start: 39
|
||||
end: 40
|
||||
value: " "
|
||||
- type: word
|
||||
start: 40
|
||||
end: 46
|
||||
value: length
|
||||
- type: whitespace
|
||||
start: 46
|
||||
end: 47
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 47
|
||||
end: 48
|
||||
value: /
|
||||
- type: whitespace
|
||||
start: 48
|
||||
end: 49
|
||||
value: " "
|
||||
- type: number
|
||||
start: 49
|
||||
end: 50
|
||||
value: "2"
|
||||
- type: whitespace
|
||||
start: 50
|
||||
end: 53
|
||||
value: "\n "
|
||||
- type: word
|
||||
start: 53
|
||||
end: 54
|
||||
value: x
|
||||
- type: whitespace
|
||||
start: 54
|
||||
end: 55
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 55
|
||||
end: 56
|
||||
value: "="
|
||||
- type: whitespace
|
||||
start: 56
|
||||
end: 57
|
||||
value: " "
|
||||
- type: word
|
||||
start: 57
|
||||
end: 63
|
||||
value: center
|
||||
- type: brace
|
||||
start: 63
|
||||
end: 64
|
||||
value: "["
|
||||
- type: number
|
||||
start: 64
|
||||
end: 65
|
||||
value: "0"
|
||||
- type: brace
|
||||
start: 65
|
||||
end: 66
|
||||
value: "]"
|
||||
- type: whitespace
|
||||
start: 66
|
||||
end: 69
|
||||
value: "\n "
|
||||
- type: word
|
||||
start: 69
|
||||
end: 70
|
||||
value: y
|
||||
- type: whitespace
|
||||
start: 70
|
||||
end: 71
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 71
|
||||
end: 72
|
||||
value: "="
|
||||
- type: whitespace
|
||||
start: 72
|
||||
end: 73
|
||||
value: " "
|
||||
- type: word
|
||||
start: 73
|
||||
end: 79
|
||||
value: center
|
||||
- type: brace
|
||||
start: 79
|
||||
end: 80
|
||||
value: "["
|
||||
- type: number
|
||||
start: 80
|
||||
end: 81
|
||||
value: "1"
|
||||
- type: brace
|
||||
start: 81
|
||||
end: 82
|
||||
value: "]"
|
||||
- type: whitespace
|
||||
start: 82
|
||||
end: 85
|
||||
value: "\n "
|
||||
- type: word
|
||||
start: 85
|
||||
end: 87
|
||||
value: p0
|
||||
- type: whitespace
|
||||
start: 87
|
||||
end: 88
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 88
|
||||
end: 89
|
||||
value: "="
|
||||
- type: whitespace
|
||||
start: 89
|
||||
end: 90
|
||||
value: " "
|
||||
- type: brace
|
||||
start: 90
|
||||
end: 91
|
||||
value: "["
|
||||
- type: operator
|
||||
start: 91
|
||||
end: 92
|
||||
value: "-"
|
||||
- type: word
|
||||
start: 92
|
||||
end: 93
|
||||
value: l
|
||||
- type: whitespace
|
||||
start: 93
|
||||
end: 94
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 94
|
||||
end: 95
|
||||
value: +
|
||||
- type: whitespace
|
||||
start: 95
|
||||
end: 96
|
||||
value: " "
|
||||
- type: word
|
||||
start: 96
|
||||
end: 97
|
||||
value: x
|
||||
- type: comma
|
||||
start: 97
|
||||
end: 98
|
||||
value: ","
|
||||
- type: whitespace
|
||||
start: 98
|
||||
end: 99
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 99
|
||||
end: 100
|
||||
value: "-"
|
||||
- type: word
|
||||
start: 100
|
||||
end: 101
|
||||
value: l
|
||||
- type: whitespace
|
||||
start: 101
|
||||
end: 102
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 102
|
||||
end: 103
|
||||
value: +
|
||||
- type: whitespace
|
||||
start: 103
|
||||
end: 104
|
||||
value: " "
|
||||
- type: word
|
||||
start: 104
|
||||
end: 105
|
||||
value: y
|
||||
- type: brace
|
||||
start: 105
|
||||
end: 106
|
||||
value: "]"
|
||||
- type: whitespace
|
||||
start: 106
|
||||
end: 109
|
||||
value: "\n "
|
||||
- type: word
|
||||
start: 109
|
||||
end: 111
|
||||
value: p1
|
||||
- type: whitespace
|
||||
start: 111
|
||||
end: 112
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 112
|
||||
end: 113
|
||||
value: "="
|
||||
- type: whitespace
|
||||
start: 113
|
||||
end: 114
|
||||
value: " "
|
||||
- type: brace
|
||||
start: 114
|
||||
end: 115
|
||||
value: "["
|
||||
- type: operator
|
||||
start: 115
|
||||
end: 116
|
||||
value: "-"
|
||||
- type: word
|
||||
start: 116
|
||||
end: 117
|
||||
value: l
|
||||
- type: whitespace
|
||||
start: 117
|
||||
end: 118
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 118
|
||||
end: 119
|
||||
value: +
|
||||
- type: whitespace
|
||||
start: 119
|
||||
end: 120
|
||||
value: " "
|
||||
- type: word
|
||||
start: 120
|
||||
end: 121
|
||||
value: x
|
||||
- type: comma
|
||||
start: 121
|
||||
end: 122
|
||||
value: ","
|
||||
- type: whitespace
|
||||
start: 122
|
||||
end: 124
|
||||
value: " "
|
||||
- type: word
|
||||
start: 124
|
||||
end: 125
|
||||
value: l
|
||||
- type: whitespace
|
||||
start: 125
|
||||
end: 126
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 126
|
||||
end: 127
|
||||
value: +
|
||||
- type: whitespace
|
||||
start: 127
|
||||
end: 128
|
||||
value: " "
|
||||
- type: word
|
||||
start: 128
|
||||
end: 129
|
||||
value: y
|
||||
- type: brace
|
||||
start: 129
|
||||
end: 130
|
||||
value: "]"
|
||||
- type: whitespace
|
||||
start: 130
|
||||
end: 133
|
||||
value: "\n "
|
||||
- type: word
|
||||
start: 133
|
||||
end: 135
|
||||
value: p2
|
||||
- type: whitespace
|
||||
start: 135
|
||||
end: 136
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 136
|
||||
end: 137
|
||||
value: "="
|
||||
- type: whitespace
|
||||
start: 137
|
||||
end: 138
|
||||
value: " "
|
||||
- type: brace
|
||||
start: 138
|
||||
end: 139
|
||||
value: "["
|
||||
- type: whitespace
|
||||
start: 139
|
||||
end: 140
|
||||
value: " "
|
||||
- type: word
|
||||
start: 140
|
||||
end: 141
|
||||
value: l
|
||||
- type: whitespace
|
||||
start: 141
|
||||
end: 142
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 142
|
||||
end: 143
|
||||
value: +
|
||||
- type: whitespace
|
||||
start: 143
|
||||
end: 144
|
||||
value: " "
|
||||
- type: word
|
||||
start: 144
|
||||
end: 145
|
||||
value: x
|
||||
- type: comma
|
||||
start: 145
|
||||
end: 146
|
||||
value: ","
|
||||
- type: whitespace
|
||||
start: 146
|
||||
end: 148
|
||||
value: " "
|
||||
- type: word
|
||||
start: 148
|
||||
end: 149
|
||||
value: l
|
||||
- type: whitespace
|
||||
start: 149
|
||||
end: 150
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 150
|
||||
end: 151
|
||||
value: +
|
||||
- type: whitespace
|
||||
start: 151
|
||||
end: 152
|
||||
value: " "
|
||||
- type: word
|
||||
start: 152
|
||||
end: 153
|
||||
value: y
|
||||
- type: brace
|
||||
start: 153
|
||||
end: 154
|
||||
value: "]"
|
||||
- type: whitespace
|
||||
start: 154
|
||||
end: 157
|
||||
value: "\n "
|
||||
- type: word
|
||||
start: 157
|
||||
end: 159
|
||||
value: p3
|
||||
- type: whitespace
|
||||
start: 159
|
||||
end: 160
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 160
|
||||
end: 161
|
||||
value: "="
|
||||
- type: whitespace
|
||||
start: 161
|
||||
end: 162
|
||||
value: " "
|
||||
- type: brace
|
||||
start: 162
|
||||
end: 163
|
||||
value: "["
|
||||
- type: whitespace
|
||||
start: 163
|
||||
end: 164
|
||||
value: " "
|
||||
- type: word
|
||||
start: 164
|
||||
end: 165
|
||||
value: l
|
||||
- type: whitespace
|
||||
start: 165
|
||||
end: 166
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 166
|
||||
end: 167
|
||||
value: +
|
||||
- type: whitespace
|
||||
start: 167
|
||||
end: 168
|
||||
value: " "
|
||||
- type: word
|
||||
start: 168
|
||||
end: 169
|
||||
value: x
|
||||
- type: comma
|
||||
start: 169
|
||||
end: 170
|
||||
value: ","
|
||||
- type: whitespace
|
||||
start: 170
|
||||
end: 171
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 171
|
||||
end: 172
|
||||
value: "-"
|
||||
- type: word
|
||||
start: 172
|
||||
end: 173
|
||||
value: l
|
||||
- type: whitespace
|
||||
start: 173
|
||||
end: 174
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 174
|
||||
end: 175
|
||||
value: +
|
||||
- type: whitespace
|
||||
start: 175
|
||||
end: 176
|
||||
value: " "
|
||||
- type: word
|
||||
start: 176
|
||||
end: 177
|
||||
value: y
|
||||
- type: brace
|
||||
start: 177
|
||||
end: 178
|
||||
value: "]"
|
||||
- type: whitespace
|
||||
start: 178
|
||||
end: 181
|
||||
value: "\n "
|
||||
- type: keyword
|
||||
start: 181
|
||||
end: 187
|
||||
value: return
|
||||
- type: whitespace
|
||||
start: 187
|
||||
end: 188
|
||||
value: " "
|
||||
- type: word
|
||||
start: 188
|
||||
end: 201
|
||||
value: startSketchAt
|
||||
- type: brace
|
||||
start: 201
|
||||
end: 202
|
||||
value: (
|
||||
- type: word
|
||||
start: 202
|
||||
end: 204
|
||||
value: p0
|
||||
- type: brace
|
||||
start: 204
|
||||
end: 205
|
||||
value: )
|
||||
- type: whitespace
|
||||
start: 205
|
||||
end: 210
|
||||
value: "\n "
|
||||
- type: operator
|
||||
start: 210
|
||||
end: 212
|
||||
value: "|>"
|
||||
- type: whitespace
|
||||
start: 212
|
||||
end: 213
|
||||
value: " "
|
||||
- type: word
|
||||
start: 213
|
||||
end: 219
|
||||
value: lineTo
|
||||
- type: brace
|
||||
start: 219
|
||||
end: 220
|
||||
value: (
|
||||
- type: word
|
||||
start: 220
|
||||
end: 222
|
||||
value: p1
|
||||
- type: comma
|
||||
start: 222
|
||||
end: 223
|
||||
value: ","
|
||||
- type: whitespace
|
||||
start: 223
|
||||
end: 224
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 224
|
||||
end: 225
|
||||
value: "%"
|
||||
- type: brace
|
||||
start: 225
|
||||
end: 226
|
||||
value: )
|
||||
- type: whitespace
|
||||
start: 226
|
||||
end: 231
|
||||
value: "\n "
|
||||
- type: operator
|
||||
start: 231
|
||||
end: 233
|
||||
value: "|>"
|
||||
- type: whitespace
|
||||
start: 233
|
||||
end: 234
|
||||
value: " "
|
||||
- type: word
|
||||
start: 234
|
||||
end: 240
|
||||
value: lineTo
|
||||
- type: brace
|
||||
start: 240
|
||||
end: 241
|
||||
value: (
|
||||
- type: word
|
||||
start: 241
|
||||
end: 243
|
||||
value: p2
|
||||
- type: comma
|
||||
start: 243
|
||||
end: 244
|
||||
value: ","
|
||||
- type: whitespace
|
||||
start: 244
|
||||
end: 245
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 245
|
||||
end: 246
|
||||
value: "%"
|
||||
- type: brace
|
||||
start: 246
|
||||
end: 247
|
||||
value: )
|
||||
- type: whitespace
|
||||
start: 247
|
||||
end: 252
|
||||
value: "\n "
|
||||
- type: operator
|
||||
start: 252
|
||||
end: 254
|
||||
value: "|>"
|
||||
- type: whitespace
|
||||
start: 254
|
||||
end: 255
|
||||
value: " "
|
||||
- type: word
|
||||
start: 255
|
||||
end: 261
|
||||
value: lineTo
|
||||
- type: brace
|
||||
start: 261
|
||||
end: 262
|
||||
value: (
|
||||
- type: word
|
||||
start: 262
|
||||
end: 264
|
||||
value: p3
|
||||
- type: comma
|
||||
start: 264
|
||||
end: 265
|
||||
value: ","
|
||||
- type: whitespace
|
||||
start: 265
|
||||
end: 266
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 266
|
||||
end: 267
|
||||
value: "%"
|
||||
- type: brace
|
||||
start: 267
|
||||
end: 268
|
||||
value: )
|
||||
- type: whitespace
|
||||
start: 268
|
||||
end: 273
|
||||
value: "\n "
|
||||
- type: operator
|
||||
start: 273
|
||||
end: 275
|
||||
value: "|>"
|
||||
- type: whitespace
|
||||
start: 275
|
||||
end: 276
|
||||
value: " "
|
||||
- type: word
|
||||
start: 276
|
||||
end: 282
|
||||
value: lineTo
|
||||
- type: brace
|
||||
start: 282
|
||||
end: 283
|
||||
value: (
|
||||
- type: word
|
||||
start: 283
|
||||
end: 285
|
||||
value: p0
|
||||
- type: comma
|
||||
start: 285
|
||||
end: 286
|
||||
value: ","
|
||||
- type: whitespace
|
||||
start: 286
|
||||
end: 287
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 287
|
||||
end: 288
|
||||
value: "%"
|
||||
- type: brace
|
||||
start: 288
|
||||
end: 289
|
||||
value: )
|
||||
- type: whitespace
|
||||
start: 289
|
||||
end: 294
|
||||
value: "\n "
|
||||
- type: operator
|
||||
start: 294
|
||||
end: 296
|
||||
value: "|>"
|
||||
- type: whitespace
|
||||
start: 296
|
||||
end: 297
|
||||
value: " "
|
||||
- type: word
|
||||
start: 297
|
||||
end: 302
|
||||
value: close
|
||||
- type: brace
|
||||
start: 302
|
||||
end: 303
|
||||
value: (
|
||||
- type: operator
|
||||
start: 303
|
||||
end: 304
|
||||
value: "%"
|
||||
- type: brace
|
||||
start: 304
|
||||
end: 305
|
||||
value: )
|
||||
- type: whitespace
|
||||
start: 305
|
||||
end: 306
|
||||
value: "\n"
|
||||
- type: brace
|
||||
start: 306
|
||||
end: 307
|
||||
value: "}"
|
||||
- type: whitespace
|
||||
start: 307
|
||||
end: 309
|
||||
value: "\n\n"
|
||||
- type: keyword
|
||||
start: 309
|
||||
end: 311
|
||||
value: fn
|
||||
- type: whitespace
|
||||
start: 311
|
||||
end: 312
|
||||
value: " "
|
||||
- type: word
|
||||
start: 312
|
||||
end: 316
|
||||
value: cube
|
||||
- type: whitespace
|
||||
start: 316
|
||||
end: 317
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 317
|
||||
end: 318
|
||||
value: "="
|
||||
- type: whitespace
|
||||
start: 318
|
||||
end: 319
|
||||
value: " "
|
||||
- type: brace
|
||||
start: 319
|
||||
end: 320
|
||||
value: (
|
||||
- type: word
|
||||
start: 320
|
||||
end: 326
|
||||
value: length
|
||||
- type: comma
|
||||
start: 326
|
||||
end: 327
|
||||
value: ","
|
||||
- type: whitespace
|
||||
start: 327
|
||||
end: 328
|
||||
value: " "
|
||||
- type: word
|
||||
start: 328
|
||||
end: 334
|
||||
value: center
|
||||
- type: brace
|
||||
start: 334
|
||||
end: 335
|
||||
value: )
|
||||
- type: whitespace
|
||||
start: 335
|
||||
end: 336
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 336
|
||||
end: 338
|
||||
value: "=>"
|
||||
- type: whitespace
|
||||
start: 338
|
||||
end: 339
|
||||
value: " "
|
||||
- type: brace
|
||||
start: 339
|
||||
end: 340
|
||||
value: "{"
|
||||
- type: whitespace
|
||||
start: 340
|
||||
end: 343
|
||||
value: "\n "
|
||||
- type: keyword
|
||||
start: 343
|
||||
end: 349
|
||||
value: return
|
||||
- type: whitespace
|
||||
start: 349
|
||||
end: 350
|
||||
value: " "
|
||||
- type: word
|
||||
start: 350
|
||||
end: 356
|
||||
value: square
|
||||
- type: brace
|
||||
start: 356
|
||||
end: 357
|
||||
value: (
|
||||
- type: word
|
||||
start: 357
|
||||
end: 363
|
||||
value: length
|
||||
- type: comma
|
||||
start: 363
|
||||
end: 364
|
||||
value: ","
|
||||
- type: whitespace
|
||||
start: 364
|
||||
end: 365
|
||||
value: " "
|
||||
- type: word
|
||||
start: 365
|
||||
end: 371
|
||||
value: center
|
||||
- type: brace
|
||||
start: 371
|
||||
end: 372
|
||||
value: )
|
||||
- type: whitespace
|
||||
start: 372
|
||||
end: 377
|
||||
value: "\n "
|
||||
- type: operator
|
||||
start: 377
|
||||
end: 379
|
||||
value: "|>"
|
||||
- type: whitespace
|
||||
start: 379
|
||||
end: 380
|
||||
value: " "
|
||||
- type: word
|
||||
start: 380
|
||||
end: 387
|
||||
value: extrude
|
||||
- type: brace
|
||||
start: 387
|
||||
end: 388
|
||||
value: (
|
||||
- type: word
|
||||
start: 388
|
||||
end: 394
|
||||
value: length
|
||||
- type: comma
|
||||
start: 394
|
||||
end: 395
|
||||
value: ","
|
||||
- type: whitespace
|
||||
start: 395
|
||||
end: 396
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 396
|
||||
end: 397
|
||||
value: "%"
|
||||
- type: brace
|
||||
start: 397
|
||||
end: 398
|
||||
value: )
|
||||
- type: whitespace
|
||||
start: 398
|
||||
end: 399
|
||||
value: "\n"
|
||||
- type: brace
|
||||
start: 399
|
||||
end: 400
|
||||
value: "}"
|
||||
- type: whitespace
|
||||
start: 400
|
||||
end: 402
|
||||
value: "\n\n"
|
||||
- type: word
|
||||
start: 402
|
||||
end: 407
|
||||
value: width
|
||||
- type: whitespace
|
||||
start: 407
|
||||
end: 408
|
||||
value: " "
|
||||
- type: operator
|
||||
start: 408
|
||||
end: 409
|
||||
value: "="
|
||||
- type: whitespace
|
||||
start: 409
|
||||
end: 410
|
||||
value: " "
|
||||
- type: number
|
||||
start: 410
|
||||
end: 412
|
||||
value: "20"
|
||||
- type: whitespace
|
||||
start: 412
|
||||
end: 413
|
||||
value: "\n"
|
||||
- type: word
|
||||
start: 413
|
||||
end: 417
|
||||
value: cube
|
||||
- type: brace
|
||||
start: 417
|
||||
end: 418
|
||||
value: (
|
||||
- type: word
|
||||
start: 418
|
||||
end: 423
|
||||
value: width
|
||||
- type: comma
|
||||
start: 423
|
||||
end: 424
|
||||
value: ","
|
||||
- type: whitespace
|
||||
start: 424
|
||||
end: 425
|
||||
value: " "
|
||||
- type: brace
|
||||
start: 425
|
||||
end: 426
|
||||
value: "["
|
||||
- type: number
|
||||
start: 426
|
||||
end: 428
|
||||
value: "20"
|
||||
- type: comma
|
||||
start: 428
|
||||
end: 429
|
||||
value: ","
|
||||
- type: whitespace
|
||||
start: 429
|
||||
end: 430
|
||||
value: " "
|
||||
- type: number
|
||||
start: 430
|
||||
end: 431
|
||||
value: "0"
|
||||
- type: brace
|
||||
start: 431
|
||||
end: 432
|
||||
value: "]"
|
||||
- type: brace
|
||||
start: 432
|
||||
end: 433
|
||||
value: )
|
||||
- type: whitespace
|
||||
start: 433
|
||||
end: 434
|
||||
value: "\n"
|
@ -83,7 +83,6 @@ lazy_static! {
|
||||
Box::new(crate::std::sketch::AngledLineOfXLength),
|
||||
Box::new(crate::std::sketch::AngledLineOfYLength),
|
||||
Box::new(crate::std::sketch::AngledLineThatIntersects),
|
||||
Box::new(crate::std::sketch::StartSketchAt),
|
||||
Box::new(crate::std::sketch::StartSketchOn),
|
||||
Box::new(crate::std::sketch::StartProfileAt),
|
||||
Box::new(crate::std::sketch::ProfileStartX),
|
||||
|
@ -894,59 +894,6 @@ async fn inner_angled_line_that_intersects(
|
||||
Ok(new_sketch)
|
||||
}
|
||||
|
||||
/// Start a sketch at a given point.
|
||||
pub async fn start_sketch_at(exec_state: &mut ExecState, args: Args) -> Result<KclValue, KclError> {
|
||||
let data: [f64; 2] = args.get_data()?;
|
||||
|
||||
let sketch = inner_start_sketch_at(data, exec_state, args).await?;
|
||||
Ok(KclValue::Sketch {
|
||||
value: Box::new(sketch),
|
||||
})
|
||||
}
|
||||
|
||||
/// Start a new 2-dimensional sketch at a given point on the 'XY' plane.
|
||||
///
|
||||
/// ```no_run
|
||||
/// exampleSketch = startSketchAt([0, 0])
|
||||
/// |> line(end = [10, 0])
|
||||
/// |> line(end = [0, 10])
|
||||
/// |> line(end = [-10, 0])
|
||||
/// |> close()
|
||||
///
|
||||
/// example = extrude(exampleSketch, length = 5)
|
||||
/// ```
|
||||
///
|
||||
/// ```no_run
|
||||
/// exampleSketch = startSketchAt([10, 10])
|
||||
/// |> line(end = [10, 0])
|
||||
/// |> line(end = [0, 10])
|
||||
/// |> line(end = [-10, 0])
|
||||
/// |> close()
|
||||
///
|
||||
/// example = extrude(exampleSketch, length = 5)
|
||||
/// ```
|
||||
///
|
||||
/// ```no_run
|
||||
/// exampleSketch = startSketchAt([-10, 23])
|
||||
/// |> line(end = [10, 0])
|
||||
/// |> line(end = [0, 10])
|
||||
/// |> line(end = [-10, 0])
|
||||
/// |> close()
|
||||
///
|
||||
/// example = extrude(exampleSketch, length = 5)
|
||||
/// ```
|
||||
#[stdlib {
|
||||
name = "startSketchAt",
|
||||
deprecated = true,
|
||||
}]
|
||||
async fn inner_start_sketch_at(data: [f64; 2], exec_state: &mut ExecState, args: Args) -> Result<Sketch, KclError> {
|
||||
// Let's assume it's the XY plane for now, this is just for backwards compatibility.
|
||||
let xy_plane = PlaneData::XY;
|
||||
let sketch_surface = inner_start_sketch_on(SketchData::PlaneOrientation(xy_plane), None, exec_state, &args).await?;
|
||||
let sketch = inner_start_profile_at(data, sketch_surface, None, exec_state, args).await?;
|
||||
Ok(sketch)
|
||||
}
|
||||
|
||||
/// Data for start sketch on.
|
||||
/// You can start a sketch on a plane or an solid.
|
||||
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq, ts_rs::TS, JsonSchema)]
|
||||
|
@ -997,7 +997,7 @@ fn o(c_x, c_y) {
|
||||
o_x2 = c_x + o_r * cos((225 + a) / 360 * tau())
|
||||
o_y2 = c_y + o_r * sin((225 + a) / 360 * tau())
|
||||
|
||||
// End point for the bottom startSketchAt
|
||||
// End point for the bottom startSketch
|
||||
o_x3 = c_x + o_r * cos((45 - a) / 360 * tau())
|
||||
o_y3 = c_y + o_r * sin((45 - a) / 360 * tau())
|
||||
|
||||
@ -1875,7 +1875,8 @@ thing = 'foo'
|
||||
let test_program = r#"
|
||||
/* comment at start */
|
||||
|
||||
mySk1 = startSketchAt([0, 0])"#;
|
||||
mySk1 = startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)"#;
|
||||
let program = crate::parsing::top_level_parse(test_program).unwrap();
|
||||
|
||||
let recasted = program.recast(&Default::default(), 0);
|
||||
@ -1883,7 +1884,8 @@ mySk1 = startSketchAt([0, 0])"#;
|
||||
recasted,
|
||||
r#"/* comment at start */
|
||||
|
||||
mySk1 = startSketchAt([0, 0])
|
||||
mySk1 = startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)
|
||||
"#
|
||||
);
|
||||
}
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Artifact commands cube.kcl
|
||||
snapshot_kind: text
|
||||
---
|
||||
[
|
||||
{
|
||||
@ -314,8 +313,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
185,
|
||||
202,
|
||||
210,
|
||||
231,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -334,8 +333,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
185,
|
||||
202,
|
||||
210,
|
||||
231,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -345,8 +344,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
185,
|
||||
202,
|
||||
210,
|
||||
231,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -362,8 +361,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
210,
|
||||
232,
|
||||
239,
|
||||
261,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -383,8 +382,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
240,
|
||||
262,
|
||||
269,
|
||||
291,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -404,8 +403,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
270,
|
||||
292,
|
||||
299,
|
||||
321,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -425,8 +424,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
300,
|
||||
322,
|
||||
329,
|
||||
351,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -446,8 +445,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
330,
|
||||
337,
|
||||
359,
|
||||
366,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -458,8 +457,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
330,
|
||||
337,
|
||||
359,
|
||||
366,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -469,8 +468,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
345,
|
||||
373,
|
||||
374,
|
||||
402,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -489,8 +488,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
345,
|
||||
373,
|
||||
374,
|
||||
402,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -503,8 +502,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
345,
|
||||
373,
|
||||
374,
|
||||
402,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -514,8 +513,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
345,
|
||||
373,
|
||||
374,
|
||||
402,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -526,8 +525,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
345,
|
||||
373,
|
||||
374,
|
||||
402,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -539,8 +538,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
345,
|
||||
373,
|
||||
374,
|
||||
402,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -553,8 +552,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
345,
|
||||
373,
|
||||
374,
|
||||
402,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -567,8 +566,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
345,
|
||||
373,
|
||||
374,
|
||||
402,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -581,8 +580,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
345,
|
||||
373,
|
||||
374,
|
||||
402,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -595,8 +594,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
345,
|
||||
373,
|
||||
374,
|
||||
402,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -609,8 +608,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
345,
|
||||
373,
|
||||
374,
|
||||
402,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -623,8 +622,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
345,
|
||||
373,
|
||||
374,
|
||||
402,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -637,8 +636,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
345,
|
||||
373,
|
||||
374,
|
||||
402,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Artifact graph flowchart cube.kcl
|
||||
extension: md
|
||||
snapshot_kind: binary
|
||||
|
@ -1,16 +1,16 @@
|
||||
```mermaid
|
||||
flowchart LR
|
||||
subgraph path2 [Path]
|
||||
2["Path<br>[185, 202, 0]"]
|
||||
3["Segment<br>[210, 232, 0]"]
|
||||
4["Segment<br>[240, 262, 0]"]
|
||||
5["Segment<br>[270, 292, 0]"]
|
||||
6["Segment<br>[300, 322, 0]"]
|
||||
7["Segment<br>[330, 337, 0]"]
|
||||
2["Path<br>[210, 231, 0]"]
|
||||
3["Segment<br>[239, 261, 0]"]
|
||||
4["Segment<br>[269, 291, 0]"]
|
||||
5["Segment<br>[299, 321, 0]"]
|
||||
6["Segment<br>[329, 351, 0]"]
|
||||
7["Segment<br>[359, 366, 0]"]
|
||||
8[Solid2d]
|
||||
end
|
||||
1["Plane<br>[185, 202, 0]"]
|
||||
9["Sweep Extrusion<br>[345, 373, 0]"]
|
||||
9["Sweep Extrusion<br>[374, 402, 0]"]
|
||||
10[Wall]
|
||||
11[Wall]
|
||||
12[Wall]
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Result of parsing cube.kcl
|
||||
---
|
||||
{
|
||||
@ -7,7 +7,7 @@ description: Result of parsing cube.kcl
|
||||
"body": [
|
||||
{
|
||||
"declaration": {
|
||||
"end": 375,
|
||||
"end": 404,
|
||||
"id": {
|
||||
"end": 7,
|
||||
"name": "cube",
|
||||
@ -453,7 +453,7 @@ description: Result of parsing cube.kcl
|
||||
"arguments": [
|
||||
{
|
||||
"end": 201,
|
||||
"name": "p0",
|
||||
"name": "XY",
|
||||
"start": 199,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
@ -461,7 +461,7 @@ description: Result of parsing cube.kcl
|
||||
],
|
||||
"callee": {
|
||||
"end": 198,
|
||||
"name": "startSketchAt",
|
||||
"name": "startSketchOn",
|
||||
"start": 185,
|
||||
"type": "Identifier"
|
||||
},
|
||||
@ -470,6 +470,33 @@ description: Result of parsing cube.kcl
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 227,
|
||||
"name": "p0",
|
||||
"start": 225,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"end": 230,
|
||||
"start": 229,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 224,
|
||||
"name": "startProfileAt",
|
||||
"start": 210,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 231,
|
||||
"start": 210,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
@ -479,80 +506,51 @@ description: Result of parsing cube.kcl
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 231,
|
||||
"end": 260,
|
||||
"name": "p1",
|
||||
"start": 229,
|
||||
"start": 258,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 214,
|
||||
"end": 243,
|
||||
"name": "line",
|
||||
"start": 210,
|
||||
"start": 239,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 232,
|
||||
"start": 210,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 261,
|
||||
"start": 239,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 290,
|
||||
"name": "p2",
|
||||
"start": 259,
|
||||
"start": 288,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 244,
|
||||
"end": 273,
|
||||
"name": "line",
|
||||
"start": 240,
|
||||
"start": 269,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 262,
|
||||
"start": 240,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 291,
|
||||
"name": "p3",
|
||||
"start": 289,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 274,
|
||||
"name": "line",
|
||||
"start": 270,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 292,
|
||||
"start": 270,
|
||||
"start": 269,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
@ -566,22 +564,51 @@ description: Result of parsing cube.kcl
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 321,
|
||||
"name": "p0",
|
||||
"start": 319,
|
||||
"end": 320,
|
||||
"name": "p3",
|
||||
"start": 318,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 304,
|
||||
"end": 303,
|
||||
"name": "line",
|
||||
"start": 300,
|
||||
"start": 299,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 322,
|
||||
"start": 300,
|
||||
"end": 321,
|
||||
"start": 299,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 350,
|
||||
"name": "p0",
|
||||
"start": 348,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 333,
|
||||
"name": "line",
|
||||
"start": 329,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 351,
|
||||
"start": 329,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
@ -589,13 +616,13 @@ description: Result of parsing cube.kcl
|
||||
{
|
||||
"arguments": [],
|
||||
"callee": {
|
||||
"end": 335,
|
||||
"end": 364,
|
||||
"name": "close",
|
||||
"start": 330,
|
||||
"start": 359,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 337,
|
||||
"start": 330,
|
||||
"end": 366,
|
||||
"start": 359,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
@ -608,39 +635,39 @@ description: Result of parsing cube.kcl
|
||||
"name": "length"
|
||||
},
|
||||
"arg": {
|
||||
"end": 372,
|
||||
"end": 401,
|
||||
"name": "sideLength",
|
||||
"start": 362,
|
||||
"start": 391,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 352,
|
||||
"end": 381,
|
||||
"name": "extrude",
|
||||
"start": 345,
|
||||
"start": 374,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 373,
|
||||
"start": 345,
|
||||
"end": 402,
|
||||
"start": 374,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"end": 373,
|
||||
"end": 402,
|
||||
"start": 185,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
},
|
||||
"end": 373,
|
||||
"end": 402,
|
||||
"start": 178,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 375,
|
||||
"end": 404,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"6": [
|
||||
@ -658,7 +685,7 @@ description: Result of parsing cube.kcl
|
||||
},
|
||||
"start": 28
|
||||
},
|
||||
"end": 375,
|
||||
"end": 404,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
@ -686,7 +713,7 @@ description: Result of parsing cube.kcl
|
||||
"start": 3,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 375,
|
||||
"end": 404,
|
||||
"kind": "fn",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
@ -694,11 +721,11 @@ description: Result of parsing cube.kcl
|
||||
},
|
||||
{
|
||||
"declaration": {
|
||||
"end": 424,
|
||||
"end": 453,
|
||||
"id": {
|
||||
"end": 383,
|
||||
"end": 412,
|
||||
"name": "myCube",
|
||||
"start": 377,
|
||||
"start": 406,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
@ -710,9 +737,9 @@ description: Result of parsing cube.kcl
|
||||
"name": "sideLength"
|
||||
},
|
||||
"arg": {
|
||||
"end": 406,
|
||||
"end": 435,
|
||||
"raw": "40",
|
||||
"start": 404,
|
||||
"start": 433,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -730,9 +757,9 @@ description: Result of parsing cube.kcl
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 419,
|
||||
"end": 448,
|
||||
"raw": "0",
|
||||
"start": 418,
|
||||
"start": 447,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -741,9 +768,9 @@ description: Result of parsing cube.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 422,
|
||||
"end": 451,
|
||||
"raw": "0",
|
||||
"start": 421,
|
||||
"start": 450,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -752,42 +779,42 @@ description: Result of parsing cube.kcl
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 423,
|
||||
"start": 417,
|
||||
"end": 452,
|
||||
"start": 446,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 390,
|
||||
"end": 419,
|
||||
"name": "cube",
|
||||
"start": 386,
|
||||
"start": 415,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 424,
|
||||
"start": 386,
|
||||
"end": 453,
|
||||
"start": 415,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
"start": 377,
|
||||
"start": 406,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 424,
|
||||
"end": 453,
|
||||
"kind": "const",
|
||||
"start": 377,
|
||||
"start": 406,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
}
|
||||
],
|
||||
"end": 425,
|
||||
"end": 454,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"0": [
|
||||
{
|
||||
"end": 377,
|
||||
"start": 375,
|
||||
"end": 406,
|
||||
"start": 404,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "newLine"
|
||||
|
@ -7,7 +7,8 @@ fn cube(sideLength, center) {
|
||||
p2 = [l + x, l + y]
|
||||
p3 = [l + x, -l + y]
|
||||
|
||||
return startSketchAt(p0)
|
||||
return startSketchOn(XY)
|
||||
|> startProfileAt(p0, %)
|
||||
|> line(endAbsolute = p1)
|
||||
|> line(endAbsolute = p2)
|
||||
|> line(endAbsolute = p3)
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Operations executed cube.kcl
|
||||
---
|
||||
[
|
||||
@ -8,7 +8,7 @@ description: Operations executed cube.kcl
|
||||
"name": "cube",
|
||||
"functionSourceRange": [
|
||||
7,
|
||||
375,
|
||||
404,
|
||||
0
|
||||
],
|
||||
"unlabeledArg": null,
|
||||
@ -46,8 +46,8 @@ description: Operations executed cube.kcl
|
||||
]
|
||||
},
|
||||
"sourceRange": [
|
||||
417,
|
||||
423,
|
||||
446,
|
||||
452,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -66,18 +66,41 @@ description: Operations executed cube.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
404,
|
||||
406,
|
||||
433,
|
||||
435,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
386,
|
||||
424,
|
||||
415,
|
||||
453,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"data": {
|
||||
"value": {
|
||||
"type": "Plane",
|
||||
"artifact_id": "[uuid]"
|
||||
},
|
||||
"sourceRange": [
|
||||
199,
|
||||
201,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "startSketchOn",
|
||||
"sourceRange": [
|
||||
185,
|
||||
202,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": null
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"length": {
|
||||
@ -95,16 +118,16 @@ description: Operations executed cube.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
362,
|
||||
372,
|
||||
391,
|
||||
401,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "extrude",
|
||||
"sourceRange": [
|
||||
345,
|
||||
373,
|
||||
374,
|
||||
402,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Variables in memory after executing cube.kcl
|
||||
---
|
||||
{
|
||||
@ -9,7 +9,7 @@ description: Variables in memory after executing cube.kcl
|
||||
{
|
||||
"sourceRange": [
|
||||
7,
|
||||
375,
|
||||
404,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -26,8 +26,8 @@ description: Variables in memory after executing cube.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
210,
|
||||
232,
|
||||
239,
|
||||
261,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -37,8 +37,8 @@ description: Variables in memory after executing cube.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
240,
|
||||
262,
|
||||
269,
|
||||
291,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -48,8 +48,8 @@ description: Variables in memory after executing cube.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
270,
|
||||
292,
|
||||
299,
|
||||
321,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -59,8 +59,8 @@ description: Variables in memory after executing cube.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
300,
|
||||
322,
|
||||
329,
|
||||
351,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -75,8 +75,8 @@ description: Variables in memory after executing cube.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
210,
|
||||
232,
|
||||
239,
|
||||
261,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -98,8 +98,8 @@ description: Variables in memory after executing cube.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
240,
|
||||
262,
|
||||
269,
|
||||
291,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -121,8 +121,8 @@ description: Variables in memory after executing cube.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
270,
|
||||
292,
|
||||
299,
|
||||
321,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -144,8 +144,8 @@ description: Variables in memory after executing cube.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
300,
|
||||
322,
|
||||
329,
|
||||
351,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -167,8 +167,8 @@ description: Variables in memory after executing cube.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
330,
|
||||
337,
|
||||
359,
|
||||
366,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -233,8 +233,8 @@ description: Variables in memory after executing cube.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
185,
|
||||
202,
|
||||
210,
|
||||
231,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -247,8 +247,8 @@ description: Variables in memory after executing cube.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
185,
|
||||
202,
|
||||
210,
|
||||
231,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -263,8 +263,8 @@ description: Variables in memory after executing cube.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
185,
|
||||
202,
|
||||
210,
|
||||
231,
|
||||
0
|
||||
]
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Artifact commands cube_with_error.kcl
|
||||
---
|
||||
[
|
||||
@ -313,8 +313,8 @@ description: Artifact commands cube_with_error.kcl
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
177,
|
||||
194,
|
||||
202,
|
||||
223,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -333,8 +333,8 @@ description: Artifact commands cube_with_error.kcl
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
177,
|
||||
194,
|
||||
202,
|
||||
223,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -344,8 +344,8 @@ description: Artifact commands cube_with_error.kcl
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
177,
|
||||
194,
|
||||
202,
|
||||
223,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -361,8 +361,8 @@ description: Artifact commands cube_with_error.kcl
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
202,
|
||||
224,
|
||||
231,
|
||||
253,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -382,8 +382,8 @@ description: Artifact commands cube_with_error.kcl
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
232,
|
||||
254,
|
||||
261,
|
||||
283,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -403,8 +403,8 @@ description: Artifact commands cube_with_error.kcl
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
262,
|
||||
284,
|
||||
291,
|
||||
313,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -424,8 +424,8 @@ description: Artifact commands cube_with_error.kcl
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
292,
|
||||
314,
|
||||
321,
|
||||
343,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -445,8 +445,8 @@ description: Artifact commands cube_with_error.kcl
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
322,
|
||||
329,
|
||||
351,
|
||||
358,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -457,8 +457,8 @@ description: Artifact commands cube_with_error.kcl
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
322,
|
||||
329,
|
||||
351,
|
||||
358,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -468,8 +468,8 @@ description: Artifact commands cube_with_error.kcl
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
337,
|
||||
361,
|
||||
366,
|
||||
390,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -488,8 +488,8 @@ description: Artifact commands cube_with_error.kcl
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
337,
|
||||
361,
|
||||
366,
|
||||
390,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -502,8 +502,8 @@ description: Artifact commands cube_with_error.kcl
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
337,
|
||||
361,
|
||||
366,
|
||||
390,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -513,8 +513,8 @@ description: Artifact commands cube_with_error.kcl
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
337,
|
||||
361,
|
||||
366,
|
||||
390,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -525,8 +525,8 @@ description: Artifact commands cube_with_error.kcl
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
337,
|
||||
361,
|
||||
366,
|
||||
390,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Artifact graph flowchart cube_with_error.kcl
|
||||
extension: md
|
||||
snapshot_kind: binary
|
||||
|
@ -1,16 +1,16 @@
|
||||
```mermaid
|
||||
flowchart LR
|
||||
subgraph path2 [Path]
|
||||
2["Path<br>[177, 194, 0]"]
|
||||
3["Segment<br>[202, 224, 0]"]
|
||||
4["Segment<br>[232, 254, 0]"]
|
||||
5["Segment<br>[262, 284, 0]"]
|
||||
6["Segment<br>[292, 314, 0]"]
|
||||
7["Segment<br>[322, 329, 0]"]
|
||||
2["Path<br>[202, 223, 0]"]
|
||||
3["Segment<br>[231, 253, 0]"]
|
||||
4["Segment<br>[261, 283, 0]"]
|
||||
5["Segment<br>[291, 313, 0]"]
|
||||
6["Segment<br>[321, 343, 0]"]
|
||||
7["Segment<br>[351, 358, 0]"]
|
||||
8[Solid2d]
|
||||
end
|
||||
1["Plane<br>[177, 194, 0]"]
|
||||
9["Sweep Extrusion<br>[337, 361, 0]"]
|
||||
9["Sweep Extrusion<br>[366, 390, 0]"]
|
||||
10[Wall]
|
||||
11[Wall]
|
||||
12[Wall]
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Result of parsing cube_with_error.kcl
|
||||
---
|
||||
{
|
||||
@ -7,7 +7,7 @@ description: Result of parsing cube_with_error.kcl
|
||||
"body": [
|
||||
{
|
||||
"declaration": {
|
||||
"end": 363,
|
||||
"end": 392,
|
||||
"id": {
|
||||
"end": 7,
|
||||
"name": "cube",
|
||||
@ -453,7 +453,7 @@ description: Result of parsing cube_with_error.kcl
|
||||
"arguments": [
|
||||
{
|
||||
"end": 193,
|
||||
"name": "p0",
|
||||
"name": "XY",
|
||||
"start": 191,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
@ -461,7 +461,7 @@ description: Result of parsing cube_with_error.kcl
|
||||
],
|
||||
"callee": {
|
||||
"end": 190,
|
||||
"name": "startSketchAt",
|
||||
"name": "startSketchOn",
|
||||
"start": 177,
|
||||
"type": "Identifier"
|
||||
},
|
||||
@ -470,6 +470,33 @@ description: Result of parsing cube_with_error.kcl
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 219,
|
||||
"name": "p0",
|
||||
"start": 217,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"end": 222,
|
||||
"start": 221,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 216,
|
||||
"name": "startProfileAt",
|
||||
"start": 202,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 223,
|
||||
"start": 202,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
@ -479,80 +506,51 @@ description: Result of parsing cube_with_error.kcl
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 223,
|
||||
"end": 252,
|
||||
"name": "p1",
|
||||
"start": 221,
|
||||
"start": 250,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 206,
|
||||
"end": 235,
|
||||
"name": "line",
|
||||
"start": 202,
|
||||
"start": 231,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 224,
|
||||
"start": 202,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 253,
|
||||
"start": 231,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 282,
|
||||
"name": "p2",
|
||||
"start": 251,
|
||||
"start": 280,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 236,
|
||||
"end": 265,
|
||||
"name": "line",
|
||||
"start": 232,
|
||||
"start": 261,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 254,
|
||||
"start": 232,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 283,
|
||||
"name": "p3",
|
||||
"start": 281,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 266,
|
||||
"name": "line",
|
||||
"start": 262,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 284,
|
||||
"start": 262,
|
||||
"start": 261,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
@ -566,22 +564,51 @@ description: Result of parsing cube_with_error.kcl
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 313,
|
||||
"name": "p0",
|
||||
"start": 311,
|
||||
"end": 312,
|
||||
"name": "p3",
|
||||
"start": 310,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 296,
|
||||
"end": 295,
|
||||
"name": "line",
|
||||
"start": 292,
|
||||
"start": 291,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 314,
|
||||
"start": 292,
|
||||
"end": 313,
|
||||
"start": 291,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 342,
|
||||
"name": "p0",
|
||||
"start": 340,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 325,
|
||||
"name": "line",
|
||||
"start": 321,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 343,
|
||||
"start": 321,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
@ -589,13 +616,13 @@ description: Result of parsing cube_with_error.kcl
|
||||
{
|
||||
"arguments": [],
|
||||
"callee": {
|
||||
"end": 327,
|
||||
"end": 356,
|
||||
"name": "close",
|
||||
"start": 322,
|
||||
"start": 351,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 329,
|
||||
"start": 322,
|
||||
"end": 358,
|
||||
"start": 351,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
@ -608,39 +635,39 @@ description: Result of parsing cube_with_error.kcl
|
||||
"name": "length"
|
||||
},
|
||||
"arg": {
|
||||
"end": 360,
|
||||
"end": 389,
|
||||
"name": "length",
|
||||
"start": 354,
|
||||
"start": 383,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 344,
|
||||
"end": 373,
|
||||
"name": "extrude",
|
||||
"start": 337,
|
||||
"start": 366,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 361,
|
||||
"start": 337,
|
||||
"end": 390,
|
||||
"start": 366,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"end": 361,
|
||||
"end": 390,
|
||||
"start": 177,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
},
|
||||
"end": 361,
|
||||
"end": 390,
|
||||
"start": 170,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 363,
|
||||
"end": 392,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"6": [
|
||||
@ -658,7 +685,7 @@ description: Result of parsing cube_with_error.kcl
|
||||
},
|
||||
"start": 24
|
||||
},
|
||||
"end": 363,
|
||||
"end": 392,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
@ -686,7 +713,7 @@ description: Result of parsing cube_with_error.kcl
|
||||
"start": 3,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 363,
|
||||
"end": 392,
|
||||
"kind": "fn",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
@ -694,19 +721,19 @@ description: Result of parsing cube_with_error.kcl
|
||||
},
|
||||
{
|
||||
"declaration": {
|
||||
"end": 390,
|
||||
"end": 419,
|
||||
"id": {
|
||||
"end": 371,
|
||||
"end": 400,
|
||||
"name": "myCube",
|
||||
"start": 365,
|
||||
"start": 394,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"arguments": [
|
||||
{
|
||||
"end": 381,
|
||||
"end": 410,
|
||||
"raw": "40",
|
||||
"start": 379,
|
||||
"start": 408,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -717,9 +744,9 @@ description: Result of parsing cube_with_error.kcl
|
||||
{
|
||||
"elements": [
|
||||
{
|
||||
"end": 385,
|
||||
"end": 414,
|
||||
"raw": "0",
|
||||
"start": 384,
|
||||
"start": 413,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -728,9 +755,9 @@ description: Result of parsing cube_with_error.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 388,
|
||||
"end": 417,
|
||||
"raw": "0",
|
||||
"start": 387,
|
||||
"start": 416,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -739,53 +766,53 @@ description: Result of parsing cube_with_error.kcl
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 389,
|
||||
"start": 383,
|
||||
"end": 418,
|
||||
"start": 412,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 378,
|
||||
"end": 407,
|
||||
"name": "cube",
|
||||
"start": 374,
|
||||
"start": 403,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 390,
|
||||
"start": 374,
|
||||
"end": 419,
|
||||
"start": 403,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
"start": 365,
|
||||
"start": 394,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 390,
|
||||
"end": 419,
|
||||
"kind": "const",
|
||||
"start": 365,
|
||||
"start": 394,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"end": 439,
|
||||
"end": 468,
|
||||
"expression": {
|
||||
"end": 439,
|
||||
"end": 468,
|
||||
"name": "foo",
|
||||
"start": 436,
|
||||
"start": 465,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 436,
|
||||
"start": 465,
|
||||
"type": "ExpressionStatement",
|
||||
"type": "ExpressionStatement"
|
||||
}
|
||||
],
|
||||
"end": 440,
|
||||
"end": 469,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"0": [
|
||||
{
|
||||
"end": 365,
|
||||
"start": 363,
|
||||
"end": 394,
|
||||
"start": 392,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "newLine"
|
||||
@ -794,8 +821,8 @@ description: Result of parsing cube_with_error.kcl
|
||||
],
|
||||
"1": [
|
||||
{
|
||||
"end": 435,
|
||||
"start": 390,
|
||||
"end": 464,
|
||||
"start": 419,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "newLineBlockComment",
|
||||
|
@ -1,13 +1,13 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Error from executing cube_with_error.kcl
|
||||
---
|
||||
KCL UndefinedValue error
|
||||
|
||||
× undefined value: memory item key `foo` is not defined
|
||||
╭─[22:1]
|
||||
21 │ // Error, after creating meaningful output.
|
||||
22 │ foo
|
||||
╭─[23:1]
|
||||
22 │ // Error, after creating meaningful output.
|
||||
23 │ foo
|
||||
· ─┬─
|
||||
· ╰── tests/cube_with_error/input.kcl
|
||||
╰────
|
||||
|
@ -7,7 +7,8 @@ fn cube(length, center) {
|
||||
p2 = [l + x, l + y]
|
||||
p3 = [l + x, -l + y]
|
||||
|
||||
return startSketchAt(p0)
|
||||
return startSketchOn(XY)
|
||||
|> startProfileAt(p0, %)
|
||||
|> line(endAbsolute = p1)
|
||||
|> line(endAbsolute = p2)
|
||||
|> line(endAbsolute = p3)
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Operations executed cube_with_error.kcl
|
||||
---
|
||||
[
|
||||
@ -8,17 +8,40 @@ description: Operations executed cube_with_error.kcl
|
||||
"name": "cube",
|
||||
"functionSourceRange": [
|
||||
7,
|
||||
363,
|
||||
392,
|
||||
0
|
||||
],
|
||||
"unlabeledArg": null,
|
||||
"labeledArgs": {},
|
||||
"sourceRange": [
|
||||
374,
|
||||
390,
|
||||
403,
|
||||
419,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"data": {
|
||||
"value": {
|
||||
"type": "Plane",
|
||||
"artifact_id": "[uuid]"
|
||||
},
|
||||
"sourceRange": [
|
||||
191,
|
||||
193,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "startSketchOn",
|
||||
"sourceRange": [
|
||||
177,
|
||||
194,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": null
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"length": {
|
||||
@ -36,16 +59,16 @@ description: Operations executed cube_with_error.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
354,
|
||||
360,
|
||||
383,
|
||||
389,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "extrude",
|
||||
"sourceRange": [
|
||||
337,
|
||||
361,
|
||||
366,
|
||||
390,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Artifact graph flowchart fillet-and-shell.kcl
|
||||
extension: md
|
||||
snapshot_kind: binary
|
||||
|
@ -1,76 +1,76 @@
|
||||
```mermaid
|
||||
flowchart LR
|
||||
subgraph path2 [Path]
|
||||
2["Path<br>[373, 461, 0]"]
|
||||
3["Segment<br>[467, 558, 0]"]
|
||||
4["Segment<br>[564, 655, 0]"]
|
||||
5["Segment<br>[661, 754, 0]"]
|
||||
6["Segment<br>[760, 768, 0]"]
|
||||
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]"]
|
||||
7[Solid2d]
|
||||
end
|
||||
subgraph path9 [Path]
|
||||
9["Path<br>[802, 827, 0]"]
|
||||
10["Segment<br>[833, 881, 0]"]
|
||||
11["Segment<br>[887, 944, 0]"]
|
||||
12["Segment<br>[950, 999, 0]"]
|
||||
13["Segment<br>[1005, 1024, 0]"]
|
||||
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]"]
|
||||
14[Solid2d]
|
||||
end
|
||||
subgraph path31 [Path]
|
||||
31["Path<br>[1337, 1362, 0]"]
|
||||
31["Path<br>[1364, 1389, 0]"]
|
||||
end
|
||||
subgraph path32 [Path]
|
||||
32["Path<br>[1370, 1407, 0]"]
|
||||
33["Segment<br>[1370, 1407, 0]"]
|
||||
32["Path<br>[1397, 1434, 0]"]
|
||||
33["Segment<br>[1397, 1434, 0]"]
|
||||
34[Solid2d]
|
||||
end
|
||||
subgraph path35 [Path]
|
||||
35["Path<br>[1420, 1458, 0]"]
|
||||
36["Segment<br>[1420, 1458, 0]"]
|
||||
35["Path<br>[1447, 1485, 0]"]
|
||||
36["Segment<br>[1447, 1485, 0]"]
|
||||
37[Solid2d]
|
||||
end
|
||||
subgraph path45 [Path]
|
||||
45["Path<br>[1337, 1362, 0]"]
|
||||
45["Path<br>[1364, 1389, 0]"]
|
||||
end
|
||||
subgraph path46 [Path]
|
||||
46["Path<br>[1370, 1407, 0]"]
|
||||
47["Segment<br>[1370, 1407, 0]"]
|
||||
46["Path<br>[1397, 1434, 0]"]
|
||||
47["Segment<br>[1397, 1434, 0]"]
|
||||
48[Solid2d]
|
||||
end
|
||||
subgraph path49 [Path]
|
||||
49["Path<br>[1420, 1458, 0]"]
|
||||
50["Segment<br>[1420, 1458, 0]"]
|
||||
49["Path<br>[1447, 1485, 0]"]
|
||||
50["Segment<br>[1447, 1485, 0]"]
|
||||
51[Solid2d]
|
||||
end
|
||||
subgraph path59 [Path]
|
||||
59["Path<br>[1337, 1362, 0]"]
|
||||
59["Path<br>[1364, 1389, 0]"]
|
||||
end
|
||||
subgraph path60 [Path]
|
||||
60["Path<br>[1370, 1407, 0]"]
|
||||
61["Segment<br>[1370, 1407, 0]"]
|
||||
60["Path<br>[1397, 1434, 0]"]
|
||||
61["Segment<br>[1397, 1434, 0]"]
|
||||
62[Solid2d]
|
||||
end
|
||||
subgraph path63 [Path]
|
||||
63["Path<br>[1420, 1458, 0]"]
|
||||
64["Segment<br>[1420, 1458, 0]"]
|
||||
63["Path<br>[1447, 1485, 0]"]
|
||||
64["Segment<br>[1447, 1485, 0]"]
|
||||
65[Solid2d]
|
||||
end
|
||||
subgraph path73 [Path]
|
||||
73["Path<br>[1337, 1362, 0]"]
|
||||
73["Path<br>[1364, 1389, 0]"]
|
||||
end
|
||||
subgraph path74 [Path]
|
||||
74["Path<br>[1370, 1407, 0]"]
|
||||
75["Segment<br>[1370, 1407, 0]"]
|
||||
74["Path<br>[1397, 1434, 0]"]
|
||||
75["Segment<br>[1397, 1434, 0]"]
|
||||
76[Solid2d]
|
||||
end
|
||||
subgraph path77 [Path]
|
||||
77["Path<br>[1420, 1458, 0]"]
|
||||
78["Segment<br>[1420, 1458, 0]"]
|
||||
77["Path<br>[1447, 1485, 0]"]
|
||||
78["Segment<br>[1447, 1485, 0]"]
|
||||
79[Solid2d]
|
||||
end
|
||||
1["Plane<br>[373, 461, 0]"]
|
||||
8["Plane<br>[777, 796, 0]"]
|
||||
15["Sweep Extrusion<br>[1030, 1058, 0]"]
|
||||
1["Plane<br>[373, 390, 0]"]
|
||||
8["Plane<br>[804, 823, 0]"]
|
||||
15["Sweep Extrusion<br>[1057, 1085, 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>[1310, 1329, 0]"]
|
||||
38["Sweep Extrusion<br>[1470, 1494, 0]"]
|
||||
30["Plane<br>[1337, 1356, 0]"]
|
||||
38["Sweep Extrusion<br>[1497, 1521, 0]"]
|
||||
39[Wall]
|
||||
40["Cap Start"]
|
||||
41["Cap End"]
|
||||
42["SweepEdge Opposite"]
|
||||
43["SweepEdge Adjacent"]
|
||||
44["Plane<br>[1310, 1329, 0]"]
|
||||
52["Sweep Extrusion<br>[1470, 1494, 0]"]
|
||||
44["Plane<br>[1337, 1356, 0]"]
|
||||
52["Sweep Extrusion<br>[1497, 1521, 0]"]
|
||||
53[Wall]
|
||||
54["Cap Start"]
|
||||
55["Cap End"]
|
||||
56["SweepEdge Opposite"]
|
||||
57["SweepEdge Adjacent"]
|
||||
58["Plane<br>[1310, 1329, 0]"]
|
||||
66["Sweep Extrusion<br>[1470, 1494, 0]"]
|
||||
58["Plane<br>[1337, 1356, 0]"]
|
||||
66["Sweep Extrusion<br>[1497, 1521, 0]"]
|
||||
67[Wall]
|
||||
68["Cap Start"]
|
||||
69["Cap End"]
|
||||
70["SweepEdge Opposite"]
|
||||
71["SweepEdge Adjacent"]
|
||||
72["Plane<br>[1310, 1329, 0]"]
|
||||
80["Sweep Extrusion<br>[1470, 1494, 0]"]
|
||||
72["Plane<br>[1337, 1356, 0]"]
|
||||
80["Sweep Extrusion<br>[1497, 1521, 0]"]
|
||||
81[Wall]
|
||||
82["Cap Start"]
|
||||
83["Cap End"]
|
||||
84["SweepEdge Opposite"]
|
||||
85["SweepEdge Adjacent"]
|
||||
86["EdgeCut Fillet<br>[1064, 1270, 0]"]
|
||||
87["EdgeCut Fillet<br>[1064, 1270, 0]"]
|
||||
88["EdgeCut Fillet<br>[1064, 1270, 0]"]
|
||||
89["EdgeCut Fillet<br>[1064, 1270, 0]"]
|
||||
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]"]
|
||||
1 --- 2
|
||||
2 --- 3
|
||||
2 --- 4
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -22,10 +22,11 @@ miniHdmiWidth = 11.2
|
||||
microUsbWidth = 7.4
|
||||
connectorPadding = 4
|
||||
|
||||
miniHdmiHole = startSketchAt([
|
||||
miniHdmiHole = startSketchOn(XY)
|
||||
|> startProfileAt([
|
||||
0,
|
||||
border + miniHdmiDistance - (miniHdmiWidth / 2)
|
||||
])
|
||||
], %)
|
||||
|> line(endAbsolute = [
|
||||
0,
|
||||
border + miniHdmiDistance + miniHdmiWidth / 2
|
||||
|
@ -1,8 +1,31 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Operations executed fillet-and-shell.kcl
|
||||
---
|
||||
[
|
||||
{
|
||||
"labeledArgs": {
|
||||
"data": {
|
||||
"value": {
|
||||
"type": "Plane",
|
||||
"artifact_id": "[uuid]"
|
||||
},
|
||||
"sourceRange": [
|
||||
387,
|
||||
389,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "startSketchOn",
|
||||
"sourceRange": [
|
||||
373,
|
||||
390,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": null
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"data": {
|
||||
@ -11,16 +34,16 @@ description: Operations executed fillet-and-shell.kcl
|
||||
"value": "XY"
|
||||
},
|
||||
"sourceRange": [
|
||||
791,
|
||||
795,
|
||||
818,
|
||||
822,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "startSketchOn",
|
||||
"sourceRange": [
|
||||
777,
|
||||
796,
|
||||
804,
|
||||
823,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
@ -43,16 +66,16 @@ description: Operations executed fillet-and-shell.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1047,
|
||||
1057,
|
||||
1074,
|
||||
1084,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "extrude",
|
||||
"sourceRange": [
|
||||
1030,
|
||||
1058,
|
||||
1057,
|
||||
1085,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
@ -87,8 +110,8 @@ description: Operations executed fillet-and-shell.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1088,
|
||||
1089,
|
||||
1115,
|
||||
1116,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -115,16 +138,16 @@ description: Operations executed fillet-and-shell.kcl
|
||||
]
|
||||
},
|
||||
"sourceRange": [
|
||||
1105,
|
||||
1262,
|
||||
1132,
|
||||
1289,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "fillet",
|
||||
"sourceRange": [
|
||||
1064,
|
||||
1270,
|
||||
1091,
|
||||
1297,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
@ -146,15 +169,15 @@ description: Operations executed fillet-and-shell.kcl
|
||||
"type": "UserDefinedFunctionCall",
|
||||
"name": "m25Screw",
|
||||
"functionSourceRange": [
|
||||
1283,
|
||||
1511,
|
||||
1310,
|
||||
1538,
|
||||
0
|
||||
],
|
||||
"unlabeledArg": null,
|
||||
"labeledArgs": {},
|
||||
"sourceRange": [
|
||||
1513,
|
||||
1642,
|
||||
1540,
|
||||
1669,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -166,16 +189,16 @@ description: Operations executed fillet-and-shell.kcl
|
||||
"value": "XY"
|
||||
},
|
||||
"sourceRange": [
|
||||
1324,
|
||||
1328,
|
||||
1351,
|
||||
1355,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "startSketchOn",
|
||||
"sourceRange": [
|
||||
1310,
|
||||
1329,
|
||||
1337,
|
||||
1356,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
@ -191,8 +214,8 @@ description: Operations executed fillet-and-shell.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1420,
|
||||
1458,
|
||||
1447,
|
||||
1485,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -204,16 +227,16 @@ description: Operations executed fillet-and-shell.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1460,
|
||||
1461,
|
||||
1487,
|
||||
1488,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "hole",
|
||||
"sourceRange": [
|
||||
1415,
|
||||
1462,
|
||||
1442,
|
||||
1489,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
@ -236,16 +259,16 @@ description: Operations executed fillet-and-shell.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1487,
|
||||
1493,
|
||||
1514,
|
||||
1520,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "extrude",
|
||||
"sourceRange": [
|
||||
1470,
|
||||
1494,
|
||||
1497,
|
||||
1521,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
@ -270,15 +293,15 @@ description: Operations executed fillet-and-shell.kcl
|
||||
"type": "UserDefinedFunctionCall",
|
||||
"name": "m25Screw",
|
||||
"functionSourceRange": [
|
||||
1283,
|
||||
1511,
|
||||
1310,
|
||||
1538,
|
||||
0
|
||||
],
|
||||
"unlabeledArg": null,
|
||||
"labeledArgs": {},
|
||||
"sourceRange": [
|
||||
1644,
|
||||
1771,
|
||||
1671,
|
||||
1798,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -290,16 +313,16 @@ description: Operations executed fillet-and-shell.kcl
|
||||
"value": "XY"
|
||||
},
|
||||
"sourceRange": [
|
||||
1324,
|
||||
1328,
|
||||
1351,
|
||||
1355,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "startSketchOn",
|
||||
"sourceRange": [
|
||||
1310,
|
||||
1329,
|
||||
1337,
|
||||
1356,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
@ -315,8 +338,8 @@ description: Operations executed fillet-and-shell.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1420,
|
||||
1458,
|
||||
1447,
|
||||
1485,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -328,16 +351,16 @@ description: Operations executed fillet-and-shell.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1460,
|
||||
1461,
|
||||
1487,
|
||||
1488,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "hole",
|
||||
"sourceRange": [
|
||||
1415,
|
||||
1462,
|
||||
1442,
|
||||
1489,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
@ -360,16 +383,16 @@ description: Operations executed fillet-and-shell.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1487,
|
||||
1493,
|
||||
1514,
|
||||
1520,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "extrude",
|
||||
"sourceRange": [
|
||||
1470,
|
||||
1494,
|
||||
1497,
|
||||
1521,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
@ -394,15 +417,15 @@ description: Operations executed fillet-and-shell.kcl
|
||||
"type": "UserDefinedFunctionCall",
|
||||
"name": "m25Screw",
|
||||
"functionSourceRange": [
|
||||
1283,
|
||||
1511,
|
||||
1310,
|
||||
1538,
|
||||
0
|
||||
],
|
||||
"unlabeledArg": null,
|
||||
"labeledArgs": {},
|
||||
"sourceRange": [
|
||||
1773,
|
||||
1898,
|
||||
1800,
|
||||
1925,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -414,16 +437,16 @@ description: Operations executed fillet-and-shell.kcl
|
||||
"value": "XY"
|
||||
},
|
||||
"sourceRange": [
|
||||
1324,
|
||||
1328,
|
||||
1351,
|
||||
1355,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "startSketchOn",
|
||||
"sourceRange": [
|
||||
1310,
|
||||
1329,
|
||||
1337,
|
||||
1356,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
@ -439,8 +462,8 @@ description: Operations executed fillet-and-shell.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1420,
|
||||
1458,
|
||||
1447,
|
||||
1485,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -452,16 +475,16 @@ description: Operations executed fillet-and-shell.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1460,
|
||||
1461,
|
||||
1487,
|
||||
1488,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "hole",
|
||||
"sourceRange": [
|
||||
1415,
|
||||
1462,
|
||||
1442,
|
||||
1489,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
@ -484,16 +507,16 @@ description: Operations executed fillet-and-shell.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1487,
|
||||
1493,
|
||||
1514,
|
||||
1520,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "extrude",
|
||||
"sourceRange": [
|
||||
1470,
|
||||
1494,
|
||||
1497,
|
||||
1521,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
@ -518,15 +541,15 @@ description: Operations executed fillet-and-shell.kcl
|
||||
"type": "UserDefinedFunctionCall",
|
||||
"name": "m25Screw",
|
||||
"functionSourceRange": [
|
||||
1283,
|
||||
1511,
|
||||
1310,
|
||||
1538,
|
||||
0
|
||||
],
|
||||
"unlabeledArg": null,
|
||||
"labeledArgs": {},
|
||||
"sourceRange": [
|
||||
1900,
|
||||
2027,
|
||||
1927,
|
||||
2054,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -538,16 +561,16 @@ description: Operations executed fillet-and-shell.kcl
|
||||
"value": "XY"
|
||||
},
|
||||
"sourceRange": [
|
||||
1324,
|
||||
1328,
|
||||
1351,
|
||||
1355,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "startSketchOn",
|
||||
"sourceRange": [
|
||||
1310,
|
||||
1329,
|
||||
1337,
|
||||
1356,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
@ -563,8 +586,8 @@ description: Operations executed fillet-and-shell.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1420,
|
||||
1458,
|
||||
1447,
|
||||
1485,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -576,16 +599,16 @@ description: Operations executed fillet-and-shell.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1460,
|
||||
1461,
|
||||
1487,
|
||||
1488,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "hole",
|
||||
"sourceRange": [
|
||||
1415,
|
||||
1462,
|
||||
1442,
|
||||
1489,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
@ -608,16 +631,16 @@ description: Operations executed fillet-and-shell.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
1487,
|
||||
1493,
|
||||
1514,
|
||||
1520,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "extrude",
|
||||
"sourceRange": [
|
||||
1470,
|
||||
1494,
|
||||
1497,
|
||||
1521,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
@ -651,8 +674,8 @@ description: Operations executed fillet-and-shell.kcl
|
||||
]
|
||||
},
|
||||
"sourceRange": [
|
||||
2049,
|
||||
2056,
|
||||
2076,
|
||||
2083,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -671,16 +694,16 @@ description: Operations executed fillet-and-shell.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
2070,
|
||||
2083,
|
||||
2097,
|
||||
2110,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "shell",
|
||||
"sourceRange": [
|
||||
2029,
|
||||
2084,
|
||||
2056,
|
||||
2111,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
@ -692,8 +715,8 @@ description: Operations executed fillet-and-shell.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
2035,
|
||||
2039,
|
||||
2062,
|
||||
2066,
|
||||
0
|
||||
]
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Variables in memory after executing fillet-and-shell.kcl
|
||||
---
|
||||
{
|
||||
@ -36,13 +36,13 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
833,
|
||||
881,
|
||||
860,
|
||||
908,
|
||||
0
|
||||
],
|
||||
"tag": {
|
||||
"end": 880,
|
||||
"start": 874,
|
||||
"end": 907,
|
||||
"start": 901,
|
||||
"type": "TagDeclarator",
|
||||
"value": "edge1"
|
||||
},
|
||||
@ -52,13 +52,13 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
887,
|
||||
944,
|
||||
914,
|
||||
971,
|
||||
0
|
||||
],
|
||||
"tag": {
|
||||
"end": 943,
|
||||
"start": 937,
|
||||
"end": 970,
|
||||
"start": 964,
|
||||
"type": "TagDeclarator",
|
||||
"value": "edge2"
|
||||
},
|
||||
@ -68,13 +68,13 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
950,
|
||||
999,
|
||||
977,
|
||||
1026,
|
||||
0
|
||||
],
|
||||
"tag": {
|
||||
"end": 998,
|
||||
"start": 992,
|
||||
"end": 1025,
|
||||
"start": 1019,
|
||||
"type": "TagDeclarator",
|
||||
"value": "edge3"
|
||||
},
|
||||
@ -84,13 +84,13 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1005,
|
||||
1024,
|
||||
1032,
|
||||
1051,
|
||||
0
|
||||
],
|
||||
"tag": {
|
||||
"end": 1023,
|
||||
"start": 1017,
|
||||
"end": 1050,
|
||||
"start": 1044,
|
||||
"type": "TagDeclarator",
|
||||
"value": "edge4"
|
||||
},
|
||||
@ -105,8 +105,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
833,
|
||||
881,
|
||||
860,
|
||||
908,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -115,8 +115,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
0.0
|
||||
],
|
||||
"tag": {
|
||||
"end": 880,
|
||||
"start": 874,
|
||||
"end": 907,
|
||||
"start": 901,
|
||||
"type": "TagDeclarator",
|
||||
"value": "edge1"
|
||||
},
|
||||
@ -133,8 +133,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
887,
|
||||
944,
|
||||
914,
|
||||
971,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -143,8 +143,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
0.0
|
||||
],
|
||||
"tag": {
|
||||
"end": 943,
|
||||
"start": 937,
|
||||
"end": 970,
|
||||
"start": 964,
|
||||
"type": "TagDeclarator",
|
||||
"value": "edge2"
|
||||
},
|
||||
@ -161,8 +161,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
950,
|
||||
999,
|
||||
977,
|
||||
1026,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -171,8 +171,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
73.0
|
||||
],
|
||||
"tag": {
|
||||
"end": 998,
|
||||
"start": 992,
|
||||
"end": 1025,
|
||||
"start": 1019,
|
||||
"type": "TagDeclarator",
|
||||
"value": "edge3"
|
||||
},
|
||||
@ -189,8 +189,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1005,
|
||||
1024,
|
||||
1032,
|
||||
1051,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -199,8 +199,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
73.0
|
||||
],
|
||||
"tag": {
|
||||
"end": 1023,
|
||||
"start": 1017,
|
||||
"end": 1050,
|
||||
"start": 1044,
|
||||
"type": "TagDeclarator",
|
||||
"value": "edge4"
|
||||
},
|
||||
@ -260,8 +260,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
802,
|
||||
827,
|
||||
829,
|
||||
854,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -278,8 +278,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
833,
|
||||
881,
|
||||
860,
|
||||
908,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -288,8 +288,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
0.0
|
||||
],
|
||||
"tag": {
|
||||
"end": 880,
|
||||
"start": 874,
|
||||
"end": 907,
|
||||
"start": 901,
|
||||
"type": "TagDeclarator",
|
||||
"value": "edge1"
|
||||
},
|
||||
@ -306,13 +306,13 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
833,
|
||||
881,
|
||||
860,
|
||||
908,
|
||||
0
|
||||
],
|
||||
"tag": {
|
||||
"end": 880,
|
||||
"start": 874,
|
||||
"end": 907,
|
||||
"start": 901,
|
||||
"type": "TagDeclarator",
|
||||
"value": "edge1"
|
||||
},
|
||||
@ -322,8 +322,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
874,
|
||||
880,
|
||||
901,
|
||||
907,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -340,8 +340,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
887,
|
||||
944,
|
||||
914,
|
||||
971,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -350,8 +350,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
0.0
|
||||
],
|
||||
"tag": {
|
||||
"end": 943,
|
||||
"start": 937,
|
||||
"end": 970,
|
||||
"start": 964,
|
||||
"type": "TagDeclarator",
|
||||
"value": "edge2"
|
||||
},
|
||||
@ -368,13 +368,13 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
887,
|
||||
944,
|
||||
914,
|
||||
971,
|
||||
0
|
||||
],
|
||||
"tag": {
|
||||
"end": 943,
|
||||
"start": 937,
|
||||
"end": 970,
|
||||
"start": 964,
|
||||
"type": "TagDeclarator",
|
||||
"value": "edge2"
|
||||
},
|
||||
@ -384,8 +384,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
937,
|
||||
943,
|
||||
964,
|
||||
970,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -402,8 +402,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
950,
|
||||
999,
|
||||
977,
|
||||
1026,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -412,8 +412,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
73.0
|
||||
],
|
||||
"tag": {
|
||||
"end": 998,
|
||||
"start": 992,
|
||||
"end": 1025,
|
||||
"start": 1019,
|
||||
"type": "TagDeclarator",
|
||||
"value": "edge3"
|
||||
},
|
||||
@ -430,13 +430,13 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
950,
|
||||
999,
|
||||
977,
|
||||
1026,
|
||||
0
|
||||
],
|
||||
"tag": {
|
||||
"end": 998,
|
||||
"start": 992,
|
||||
"end": 1025,
|
||||
"start": 1019,
|
||||
"type": "TagDeclarator",
|
||||
"value": "edge3"
|
||||
},
|
||||
@ -446,8 +446,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
992,
|
||||
998,
|
||||
1019,
|
||||
1025,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -464,8 +464,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1005,
|
||||
1024,
|
||||
1032,
|
||||
1051,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -474,8 +474,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
73.0
|
||||
],
|
||||
"tag": {
|
||||
"end": 1023,
|
||||
"start": 1017,
|
||||
"end": 1050,
|
||||
"start": 1044,
|
||||
"type": "TagDeclarator",
|
||||
"value": "edge4"
|
||||
},
|
||||
@ -492,13 +492,13 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1005,
|
||||
1024,
|
||||
1032,
|
||||
1051,
|
||||
0
|
||||
],
|
||||
"tag": {
|
||||
"end": 1023,
|
||||
"start": 1017,
|
||||
"end": 1050,
|
||||
"start": 1044,
|
||||
"type": "TagDeclarator",
|
||||
"value": "edge4"
|
||||
},
|
||||
@ -508,8 +508,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
1017,
|
||||
1023,
|
||||
1044,
|
||||
1050,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -524,8 +524,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
802,
|
||||
827,
|
||||
829,
|
||||
854,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -570,8 +570,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
802,
|
||||
827,
|
||||
829,
|
||||
854,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -716,8 +716,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
833,
|
||||
881,
|
||||
860,
|
||||
908,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -726,8 +726,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
0.0
|
||||
],
|
||||
"tag": {
|
||||
"end": 880,
|
||||
"start": 874,
|
||||
"end": 907,
|
||||
"start": 901,
|
||||
"type": "TagDeclarator",
|
||||
"value": "edge1"
|
||||
},
|
||||
@ -744,13 +744,13 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
833,
|
||||
881,
|
||||
860,
|
||||
908,
|
||||
0
|
||||
],
|
||||
"tag": {
|
||||
"end": 880,
|
||||
"start": 874,
|
||||
"end": 907,
|
||||
"start": 901,
|
||||
"type": "TagDeclarator",
|
||||
"value": "edge1"
|
||||
},
|
||||
@ -760,8 +760,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
874,
|
||||
880,
|
||||
901,
|
||||
907,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -779,8 +779,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
887,
|
||||
944,
|
||||
914,
|
||||
971,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -789,8 +789,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
0.0
|
||||
],
|
||||
"tag": {
|
||||
"end": 943,
|
||||
"start": 937,
|
||||
"end": 970,
|
||||
"start": 964,
|
||||
"type": "TagDeclarator",
|
||||
"value": "edge2"
|
||||
},
|
||||
@ -807,13 +807,13 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
887,
|
||||
944,
|
||||
914,
|
||||
971,
|
||||
0
|
||||
],
|
||||
"tag": {
|
||||
"end": 943,
|
||||
"start": 937,
|
||||
"end": 970,
|
||||
"start": 964,
|
||||
"type": "TagDeclarator",
|
||||
"value": "edge2"
|
||||
},
|
||||
@ -823,8 +823,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
937,
|
||||
943,
|
||||
964,
|
||||
970,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -842,8 +842,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
950,
|
||||
999,
|
||||
977,
|
||||
1026,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -852,8 +852,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
73.0
|
||||
],
|
||||
"tag": {
|
||||
"end": 998,
|
||||
"start": 992,
|
||||
"end": 1025,
|
||||
"start": 1019,
|
||||
"type": "TagDeclarator",
|
||||
"value": "edge3"
|
||||
},
|
||||
@ -870,13 +870,13 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
950,
|
||||
999,
|
||||
977,
|
||||
1026,
|
||||
0
|
||||
],
|
||||
"tag": {
|
||||
"end": 998,
|
||||
"start": 992,
|
||||
"end": 1025,
|
||||
"start": 1019,
|
||||
"type": "TagDeclarator",
|
||||
"value": "edge3"
|
||||
},
|
||||
@ -886,8 +886,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
992,
|
||||
998,
|
||||
1019,
|
||||
1025,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -905,8 +905,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1005,
|
||||
1024,
|
||||
1032,
|
||||
1051,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -915,8 +915,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
73.0
|
||||
],
|
||||
"tag": {
|
||||
"end": 1023,
|
||||
"start": 1017,
|
||||
"end": 1050,
|
||||
"start": 1044,
|
||||
"type": "TagDeclarator",
|
||||
"value": "edge4"
|
||||
},
|
||||
@ -933,13 +933,13 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1005,
|
||||
1024,
|
||||
1032,
|
||||
1051,
|
||||
0
|
||||
],
|
||||
"tag": {
|
||||
"end": 1023,
|
||||
"start": 1017,
|
||||
"end": 1050,
|
||||
"start": 1044,
|
||||
"type": "TagDeclarator",
|
||||
"value": "edge4"
|
||||
},
|
||||
@ -949,8 +949,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
1017,
|
||||
1023,
|
||||
1044,
|
||||
1050,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -984,8 +984,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
1283,
|
||||
1511,
|
||||
1310,
|
||||
1538,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -1089,8 +1089,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
467,
|
||||
558,
|
||||
494,
|
||||
585,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1112,8 +1112,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
564,
|
||||
655,
|
||||
591,
|
||||
682,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1135,8 +1135,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
661,
|
||||
754,
|
||||
688,
|
||||
781,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1158,8 +1158,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
760,
|
||||
768,
|
||||
787,
|
||||
795,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1224,8 +1224,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
373,
|
||||
461,
|
||||
396,
|
||||
488,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -1238,8 +1238,8 @@ description: Variables in memory after executing fillet-and-shell.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
373,
|
||||
461,
|
||||
396,
|
||||
488,
|
||||
0
|
||||
]
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Artifact graph flowchart i_shape.kcl
|
||||
extension: md
|
||||
snapshot_kind: binary
|
||||
|
@ -1,50 +1,50 @@
|
||||
```mermaid
|
||||
flowchart LR
|
||||
subgraph path2 [Path]
|
||||
2["Path<br>[399, 432, 0]"]
|
||||
3["Segment<br>[438, 478, 0]"]
|
||||
4["Segment<br>[484, 542, 0]"]
|
||||
5["Segment<br>[548, 578, 0]"]
|
||||
6["Segment<br>[584, 643, 0]"]
|
||||
7["Segment<br>[649, 708, 0]"]
|
||||
8["Segment<br>[714, 773, 0]"]
|
||||
9["Segment<br>[779, 831, 0]"]
|
||||
10["Segment<br>[837, 895, 0]"]
|
||||
11["Segment<br>[901, 937, 0]"]
|
||||
12["Segment<br>[943, 1001, 0]"]
|
||||
13["Segment<br>[1007, 1037, 0]"]
|
||||
14["Segment<br>[1043, 1102, 0]"]
|
||||
15["Segment<br>[1108, 1171, 0]"]
|
||||
16["Segment<br>[1177, 1237, 0]"]
|
||||
17["Segment<br>[1243, 1276, 0]"]
|
||||
18["Segment<br>[1282, 1341, 0]"]
|
||||
19["Segment<br>[1347, 1383, 0]"]
|
||||
20["Segment<br>[1389, 1448, 0]"]
|
||||
21["Segment<br>[1454, 1509, 0]"]
|
||||
22["Segment<br>[1515, 1575, 0]"]
|
||||
23["Segment<br>[1581, 1705, 0]"]
|
||||
24["Segment<br>[1711, 1771, 0]"]
|
||||
25["Segment<br>[1777, 1810, 0]"]
|
||||
26["Segment<br>[1816, 1875, 0]"]
|
||||
27["Segment<br>[1881, 1889, 0]"]
|
||||
2["Path<br>[422, 459, 0]"]
|
||||
3["Segment<br>[465, 505, 0]"]
|
||||
4["Segment<br>[511, 569, 0]"]
|
||||
5["Segment<br>[575, 605, 0]"]
|
||||
6["Segment<br>[611, 670, 0]"]
|
||||
7["Segment<br>[676, 735, 0]"]
|
||||
8["Segment<br>[741, 800, 0]"]
|
||||
9["Segment<br>[806, 858, 0]"]
|
||||
10["Segment<br>[864, 922, 0]"]
|
||||
11["Segment<br>[928, 964, 0]"]
|
||||
12["Segment<br>[970, 1028, 0]"]
|
||||
13["Segment<br>[1034, 1064, 0]"]
|
||||
14["Segment<br>[1070, 1129, 0]"]
|
||||
15["Segment<br>[1135, 1198, 0]"]
|
||||
16["Segment<br>[1204, 1264, 0]"]
|
||||
17["Segment<br>[1270, 1303, 0]"]
|
||||
18["Segment<br>[1309, 1368, 0]"]
|
||||
19["Segment<br>[1374, 1410, 0]"]
|
||||
20["Segment<br>[1416, 1475, 0]"]
|
||||
21["Segment<br>[1481, 1536, 0]"]
|
||||
22["Segment<br>[1542, 1602, 0]"]
|
||||
23["Segment<br>[1608, 1732, 0]"]
|
||||
24["Segment<br>[1738, 1798, 0]"]
|
||||
25["Segment<br>[1804, 1837, 0]"]
|
||||
26["Segment<br>[1843, 1902, 0]"]
|
||||
27["Segment<br>[1908, 1916, 0]"]
|
||||
28[Solid2d]
|
||||
end
|
||||
subgraph path30 [Path]
|
||||
30["Path<br>[1899, 1920, 0]"]
|
||||
31["Segment<br>[1926, 1939, 0]"]
|
||||
32["Segment<br>[1945, 2003, 0]"]
|
||||
33["Segment<br>[2009, 2045, 0]"]
|
||||
34["Segment<br>[2051, 2110, 0]"]
|
||||
35["Segment<br>[2116, 2130, 0]"]
|
||||
36["Segment<br>[2136, 2196, 0]"]
|
||||
37["Segment<br>[2202, 2241, 0]"]
|
||||
38["Segment<br>[2247, 2306, 0]"]
|
||||
39["Segment<br>[2312, 2320, 0]"]
|
||||
30["Path<br>[1949, 1974, 0]"]
|
||||
31["Segment<br>[1980, 1993, 0]"]
|
||||
32["Segment<br>[1999, 2057, 0]"]
|
||||
33["Segment<br>[2063, 2099, 0]"]
|
||||
34["Segment<br>[2105, 2164, 0]"]
|
||||
35["Segment<br>[2170, 2184, 0]"]
|
||||
36["Segment<br>[2190, 2250, 0]"]
|
||||
37["Segment<br>[2256, 2295, 0]"]
|
||||
38["Segment<br>[2301, 2360, 0]"]
|
||||
39["Segment<br>[2366, 2374, 0]"]
|
||||
40[Solid2d]
|
||||
end
|
||||
1["Plane<br>[399, 432, 0]"]
|
||||
29["Plane<br>[1899, 1920, 0]"]
|
||||
41["Sweep Extrusion<br>[2366, 2387, 0]"]
|
||||
1["Plane<br>[399, 416, 0]"]
|
||||
29["Plane<br>[1926, 1943, 0]"]
|
||||
41["Sweep Extrusion<br>[2420, 2441, 0]"]
|
||||
42[Wall]
|
||||
43[Wall]
|
||||
44[Wall]
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -7,7 +7,8 @@ corner_radius = 5.0
|
||||
// At first I thought this was going to be symmetric,
|
||||
// but I measured intentionally to not be symmetric,
|
||||
// because your wrist isn't a perfect cylindrical surface
|
||||
brace_base = startSketchAt([corner_radius, 0])
|
||||
brace_base = startSketchOn(XY)
|
||||
|> startProfileAt([corner_radius, 0], %)
|
||||
|> line(end = [width - corner_radius, 0.0])
|
||||
|> tangentialArcToRelative([corner_radius, corner_radius], %)
|
||||
|> yLine(25.0 - corner_radius, %)
|
||||
@ -34,7 +35,8 @@ brace_base = startSketchAt([corner_radius, 0])
|
||||
|> tangentialArcToRelative([corner_radius, -corner_radius], %)
|
||||
|> close(%)
|
||||
|
||||
inner = startSketchAt([0, 0])
|
||||
inner = startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> xLine(1.0, %)
|
||||
|> tangentialArcToRelative([corner_radius, corner_radius], %)
|
||||
|> yLine(25.0 - (corner_radius * 2), %)
|
||||
|
@ -1,8 +1,54 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Operations executed i_shape.kcl
|
||||
---
|
||||
[
|
||||
{
|
||||
"labeledArgs": {
|
||||
"data": {
|
||||
"value": {
|
||||
"type": "Plane",
|
||||
"artifact_id": "[uuid]"
|
||||
},
|
||||
"sourceRange": [
|
||||
413,
|
||||
415,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "startSketchOn",
|
||||
"sourceRange": [
|
||||
399,
|
||||
416,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": null
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"data": {
|
||||
"value": {
|
||||
"type": "Plane",
|
||||
"artifact_id": "[uuid]"
|
||||
},
|
||||
"sourceRange": [
|
||||
1940,
|
||||
1942,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "startSketchOn",
|
||||
"sourceRange": [
|
||||
1926,
|
||||
1943,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": null
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"holeSketch": {
|
||||
@ -13,8 +59,8 @@ description: Operations executed i_shape.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
2351,
|
||||
2356,
|
||||
2405,
|
||||
2410,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -26,16 +72,16 @@ description: Operations executed i_shape.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
2358,
|
||||
2359,
|
||||
2412,
|
||||
2413,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "hole",
|
||||
"sourceRange": [
|
||||
2346,
|
||||
2360,
|
||||
2400,
|
||||
2414,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
@ -58,16 +104,16 @@ description: Operations executed i_shape.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
2383,
|
||||
2386,
|
||||
2437,
|
||||
2440,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "extrude",
|
||||
"sourceRange": [
|
||||
2366,
|
||||
2387,
|
||||
2420,
|
||||
2441,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Variables in memory after executing i_shape.kcl
|
||||
---
|
||||
{
|
||||
@ -13,8 +13,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
438,
|
||||
478,
|
||||
465,
|
||||
505,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -36,8 +36,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
484,
|
||||
542,
|
||||
511,
|
||||
569,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -64,8 +64,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
548,
|
||||
578,
|
||||
575,
|
||||
605,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -87,8 +87,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
584,
|
||||
643,
|
||||
611,
|
||||
670,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -115,8 +115,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
649,
|
||||
708,
|
||||
676,
|
||||
735,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -138,8 +138,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
714,
|
||||
773,
|
||||
741,
|
||||
800,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -166,8 +166,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
779,
|
||||
831,
|
||||
806,
|
||||
858,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -189,8 +189,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
837,
|
||||
895,
|
||||
864,
|
||||
922,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -217,8 +217,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
901,
|
||||
937,
|
||||
928,
|
||||
964,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -240,8 +240,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
943,
|
||||
1001,
|
||||
970,
|
||||
1028,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -268,8 +268,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1007,
|
||||
1037,
|
||||
1034,
|
||||
1064,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -291,8 +291,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1043,
|
||||
1102,
|
||||
1070,
|
||||
1129,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -319,8 +319,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1108,
|
||||
1171,
|
||||
1135,
|
||||
1198,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -342,8 +342,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1177,
|
||||
1237,
|
||||
1204,
|
||||
1264,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -370,8 +370,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1243,
|
||||
1276,
|
||||
1270,
|
||||
1303,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -393,8 +393,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1282,
|
||||
1341,
|
||||
1309,
|
||||
1368,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -421,8 +421,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1347,
|
||||
1383,
|
||||
1374,
|
||||
1410,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -444,8 +444,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1389,
|
||||
1448,
|
||||
1416,
|
||||
1475,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -472,8 +472,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1454,
|
||||
1509,
|
||||
1481,
|
||||
1536,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -495,8 +495,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1515,
|
||||
1575,
|
||||
1542,
|
||||
1602,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -523,8 +523,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1581,
|
||||
1705,
|
||||
1608,
|
||||
1732,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -546,8 +546,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1711,
|
||||
1771,
|
||||
1738,
|
||||
1798,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -574,8 +574,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1777,
|
||||
1810,
|
||||
1804,
|
||||
1837,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -597,8 +597,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1816,
|
||||
1875,
|
||||
1843,
|
||||
1902,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -625,8 +625,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1881,
|
||||
1889,
|
||||
1908,
|
||||
1916,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -691,8 +691,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
399,
|
||||
432,
|
||||
422,
|
||||
459,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -705,8 +705,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
399,
|
||||
432,
|
||||
422,
|
||||
459,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -848,8 +848,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
438,
|
||||
478,
|
||||
465,
|
||||
505,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -859,8 +859,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
484,
|
||||
542,
|
||||
511,
|
||||
569,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -870,8 +870,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
548,
|
||||
578,
|
||||
575,
|
||||
605,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -881,8 +881,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
584,
|
||||
643,
|
||||
611,
|
||||
670,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -892,8 +892,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
649,
|
||||
708,
|
||||
676,
|
||||
735,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -903,8 +903,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
714,
|
||||
773,
|
||||
741,
|
||||
800,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -914,8 +914,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
779,
|
||||
831,
|
||||
806,
|
||||
858,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -925,8 +925,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
837,
|
||||
895,
|
||||
864,
|
||||
922,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -936,8 +936,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
901,
|
||||
937,
|
||||
928,
|
||||
964,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -947,8 +947,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
943,
|
||||
1001,
|
||||
970,
|
||||
1028,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -958,8 +958,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1007,
|
||||
1037,
|
||||
1034,
|
||||
1064,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -969,8 +969,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1043,
|
||||
1102,
|
||||
1070,
|
||||
1129,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -980,8 +980,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1108,
|
||||
1171,
|
||||
1135,
|
||||
1198,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -991,8 +991,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1177,
|
||||
1237,
|
||||
1204,
|
||||
1264,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -1002,8 +1002,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1243,
|
||||
1276,
|
||||
1270,
|
||||
1303,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -1013,8 +1013,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1282,
|
||||
1341,
|
||||
1309,
|
||||
1368,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -1024,8 +1024,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1347,
|
||||
1383,
|
||||
1374,
|
||||
1410,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -1035,8 +1035,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1389,
|
||||
1448,
|
||||
1416,
|
||||
1475,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -1046,8 +1046,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1454,
|
||||
1509,
|
||||
1481,
|
||||
1536,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -1057,8 +1057,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1515,
|
||||
1575,
|
||||
1542,
|
||||
1602,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -1068,8 +1068,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1581,
|
||||
1705,
|
||||
1608,
|
||||
1732,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -1079,8 +1079,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1711,
|
||||
1771,
|
||||
1738,
|
||||
1798,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -1090,8 +1090,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1777,
|
||||
1810,
|
||||
1804,
|
||||
1837,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -1101,8 +1101,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1816,
|
||||
1875,
|
||||
1843,
|
||||
1902,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -1117,8 +1117,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
438,
|
||||
478,
|
||||
465,
|
||||
505,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1140,8 +1140,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
484,
|
||||
542,
|
||||
511,
|
||||
569,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1168,8 +1168,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
548,
|
||||
578,
|
||||
575,
|
||||
605,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1191,8 +1191,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
584,
|
||||
643,
|
||||
611,
|
||||
670,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1219,8 +1219,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
649,
|
||||
708,
|
||||
676,
|
||||
735,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1242,8 +1242,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
714,
|
||||
773,
|
||||
741,
|
||||
800,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1270,8 +1270,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
779,
|
||||
831,
|
||||
806,
|
||||
858,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1293,8 +1293,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
837,
|
||||
895,
|
||||
864,
|
||||
922,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1321,8 +1321,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
901,
|
||||
937,
|
||||
928,
|
||||
964,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1344,8 +1344,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
943,
|
||||
1001,
|
||||
970,
|
||||
1028,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1372,8 +1372,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1007,
|
||||
1037,
|
||||
1034,
|
||||
1064,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1395,8 +1395,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1043,
|
||||
1102,
|
||||
1070,
|
||||
1129,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1423,8 +1423,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1108,
|
||||
1171,
|
||||
1135,
|
||||
1198,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1446,8 +1446,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1177,
|
||||
1237,
|
||||
1204,
|
||||
1264,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1474,8 +1474,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1243,
|
||||
1276,
|
||||
1270,
|
||||
1303,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1497,8 +1497,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1282,
|
||||
1341,
|
||||
1309,
|
||||
1368,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1525,8 +1525,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1347,
|
||||
1383,
|
||||
1374,
|
||||
1410,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1548,8 +1548,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1389,
|
||||
1448,
|
||||
1416,
|
||||
1475,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1576,8 +1576,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1454,
|
||||
1509,
|
||||
1481,
|
||||
1536,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1599,8 +1599,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1515,
|
||||
1575,
|
||||
1542,
|
||||
1602,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1627,8 +1627,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1581,
|
||||
1705,
|
||||
1608,
|
||||
1732,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1650,8 +1650,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1711,
|
||||
1771,
|
||||
1738,
|
||||
1798,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1678,8 +1678,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1777,
|
||||
1810,
|
||||
1804,
|
||||
1837,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1701,8 +1701,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1816,
|
||||
1875,
|
||||
1843,
|
||||
1902,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1729,8 +1729,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1881,
|
||||
1889,
|
||||
1908,
|
||||
1916,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1795,8 +1795,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
399,
|
||||
432,
|
||||
422,
|
||||
459,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -1809,8 +1809,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
399,
|
||||
432,
|
||||
422,
|
||||
459,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -1825,8 +1825,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
399,
|
||||
432,
|
||||
422,
|
||||
459,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -1865,8 +1865,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1926,
|
||||
1939,
|
||||
1980,
|
||||
1993,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1888,8 +1888,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1945,
|
||||
2003,
|
||||
1999,
|
||||
2057,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1916,8 +1916,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
2009,
|
||||
2045,
|
||||
2063,
|
||||
2099,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1939,8 +1939,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
2051,
|
||||
2110,
|
||||
2105,
|
||||
2164,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1967,8 +1967,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
2116,
|
||||
2130,
|
||||
2170,
|
||||
2184,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -1990,8 +1990,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
2136,
|
||||
2196,
|
||||
2190,
|
||||
2250,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -2018,8 +2018,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
2202,
|
||||
2241,
|
||||
2256,
|
||||
2295,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -2041,8 +2041,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
2247,
|
||||
2306,
|
||||
2301,
|
||||
2360,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -2069,8 +2069,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
2312,
|
||||
2320,
|
||||
2366,
|
||||
2374,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -2135,8 +2135,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
1899,
|
||||
1920,
|
||||
1949,
|
||||
1974,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -2149,8 +2149,8 @@ description: Variables in memory after executing i_shape.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
1899,
|
||||
1920,
|
||||
1949,
|
||||
1974,
|
||||
0
|
||||
]
|
||||
}
|
||||
|
@ -1,450 +0,0 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
description: Result of parsing multi_transform.kcl
|
||||
snapshot_kind: text
|
||||
---
|
||||
{
|
||||
"Ok": {
|
||||
"body": [
|
||||
{
|
||||
"declarations": [
|
||||
{
|
||||
"end": 111,
|
||||
"id": {
|
||||
"end": 12,
|
||||
"name": "transform",
|
||||
"start": 3,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"argument": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 68,
|
||||
"properties": [
|
||||
{
|
||||
"end": 66,
|
||||
"key": {
|
||||
"end": 50,
|
||||
"name": "translate",
|
||||
"start": 41,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 41,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 59,
|
||||
"left": {
|
||||
"end": 55,
|
||||
"raw": "30",
|
||||
"start": 53,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": 30
|
||||
},
|
||||
"operator": "*",
|
||||
"right": {
|
||||
"end": 59,
|
||||
"name": "i",
|
||||
"start": 58,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 53,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
{
|
||||
"end": 62,
|
||||
"raw": "0",
|
||||
"start": 61,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"end": 65,
|
||||
"raw": "0",
|
||||
"start": 64,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": 0
|
||||
}
|
||||
],
|
||||
"end": 66,
|
||||
"start": 52,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 39,
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression"
|
||||
},
|
||||
{
|
||||
"end": 105,
|
||||
"properties": [
|
||||
{
|
||||
"end": 103,
|
||||
"key": {
|
||||
"end": 84,
|
||||
"name": "rotation",
|
||||
"start": 76,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 76,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"end": 103,
|
||||
"properties": [
|
||||
{
|
||||
"end": 101,
|
||||
"key": {
|
||||
"end": 93,
|
||||
"name": "angle",
|
||||
"start": 88,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 88,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"end": 101,
|
||||
"left": {
|
||||
"end": 97,
|
||||
"raw": "45",
|
||||
"start": 95,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": 45
|
||||
},
|
||||
"operator": "*",
|
||||
"right": {
|
||||
"end": 101,
|
||||
"name": "i",
|
||||
"start": 100,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 95,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 86,
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 74,
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression"
|
||||
}
|
||||
],
|
||||
"end": 109,
|
||||
"start": 33,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
"end": 109,
|
||||
"start": 26,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 111,
|
||||
"start": 22
|
||||
},
|
||||
"end": 111,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 17,
|
||||
"name": "i",
|
||||
"start": 16,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"optional": false
|
||||
}
|
||||
],
|
||||
"start": 15,
|
||||
"type": "FunctionExpression",
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"start": 3,
|
||||
"type": "VariableDeclarator"
|
||||
}
|
||||
],
|
||||
"end": 111,
|
||||
"kind": "fn",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"end": 303,
|
||||
"expression": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"elements": [
|
||||
{
|
||||
"end": 128,
|
||||
"raw": "0",
|
||||
"start": 127,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"end": 131,
|
||||
"raw": "0",
|
||||
"start": 130,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": 0
|
||||
}
|
||||
],
|
||||
"end": 132,
|
||||
"start": 126,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 125,
|
||||
"name": "startSketchAt",
|
||||
"start": 112,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 133,
|
||||
"optional": false,
|
||||
"start": 112,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 241,
|
||||
"properties": [
|
||||
{
|
||||
"end": 166,
|
||||
"key": {
|
||||
"end": 162,
|
||||
"name": "radius",
|
||||
"start": 156,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 156,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"end": 166,
|
||||
"raw": "10",
|
||||
"start": 164,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": 10
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 186,
|
||||
"key": {
|
||||
"end": 183,
|
||||
"name": "numSides",
|
||||
"start": 175,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 175,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"end": 186,
|
||||
"raw": "4",
|
||||
"start": 185,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": 4
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 209,
|
||||
"key": {
|
||||
"end": 201,
|
||||
"name": "center",
|
||||
"start": 195,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 195,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 205,
|
||||
"raw": "0",
|
||||
"start": 204,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"end": 208,
|
||||
"raw": "0",
|
||||
"start": 207,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": 0
|
||||
}
|
||||
],
|
||||
"end": 209,
|
||||
"start": 203,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 234,
|
||||
"key": {
|
||||
"end": 227,
|
||||
"name": "inscribed",
|
||||
"start": 218,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 218,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"end": 234,
|
||||
"raw": "false",
|
||||
"start": 229,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 147,
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression"
|
||||
},
|
||||
{
|
||||
"end": 244,
|
||||
"start": 243,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 146,
|
||||
"name": "polygon",
|
||||
"start": 139,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 245,
|
||||
"optional": false,
|
||||
"start": 139,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 260,
|
||||
"raw": "4",
|
||||
"start": 259,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": 4
|
||||
},
|
||||
{
|
||||
"end": 263,
|
||||
"start": 262,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 258,
|
||||
"name": "extrude",
|
||||
"start": 251,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 264,
|
||||
"optional": false,
|
||||
"start": 251,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 288,
|
||||
"raw": "3",
|
||||
"start": 287,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": 3
|
||||
},
|
||||
{
|
||||
"end": 299,
|
||||
"name": "transform",
|
||||
"start": 290,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"end": 302,
|
||||
"start": 301,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 286,
|
||||
"name": "patternTransform",
|
||||
"start": 270,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 303,
|
||||
"optional": false,
|
||||
"start": 270,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
}
|
||||
],
|
||||
"end": 303,
|
||||
"start": 112,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
},
|
||||
"start": 112,
|
||||
"type": "ExpressionStatement",
|
||||
"type": "ExpressionStatement"
|
||||
}
|
||||
],
|
||||
"end": 305,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"1": [
|
||||
{
|
||||
"end": 305,
|
||||
"start": 303,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "newLine"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"startNodes": []
|
||||
},
|
||||
"start": 0
|
||||
}
|
||||
}
|
@ -4,7 +4,8 @@ fn transform = (i) => {
|
||||
{ rotation: { angle: 45 * i } }
|
||||
]
|
||||
}
|
||||
startSketchAt([0, 0])
|
||||
startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> polygon({
|
||||
radius: 10,
|
||||
numSides: 4,
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Artifact commands parametric_with_tan_arc.kcl
|
||||
snapshot_kind: text
|
||||
---
|
||||
[
|
||||
{
|
||||
@ -286,7 +285,7 @@ snapshot_kind: text
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
239,
|
||||
260,
|
||||
256,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -314,8 +313,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
239,
|
||||
260,
|
||||
262,
|
||||
287,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -334,8 +333,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
239,
|
||||
260,
|
||||
262,
|
||||
287,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -345,8 +344,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
239,
|
||||
260,
|
||||
262,
|
||||
287,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -362,8 +361,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
266,
|
||||
293,
|
||||
320,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -383,8 +382,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
299,
|
||||
350,
|
||||
326,
|
||||
377,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -403,8 +402,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
356,
|
||||
385,
|
||||
383,
|
||||
412,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -424,8 +423,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
391,
|
||||
418,
|
||||
445,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -445,8 +444,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
424,
|
||||
452,
|
||||
451,
|
||||
479,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -466,8 +465,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
458,
|
||||
541,
|
||||
485,
|
||||
568,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -486,8 +485,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
547,
|
||||
575,
|
||||
574,
|
||||
602,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -507,8 +506,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
581,
|
||||
589,
|
||||
608,
|
||||
616,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -519,8 +518,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
581,
|
||||
589,
|
||||
608,
|
||||
616,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -530,8 +529,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
595,
|
||||
618,
|
||||
622,
|
||||
645,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -550,8 +549,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
595,
|
||||
618,
|
||||
622,
|
||||
645,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -564,8 +563,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
595,
|
||||
618,
|
||||
622,
|
||||
645,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -575,8 +574,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
595,
|
||||
618,
|
||||
622,
|
||||
645,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -587,8 +586,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
595,
|
||||
618,
|
||||
622,
|
||||
645,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -600,8 +599,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
595,
|
||||
618,
|
||||
622,
|
||||
645,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -614,8 +613,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
595,
|
||||
618,
|
||||
622,
|
||||
645,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -628,8 +627,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
595,
|
||||
618,
|
||||
622,
|
||||
645,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -642,8 +641,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
595,
|
||||
618,
|
||||
622,
|
||||
645,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -656,8 +655,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
595,
|
||||
618,
|
||||
622,
|
||||
645,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -670,8 +669,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
595,
|
||||
618,
|
||||
622,
|
||||
645,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -684,8 +683,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
595,
|
||||
618,
|
||||
622,
|
||||
645,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -698,8 +697,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
595,
|
||||
618,
|
||||
622,
|
||||
645,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -712,8 +711,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
595,
|
||||
618,
|
||||
622,
|
||||
645,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -726,8 +725,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
595,
|
||||
618,
|
||||
622,
|
||||
645,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -740,8 +739,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
595,
|
||||
618,
|
||||
622,
|
||||
645,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -754,8 +753,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
595,
|
||||
618,
|
||||
622,
|
||||
645,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -768,8 +767,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
595,
|
||||
618,
|
||||
622,
|
||||
645,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -782,8 +781,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
595,
|
||||
618,
|
||||
622,
|
||||
645,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -796,8 +795,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
595,
|
||||
618,
|
||||
622,
|
||||
645,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -810,8 +809,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
595,
|
||||
618,
|
||||
622,
|
||||
645,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Artifact graph flowchart parametric_with_tan_arc.kcl
|
||||
extension: md
|
||||
snapshot_kind: binary
|
||||
|
@ -1,19 +1,19 @@
|
||||
```mermaid
|
||||
flowchart LR
|
||||
subgraph path2 [Path]
|
||||
2["Path<br>[239, 260, 0]"]
|
||||
3["Segment<br>[266, 293, 0]"]
|
||||
4["Segment<br>[299, 350, 0]"]
|
||||
5["Segment<br>[356, 385, 0]"]
|
||||
6["Segment<br>[391, 418, 0]"]
|
||||
7["Segment<br>[424, 452, 0]"]
|
||||
8["Segment<br>[458, 541, 0]"]
|
||||
9["Segment<br>[547, 575, 0]"]
|
||||
10["Segment<br>[581, 589, 0]"]
|
||||
2["Path<br>[262, 287, 0]"]
|
||||
3["Segment<br>[293, 320, 0]"]
|
||||
4["Segment<br>[326, 377, 0]"]
|
||||
5["Segment<br>[383, 412, 0]"]
|
||||
6["Segment<br>[418, 445, 0]"]
|
||||
7["Segment<br>[451, 479, 0]"]
|
||||
8["Segment<br>[485, 568, 0]"]
|
||||
9["Segment<br>[574, 602, 0]"]
|
||||
10["Segment<br>[608, 616, 0]"]
|
||||
11[Solid2d]
|
||||
end
|
||||
1["Plane<br>[239, 260, 0]"]
|
||||
12["Sweep Extrusion<br>[595, 618, 0]"]
|
||||
1["Plane<br>[239, 256, 0]"]
|
||||
12["Sweep Extrusion<br>[622, 645, 0]"]
|
||||
13[Wall]
|
||||
14[Wall]
|
||||
15[Wall]
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Result of parsing parametric_with_tan_arc.kcl
|
||||
---
|
||||
{
|
||||
@ -366,7 +366,7 @@ description: Result of parsing parametric_with_tan_arc.kcl
|
||||
},
|
||||
{
|
||||
"declaration": {
|
||||
"end": 618,
|
||||
"end": 645,
|
||||
"id": {
|
||||
"end": 236,
|
||||
"name": "bracket",
|
||||
@ -377,44 +377,21 @@ description: Result of parsing parametric_with_tan_arc.kcl
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"elements": [
|
||||
{
|
||||
"end": 255,
|
||||
"raw": "0",
|
||||
"start": 254,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 258,
|
||||
"raw": "0",
|
||||
"start": 257,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 259,
|
||||
"name": "XY",
|
||||
"start": 253,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 252,
|
||||
"name": "startSketchAt",
|
||||
"name": "startSketchOn",
|
||||
"start": 239,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 260,
|
||||
"end": 256,
|
||||
"start": 239,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
@ -422,12 +399,6 @@ description: Result of parsing parametric_with_tan_arc.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 279,
|
||||
@ -441,28 +412,84 @@ description: Result of parsing parametric_with_tan_arc.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 291,
|
||||
"name": "wallMountL",
|
||||
"end": 282,
|
||||
"raw": "0",
|
||||
"start": 281,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 283,
|
||||
"start": 277,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"end": 286,
|
||||
"start": 285,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 276,
|
||||
"name": "startProfileAt",
|
||||
"start": 262,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 287,
|
||||
"start": 262,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 306,
|
||||
"raw": "0",
|
||||
"start": 305,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 318,
|
||||
"name": "wallMountL",
|
||||
"start": 308,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
],
|
||||
"end": 292,
|
||||
"start": 277,
|
||||
"end": 319,
|
||||
"start": 304,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 270,
|
||||
"end": 297,
|
||||
"name": "line",
|
||||
"start": 266,
|
||||
"start": 293,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 293,
|
||||
"start": 266,
|
||||
"end": 320,
|
||||
"start": 293,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
@ -470,40 +497,40 @@ description: Result of parsing parametric_with_tan_arc.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 346,
|
||||
"end": 373,
|
||||
"properties": [
|
||||
{
|
||||
"end": 331,
|
||||
"end": 358,
|
||||
"key": {
|
||||
"end": 321,
|
||||
"end": 348,
|
||||
"name": "radius",
|
||||
"start": 315,
|
||||
"start": 342,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 315,
|
||||
"start": 342,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"end": 331,
|
||||
"end": 358,
|
||||
"name": "filletR",
|
||||
"start": 324,
|
||||
"start": 351,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 344,
|
||||
"end": 371,
|
||||
"key": {
|
||||
"end": 339,
|
||||
"end": 366,
|
||||
"name": "offset",
|
||||
"start": 333,
|
||||
"start": 360,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 333,
|
||||
"start": 360,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"end": 344,
|
||||
"end": 371,
|
||||
"raw": "90",
|
||||
"start": 342,
|
||||
"start": 369,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -513,25 +540,25 @@ description: Result of parsing parametric_with_tan_arc.kcl
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 313,
|
||||
"start": 340,
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression"
|
||||
},
|
||||
{
|
||||
"end": 349,
|
||||
"start": 348,
|
||||
"end": 376,
|
||||
"start": 375,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 312,
|
||||
"end": 339,
|
||||
"name": "tangentialArc",
|
||||
"start": 299,
|
||||
"start": 326,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 350,
|
||||
"start": 299,
|
||||
"end": 377,
|
||||
"start": 326,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
@ -547,22 +574,22 @@ description: Result of parsing parametric_with_tan_arc.kcl
|
||||
"elements": [
|
||||
{
|
||||
"argument": {
|
||||
"end": 380,
|
||||
"end": 407,
|
||||
"name": "shelfMountL",
|
||||
"start": 369,
|
||||
"start": 396,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 380,
|
||||
"end": 407,
|
||||
"operator": "-",
|
||||
"start": 368,
|
||||
"start": 395,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
},
|
||||
{
|
||||
"end": 383,
|
||||
"end": 410,
|
||||
"raw": "0",
|
||||
"start": 382,
|
||||
"start": 409,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -571,21 +598,21 @@ description: Result of parsing parametric_with_tan_arc.kcl
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 384,
|
||||
"start": 367,
|
||||
"end": 411,
|
||||
"start": 394,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 360,
|
||||
"end": 387,
|
||||
"name": "line",
|
||||
"start": 356,
|
||||
"start": 383,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 385,
|
||||
"start": 356,
|
||||
"end": 412,
|
||||
"start": 383,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
@ -601,9 +628,9 @@ description: Result of parsing parametric_with_tan_arc.kcl
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 404,
|
||||
"end": 431,
|
||||
"raw": "0",
|
||||
"start": 403,
|
||||
"start": 430,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -613,34 +640,34 @@ description: Result of parsing parametric_with_tan_arc.kcl
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"end": 416,
|
||||
"end": 443,
|
||||
"name": "thickness",
|
||||
"start": 407,
|
||||
"start": 434,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 416,
|
||||
"end": 443,
|
||||
"operator": "-",
|
||||
"start": 406,
|
||||
"start": 433,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
}
|
||||
],
|
||||
"end": 417,
|
||||
"start": 402,
|
||||
"end": 444,
|
||||
"start": 429,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 395,
|
||||
"end": 422,
|
||||
"name": "line",
|
||||
"start": 391,
|
||||
"start": 418,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 418,
|
||||
"start": 391,
|
||||
"end": 445,
|
||||
"start": 418,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
@ -656,16 +683,16 @@ description: Result of parsing parametric_with_tan_arc.kcl
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 447,
|
||||
"end": 474,
|
||||
"name": "shelfMountL",
|
||||
"start": 436,
|
||||
"start": 463,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"end": 450,
|
||||
"end": 477,
|
||||
"raw": "0",
|
||||
"start": 449,
|
||||
"start": 476,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -674,21 +701,21 @@ description: Result of parsing parametric_with_tan_arc.kcl
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 451,
|
||||
"start": 435,
|
||||
"end": 478,
|
||||
"start": 462,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 428,
|
||||
"end": 455,
|
||||
"name": "line",
|
||||
"start": 424,
|
||||
"start": 451,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 452,
|
||||
"start": 424,
|
||||
"end": 479,
|
||||
"start": 451,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
@ -696,55 +723,55 @@ description: Result of parsing parametric_with_tan_arc.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 537,
|
||||
"end": 564,
|
||||
"properties": [
|
||||
{
|
||||
"end": 509,
|
||||
"end": 536,
|
||||
"key": {
|
||||
"end": 487,
|
||||
"end": 514,
|
||||
"name": "radius",
|
||||
"start": 481,
|
||||
"start": 508,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 481,
|
||||
"start": 508,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"end": 509,
|
||||
"end": 536,
|
||||
"left": {
|
||||
"end": 497,
|
||||
"end": 524,
|
||||
"name": "filletR",
|
||||
"start": 490,
|
||||
"start": 517,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"operator": "-",
|
||||
"right": {
|
||||
"end": 509,
|
||||
"end": 536,
|
||||
"name": "thickness",
|
||||
"start": 500,
|
||||
"start": 527,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 490,
|
||||
"start": 517,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 530,
|
||||
"end": 557,
|
||||
"key": {
|
||||
"end": 524,
|
||||
"end": 551,
|
||||
"name": "offset",
|
||||
"start": 518,
|
||||
"start": 545,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 518,
|
||||
"start": 545,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"argument": {
|
||||
"end": 530,
|
||||
"end": 557,
|
||||
"raw": "90",
|
||||
"start": 528,
|
||||
"start": 555,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -752,33 +779,33 @@ description: Result of parsing parametric_with_tan_arc.kcl
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"end": 530,
|
||||
"end": 557,
|
||||
"operator": "-",
|
||||
"start": 527,
|
||||
"start": 554,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 472,
|
||||
"start": 499,
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression"
|
||||
},
|
||||
{
|
||||
"end": 540,
|
||||
"start": 539,
|
||||
"end": 567,
|
||||
"start": 566,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 471,
|
||||
"end": 498,
|
||||
"name": "tangentialArc",
|
||||
"start": 458,
|
||||
"start": 485,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 541,
|
||||
"start": 458,
|
||||
"end": 568,
|
||||
"start": 485,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
@ -793,9 +820,9 @@ description: Result of parsing parametric_with_tan_arc.kcl
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 560,
|
||||
"end": 587,
|
||||
"raw": "0",
|
||||
"start": 559,
|
||||
"start": 586,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -805,34 +832,34 @@ description: Result of parsing parametric_with_tan_arc.kcl
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"end": 573,
|
||||
"end": 600,
|
||||
"name": "wallMountL",
|
||||
"start": 563,
|
||||
"start": 590,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 573,
|
||||
"end": 600,
|
||||
"operator": "-",
|
||||
"start": 562,
|
||||
"start": 589,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
}
|
||||
],
|
||||
"end": 574,
|
||||
"start": 558,
|
||||
"end": 601,
|
||||
"start": 585,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 551,
|
||||
"end": 578,
|
||||
"name": "line",
|
||||
"start": 547,
|
||||
"start": 574,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 575,
|
||||
"start": 547,
|
||||
"end": 602,
|
||||
"start": 574,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
@ -840,20 +867,20 @@ description: Result of parsing parametric_with_tan_arc.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 588,
|
||||
"start": 587,
|
||||
"end": 615,
|
||||
"start": 614,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 586,
|
||||
"end": 613,
|
||||
"name": "close",
|
||||
"start": 581,
|
||||
"start": 608,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 589,
|
||||
"start": 581,
|
||||
"end": 616,
|
||||
"start": 608,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
@ -866,28 +893,28 @@ description: Result of parsing parametric_with_tan_arc.kcl
|
||||
"name": "length"
|
||||
},
|
||||
"arg": {
|
||||
"end": 617,
|
||||
"end": 644,
|
||||
"name": "width",
|
||||
"start": 612,
|
||||
"start": 639,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 602,
|
||||
"end": 629,
|
||||
"name": "extrude",
|
||||
"start": 595,
|
||||
"start": 622,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 618,
|
||||
"start": 595,
|
||||
"end": 645,
|
||||
"start": 622,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"end": 618,
|
||||
"end": 645,
|
||||
"start": 239,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
@ -895,14 +922,14 @@ description: Result of parsing parametric_with_tan_arc.kcl
|
||||
"start": 229,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 618,
|
||||
"end": 645,
|
||||
"kind": "const",
|
||||
"start": 229,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
}
|
||||
],
|
||||
"end": 619,
|
||||
"end": 646,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"0": [
|
||||
|
@ -8,7 +8,8 @@ filletR = thickness * 2
|
||||
shelfMountL = 9
|
||||
wallMountL = 8
|
||||
|
||||
bracket = startSketchAt([0, 0])
|
||||
bracket = startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line(end = [0, wallMountL])
|
||||
|> tangentialArc({ radius = filletR, offset = 90 }, %)
|
||||
|> line(end = [-shelfMountL, 0])
|
||||
|
@ -1,8 +1,31 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Operations executed parametric_with_tan_arc.kcl
|
||||
---
|
||||
[
|
||||
{
|
||||
"labeledArgs": {
|
||||
"data": {
|
||||
"value": {
|
||||
"type": "Plane",
|
||||
"artifact_id": "[uuid]"
|
||||
},
|
||||
"sourceRange": [
|
||||
253,
|
||||
255,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "startSketchOn",
|
||||
"sourceRange": [
|
||||
239,
|
||||
256,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": null
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"length": {
|
||||
@ -20,16 +43,16 @@ description: Operations executed parametric_with_tan_arc.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
612,
|
||||
617,
|
||||
639,
|
||||
644,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "extrude",
|
||||
"sourceRange": [
|
||||
595,
|
||||
618,
|
||||
622,
|
||||
645,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Variables in memory after executing parametric_with_tan_arc.kcl
|
||||
---
|
||||
{
|
||||
@ -36,8 +36,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
266,
|
||||
293,
|
||||
320,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -47,8 +47,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
299,
|
||||
350,
|
||||
326,
|
||||
377,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -58,8 +58,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
356,
|
||||
385,
|
||||
383,
|
||||
412,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -69,8 +69,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
391,
|
||||
418,
|
||||
445,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -80,8 +80,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
424,
|
||||
452,
|
||||
451,
|
||||
479,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -91,8 +91,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
458,
|
||||
541,
|
||||
485,
|
||||
568,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -102,8 +102,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
547,
|
||||
575,
|
||||
574,
|
||||
602,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -113,8 +113,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
581,
|
||||
589,
|
||||
608,
|
||||
616,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -129,8 +129,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
266,
|
||||
293,
|
||||
320,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -152,8 +152,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
299,
|
||||
350,
|
||||
326,
|
||||
377,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -180,8 +180,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
356,
|
||||
385,
|
||||
383,
|
||||
412,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -203,8 +203,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
391,
|
||||
418,
|
||||
445,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -226,8 +226,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
424,
|
||||
452,
|
||||
451,
|
||||
479,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -249,8 +249,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
458,
|
||||
541,
|
||||
485,
|
||||
568,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -277,8 +277,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
547,
|
||||
575,
|
||||
574,
|
||||
602,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -300,8 +300,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
581,
|
||||
589,
|
||||
608,
|
||||
616,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -366,8 +366,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
239,
|
||||
260,
|
||||
262,
|
||||
287,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -380,8 +380,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
239,
|
||||
260,
|
||||
262,
|
||||
287,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -396,8 +396,8 @@ description: Variables in memory after executing parametric_with_tan_arc.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
239,
|
||||
260,
|
||||
262,
|
||||
287,
|
||||
0
|
||||
]
|
||||
}
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Artifact commands pipe_as_arg.kcl
|
||||
snapshot_kind: text
|
||||
---
|
||||
[
|
||||
{
|
||||
@ -314,8 +313,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
177,
|
||||
194,
|
||||
202,
|
||||
223,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -334,8 +333,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
177,
|
||||
194,
|
||||
202,
|
||||
223,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -345,8 +344,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
177,
|
||||
194,
|
||||
202,
|
||||
223,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -362,8 +361,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
202,
|
||||
224,
|
||||
231,
|
||||
253,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -383,8 +382,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
232,
|
||||
254,
|
||||
261,
|
||||
283,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -404,8 +403,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
262,
|
||||
284,
|
||||
291,
|
||||
313,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -425,8 +424,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
292,
|
||||
314,
|
||||
321,
|
||||
343,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -446,8 +445,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
322,
|
||||
330,
|
||||
351,
|
||||
359,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -458,8 +457,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
322,
|
||||
330,
|
||||
351,
|
||||
359,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -469,8 +468,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
338,
|
||||
362,
|
||||
367,
|
||||
391,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -489,8 +488,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
338,
|
||||
362,
|
||||
367,
|
||||
391,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -503,8 +502,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
338,
|
||||
362,
|
||||
367,
|
||||
391,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -514,8 +513,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
338,
|
||||
362,
|
||||
367,
|
||||
391,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -526,8 +525,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
338,
|
||||
362,
|
||||
367,
|
||||
391,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -539,8 +538,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
338,
|
||||
362,
|
||||
367,
|
||||
391,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -553,8 +552,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
338,
|
||||
362,
|
||||
367,
|
||||
391,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -567,8 +566,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
338,
|
||||
362,
|
||||
367,
|
||||
391,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -581,8 +580,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
338,
|
||||
362,
|
||||
367,
|
||||
391,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -595,8 +594,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
338,
|
||||
362,
|
||||
367,
|
||||
391,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -609,8 +608,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
338,
|
||||
362,
|
||||
367,
|
||||
391,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -623,8 +622,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
338,
|
||||
362,
|
||||
367,
|
||||
391,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -637,8 +636,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
338,
|
||||
362,
|
||||
367,
|
||||
391,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Artifact graph flowchart pipe_as_arg.kcl
|
||||
extension: md
|
||||
snapshot_kind: binary
|
||||
|
@ -1,16 +1,16 @@
|
||||
```mermaid
|
||||
flowchart LR
|
||||
subgraph path2 [Path]
|
||||
2["Path<br>[177, 194, 0]"]
|
||||
3["Segment<br>[202, 224, 0]"]
|
||||
4["Segment<br>[232, 254, 0]"]
|
||||
5["Segment<br>[262, 284, 0]"]
|
||||
6["Segment<br>[292, 314, 0]"]
|
||||
7["Segment<br>[322, 330, 0]"]
|
||||
2["Path<br>[202, 223, 0]"]
|
||||
3["Segment<br>[231, 253, 0]"]
|
||||
4["Segment<br>[261, 283, 0]"]
|
||||
5["Segment<br>[291, 313, 0]"]
|
||||
6["Segment<br>[321, 343, 0]"]
|
||||
7["Segment<br>[351, 359, 0]"]
|
||||
8[Solid2d]
|
||||
end
|
||||
1["Plane<br>[177, 194, 0]"]
|
||||
9["Sweep Extrusion<br>[338, 362, 0]"]
|
||||
9["Sweep Extrusion<br>[367, 391, 0]"]
|
||||
10[Wall]
|
||||
11[Wall]
|
||||
12[Wall]
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Result of parsing pipe_as_arg.kcl
|
||||
---
|
||||
{
|
||||
@ -7,7 +7,7 @@ description: Result of parsing pipe_as_arg.kcl
|
||||
"body": [
|
||||
{
|
||||
"declaration": {
|
||||
"end": 364,
|
||||
"end": 393,
|
||||
"id": {
|
||||
"end": 7,
|
||||
"name": "cube",
|
||||
@ -453,7 +453,7 @@ description: Result of parsing pipe_as_arg.kcl
|
||||
"arguments": [
|
||||
{
|
||||
"end": 193,
|
||||
"name": "p0",
|
||||
"name": "XY",
|
||||
"start": 191,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
@ -461,7 +461,7 @@ description: Result of parsing pipe_as_arg.kcl
|
||||
],
|
||||
"callee": {
|
||||
"end": 190,
|
||||
"name": "startSketchAt",
|
||||
"name": "startSketchOn",
|
||||
"start": 177,
|
||||
"type": "Identifier"
|
||||
},
|
||||
@ -470,6 +470,33 @@ description: Result of parsing pipe_as_arg.kcl
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 219,
|
||||
"name": "p0",
|
||||
"start": 217,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"end": 222,
|
||||
"start": 221,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 216,
|
||||
"name": "startProfileAt",
|
||||
"start": 202,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 223,
|
||||
"start": 202,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
@ -479,80 +506,51 @@ description: Result of parsing pipe_as_arg.kcl
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 223,
|
||||
"end": 252,
|
||||
"name": "p1",
|
||||
"start": 221,
|
||||
"start": 250,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 206,
|
||||
"end": 235,
|
||||
"name": "line",
|
||||
"start": 202,
|
||||
"start": 231,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 224,
|
||||
"start": 202,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 253,
|
||||
"start": 231,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 282,
|
||||
"name": "p2",
|
||||
"start": 251,
|
||||
"start": 280,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 236,
|
||||
"end": 265,
|
||||
"name": "line",
|
||||
"start": 232,
|
||||
"start": 261,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 254,
|
||||
"start": 232,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 283,
|
||||
"name": "p3",
|
||||
"start": 281,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 266,
|
||||
"name": "line",
|
||||
"start": 262,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 284,
|
||||
"start": 262,
|
||||
"start": 261,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
@ -566,22 +564,22 @@ description: Result of parsing pipe_as_arg.kcl
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 313,
|
||||
"name": "p0",
|
||||
"start": 311,
|
||||
"end": 312,
|
||||
"name": "p3",
|
||||
"start": 310,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 296,
|
||||
"end": 295,
|
||||
"name": "line",
|
||||
"start": 292,
|
||||
"start": 291,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 314,
|
||||
"start": 292,
|
||||
"end": 313,
|
||||
"start": 291,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
@ -589,20 +587,49 @@ description: Result of parsing pipe_as_arg.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 329,
|
||||
"start": 328,
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "endAbsolute"
|
||||
},
|
||||
"arg": {
|
||||
"end": 342,
|
||||
"name": "p0",
|
||||
"start": 340,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 325,
|
||||
"name": "line",
|
||||
"start": 321,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 343,
|
||||
"start": 321,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 358,
|
||||
"start": 357,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 327,
|
||||
"end": 356,
|
||||
"name": "close",
|
||||
"start": 322,
|
||||
"start": 351,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 330,
|
||||
"start": 322,
|
||||
"end": 359,
|
||||
"start": 351,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
@ -615,39 +642,39 @@ description: Result of parsing pipe_as_arg.kcl
|
||||
"name": "length"
|
||||
},
|
||||
"arg": {
|
||||
"end": 361,
|
||||
"end": 390,
|
||||
"name": "length",
|
||||
"start": 355,
|
||||
"start": 384,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 345,
|
||||
"end": 374,
|
||||
"name": "extrude",
|
||||
"start": 338,
|
||||
"start": 367,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 362,
|
||||
"start": 338,
|
||||
"end": 391,
|
||||
"start": 367,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"end": 362,
|
||||
"end": 391,
|
||||
"start": 177,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
},
|
||||
"end": 362,
|
||||
"end": 391,
|
||||
"start": 170,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 364,
|
||||
"end": 393,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"6": [
|
||||
@ -665,7 +692,7 @@ description: Result of parsing pipe_as_arg.kcl
|
||||
},
|
||||
"start": 24
|
||||
},
|
||||
"end": 364,
|
||||
"end": 393,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
@ -693,7 +720,7 @@ description: Result of parsing pipe_as_arg.kcl
|
||||
"start": 3,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 364,
|
||||
"end": 393,
|
||||
"kind": "fn",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
@ -701,11 +728,11 @@ description: Result of parsing pipe_as_arg.kcl
|
||||
},
|
||||
{
|
||||
"declaration": {
|
||||
"end": 397,
|
||||
"end": 426,
|
||||
"id": {
|
||||
"end": 375,
|
||||
"end": 404,
|
||||
"name": "double",
|
||||
"start": 369,
|
||||
"start": 398,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
@ -713,19 +740,19 @@ description: Result of parsing pipe_as_arg.kcl
|
||||
"body": [
|
||||
{
|
||||
"argument": {
|
||||
"end": 395,
|
||||
"end": 424,
|
||||
"left": {
|
||||
"end": 391,
|
||||
"end": 420,
|
||||
"name": "x",
|
||||
"start": 390,
|
||||
"start": 419,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"operator": "*",
|
||||
"right": {
|
||||
"end": 395,
|
||||
"end": 424,
|
||||
"raw": "2",
|
||||
"start": 394,
|
||||
"start": 423,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -733,51 +760,51 @@ description: Result of parsing pipe_as_arg.kcl
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"start": 390,
|
||||
"start": 419,
|
||||
"type": "BinaryExpression",
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
"end": 395,
|
||||
"start": 383,
|
||||
"end": 424,
|
||||
"start": 412,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 397,
|
||||
"start": 379
|
||||
"end": 426,
|
||||
"start": 408
|
||||
},
|
||||
"end": 397,
|
||||
"end": 426,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"end": 377,
|
||||
"end": 406,
|
||||
"name": "x",
|
||||
"start": 376,
|
||||
"start": 405,
|
||||
"type": "Identifier"
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 375,
|
||||
"start": 404,
|
||||
"type": "FunctionExpression",
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"start": 369,
|
||||
"start": 398,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 397,
|
||||
"end": 426,
|
||||
"kind": "fn",
|
||||
"start": 366,
|
||||
"start": 395,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"declaration": {
|
||||
"end": 425,
|
||||
"end": 454,
|
||||
"id": {
|
||||
"end": 406,
|
||||
"end": 435,
|
||||
"name": "width",
|
||||
"start": 401,
|
||||
"start": 430,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
@ -785,9 +812,9 @@ description: Result of parsing pipe_as_arg.kcl
|
||||
"body": [
|
||||
{
|
||||
"argument": {
|
||||
"end": 423,
|
||||
"end": 452,
|
||||
"raw": "200",
|
||||
"start": 420,
|
||||
"start": 449,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -795,37 +822,37 @@ description: Result of parsing pipe_as_arg.kcl
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"end": 423,
|
||||
"start": 413,
|
||||
"end": 452,
|
||||
"start": 442,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"end": 425,
|
||||
"start": 409
|
||||
"end": 454,
|
||||
"start": 438
|
||||
},
|
||||
"end": 425,
|
||||
"end": 454,
|
||||
"params": [],
|
||||
"start": 406,
|
||||
"start": 435,
|
||||
"type": "FunctionExpression",
|
||||
"type": "FunctionExpression"
|
||||
},
|
||||
"start": 401,
|
||||
"start": 430,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 425,
|
||||
"end": 454,
|
||||
"kind": "fn",
|
||||
"start": 398,
|
||||
"start": 427,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"declaration": {
|
||||
"end": 468,
|
||||
"end": 497,
|
||||
"id": {
|
||||
"end": 433,
|
||||
"end": 462,
|
||||
"name": "myCube",
|
||||
"start": 427,
|
||||
"start": 456,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
@ -833,9 +860,9 @@ description: Result of parsing pipe_as_arg.kcl
|
||||
{
|
||||
"body": [
|
||||
{
|
||||
"end": 444,
|
||||
"end": 473,
|
||||
"raw": "200",
|
||||
"start": 441,
|
||||
"start": 470,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -846,35 +873,35 @@ description: Result of parsing pipe_as_arg.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 458,
|
||||
"start": 457,
|
||||
"end": 487,
|
||||
"start": 486,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 456,
|
||||
"end": 485,
|
||||
"name": "double",
|
||||
"start": 450,
|
||||
"start": 479,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 459,
|
||||
"start": 450,
|
||||
"end": 488,
|
||||
"start": 479,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
}
|
||||
],
|
||||
"end": 459,
|
||||
"start": 441,
|
||||
"end": 488,
|
||||
"start": 470,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
},
|
||||
{
|
||||
"elements": [
|
||||
{
|
||||
"end": 463,
|
||||
"end": 492,
|
||||
"raw": "0",
|
||||
"start": 462,
|
||||
"start": 491,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -883,9 +910,9 @@ description: Result of parsing pipe_as_arg.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 466,
|
||||
"end": 495,
|
||||
"raw": "0",
|
||||
"start": 465,
|
||||
"start": 494,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -894,40 +921,40 @@ description: Result of parsing pipe_as_arg.kcl
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 467,
|
||||
"start": 461,
|
||||
"end": 496,
|
||||
"start": 490,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 440,
|
||||
"end": 469,
|
||||
"name": "cube",
|
||||
"start": 436,
|
||||
"start": 465,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 468,
|
||||
"start": 436,
|
||||
"end": 497,
|
||||
"start": 465,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
"start": 427,
|
||||
"start": 456,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 468,
|
||||
"end": 497,
|
||||
"kind": "const",
|
||||
"start": 427,
|
||||
"start": 456,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
}
|
||||
],
|
||||
"end": 469,
|
||||
"end": 498,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"0": [
|
||||
{
|
||||
"end": 366,
|
||||
"start": 364,
|
||||
"end": 395,
|
||||
"start": 393,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "newLine"
|
||||
@ -936,8 +963,8 @@ description: Result of parsing pipe_as_arg.kcl
|
||||
],
|
||||
"2": [
|
||||
{
|
||||
"end": 427,
|
||||
"start": 425,
|
||||
"end": 456,
|
||||
"start": 454,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "newLine"
|
||||
|
@ -7,7 +7,8 @@ fn cube(length, center) {
|
||||
p2 = [l + x, l + y]
|
||||
p3 = [l + x, -l + y]
|
||||
|
||||
return startSketchAt(p0)
|
||||
return startSketchOn(XY)
|
||||
|> startProfileAt(p0, %)
|
||||
|> line(endAbsolute = p1)
|
||||
|> line(endAbsolute = p2)
|
||||
|> line(endAbsolute = p3)
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Operations executed pipe_as_arg.kcl
|
||||
---
|
||||
[
|
||||
@ -7,15 +7,15 @@ description: Operations executed pipe_as_arg.kcl
|
||||
"type": "UserDefinedFunctionCall",
|
||||
"name": "double",
|
||||
"functionSourceRange": [
|
||||
375,
|
||||
397,
|
||||
404,
|
||||
426,
|
||||
0
|
||||
],
|
||||
"unlabeledArg": null,
|
||||
"labeledArgs": {},
|
||||
"sourceRange": [
|
||||
450,
|
||||
459,
|
||||
479,
|
||||
488,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -27,17 +27,40 @@ description: Operations executed pipe_as_arg.kcl
|
||||
"name": "cube",
|
||||
"functionSourceRange": [
|
||||
7,
|
||||
364,
|
||||
393,
|
||||
0
|
||||
],
|
||||
"unlabeledArg": null,
|
||||
"labeledArgs": {},
|
||||
"sourceRange": [
|
||||
436,
|
||||
468,
|
||||
465,
|
||||
497,
|
||||
0
|
||||
]
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"data": {
|
||||
"value": {
|
||||
"type": "Plane",
|
||||
"artifact_id": "[uuid]"
|
||||
},
|
||||
"sourceRange": [
|
||||
191,
|
||||
193,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "startSketchOn",
|
||||
"sourceRange": [
|
||||
177,
|
||||
194,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": null
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"length": {
|
||||
@ -49,16 +72,16 @@ description: Operations executed pipe_as_arg.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
355,
|
||||
361,
|
||||
384,
|
||||
390,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "extrude",
|
||||
"sourceRange": [
|
||||
338,
|
||||
362,
|
||||
367,
|
||||
391,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Variables in memory after executing pipe_as_arg.kcl
|
||||
---
|
||||
{
|
||||
@ -9,7 +9,7 @@ description: Variables in memory after executing pipe_as_arg.kcl
|
||||
{
|
||||
"sourceRange": [
|
||||
7,
|
||||
364,
|
||||
393,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -20,8 +20,8 @@ description: Variables in memory after executing pipe_as_arg.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
375,
|
||||
397,
|
||||
404,
|
||||
426,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -38,8 +38,8 @@ description: Variables in memory after executing pipe_as_arg.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
202,
|
||||
224,
|
||||
231,
|
||||
253,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -49,8 +49,8 @@ description: Variables in memory after executing pipe_as_arg.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
232,
|
||||
254,
|
||||
261,
|
||||
283,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -60,8 +60,8 @@ description: Variables in memory after executing pipe_as_arg.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
262,
|
||||
284,
|
||||
291,
|
||||
313,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -71,8 +71,8 @@ description: Variables in memory after executing pipe_as_arg.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
292,
|
||||
314,
|
||||
321,
|
||||
343,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -87,8 +87,8 @@ description: Variables in memory after executing pipe_as_arg.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
202,
|
||||
224,
|
||||
231,
|
||||
253,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -110,8 +110,8 @@ description: Variables in memory after executing pipe_as_arg.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
232,
|
||||
254,
|
||||
261,
|
||||
283,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -133,8 +133,8 @@ description: Variables in memory after executing pipe_as_arg.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
262,
|
||||
284,
|
||||
291,
|
||||
313,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -156,8 +156,8 @@ description: Variables in memory after executing pipe_as_arg.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
292,
|
||||
314,
|
||||
321,
|
||||
343,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -179,8 +179,8 @@ description: Variables in memory after executing pipe_as_arg.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
322,
|
||||
330,
|
||||
351,
|
||||
359,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -245,8 +245,8 @@ description: Variables in memory after executing pipe_as_arg.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
177,
|
||||
194,
|
||||
202,
|
||||
223,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -259,8 +259,8 @@ description: Variables in memory after executing pipe_as_arg.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
177,
|
||||
194,
|
||||
202,
|
||||
223,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -275,8 +275,8 @@ description: Variables in memory after executing pipe_as_arg.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
177,
|
||||
194,
|
||||
202,
|
||||
223,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -288,8 +288,8 @@ description: Variables in memory after executing pipe_as_arg.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
406,
|
||||
425,
|
||||
435,
|
||||
454,
|
||||
0
|
||||
]
|
||||
}
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Artifact commands tangential_arc.kcl
|
||||
snapshot_kind: text
|
||||
---
|
||||
[
|
||||
{
|
||||
@ -286,7 +285,7 @@ snapshot_kind: text
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
12,
|
||||
33,
|
||||
29,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -314,8 +313,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
12,
|
||||
33,
|
||||
35,
|
||||
60,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -334,8 +333,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
12,
|
||||
33,
|
||||
35,
|
||||
60,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -345,8 +344,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
12,
|
||||
33,
|
||||
35,
|
||||
60,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -362,8 +361,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
39,
|
||||
58,
|
||||
66,
|
||||
85,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -383,8 +382,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
64,
|
||||
109,
|
||||
91,
|
||||
136,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -403,8 +402,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
115,
|
||||
135,
|
||||
142,
|
||||
162,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -424,8 +423,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
141,
|
||||
161,
|
||||
168,
|
||||
188,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -444,8 +443,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
141,
|
||||
161,
|
||||
168,
|
||||
188,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -458,8 +457,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
141,
|
||||
161,
|
||||
168,
|
||||
188,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -469,8 +468,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
141,
|
||||
161,
|
||||
168,
|
||||
188,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -481,8 +480,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
141,
|
||||
161,
|
||||
168,
|
||||
188,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -494,8 +493,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
141,
|
||||
161,
|
||||
168,
|
||||
188,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -508,8 +507,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
141,
|
||||
161,
|
||||
168,
|
||||
188,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -522,8 +521,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
141,
|
||||
161,
|
||||
168,
|
||||
188,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -536,8 +535,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
141,
|
||||
161,
|
||||
168,
|
||||
188,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -550,8 +549,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
141,
|
||||
161,
|
||||
168,
|
||||
188,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
@ -564,8 +563,8 @@ snapshot_kind: text
|
||||
{
|
||||
"cmdId": "[uuid]",
|
||||
"range": [
|
||||
141,
|
||||
161,
|
||||
168,
|
||||
188,
|
||||
0
|
||||
],
|
||||
"command": {
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Artifact graph flowchart tangential_arc.kcl
|
||||
extension: md
|
||||
snapshot_kind: binary
|
||||
|
@ -1,13 +1,13 @@
|
||||
```mermaid
|
||||
flowchart LR
|
||||
subgraph path2 [Path]
|
||||
2["Path<br>[12, 33, 0]"]
|
||||
3["Segment<br>[39, 58, 0]"]
|
||||
4["Segment<br>[64, 109, 0]"]
|
||||
5["Segment<br>[115, 135, 0]"]
|
||||
2["Path<br>[35, 60, 0]"]
|
||||
3["Segment<br>[66, 85, 0]"]
|
||||
4["Segment<br>[91, 136, 0]"]
|
||||
5["Segment<br>[142, 162, 0]"]
|
||||
end
|
||||
1["Plane<br>[12, 33, 0]"]
|
||||
6["Sweep Extrusion<br>[141, 161, 0]"]
|
||||
1["Plane<br>[12, 29, 0]"]
|
||||
6["Sweep Extrusion<br>[168, 188, 0]"]
|
||||
7[Wall]
|
||||
8[Wall]
|
||||
9[Wall]
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Result of parsing tangential_arc.kcl
|
||||
---
|
||||
{
|
||||
@ -7,7 +7,7 @@ description: Result of parsing tangential_arc.kcl
|
||||
"body": [
|
||||
{
|
||||
"declaration": {
|
||||
"end": 161,
|
||||
"end": 188,
|
||||
"id": {
|
||||
"end": 9,
|
||||
"name": "boxSketch",
|
||||
@ -18,44 +18,21 @@ description: Result of parsing tangential_arc.kcl
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"elements": [
|
||||
{
|
||||
"end": 28,
|
||||
"raw": "0",
|
||||
"start": 27,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 31,
|
||||
"raw": "0",
|
||||
"start": 30,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 32,
|
||||
"name": "XY",
|
||||
"start": 26,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 25,
|
||||
"name": "startSketchAt",
|
||||
"name": "startSketchOn",
|
||||
"start": 12,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 33,
|
||||
"end": 29,
|
||||
"start": 12,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
@ -63,12 +40,6 @@ description: Result of parsing tangential_arc.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 52,
|
||||
@ -82,105 +53,37 @@ description: Result of parsing tangential_arc.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 56,
|
||||
"raw": "10",
|
||||
"end": 55,
|
||||
"raw": "0",
|
||||
"start": 54,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 10.0,
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 57,
|
||||
"end": 56,
|
||||
"start": 50,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 43,
|
||||
"name": "line",
|
||||
"start": 39,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 58,
|
||||
"start": 39,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 105,
|
||||
"properties": [
|
||||
{
|
||||
"end": 90,
|
||||
"key": {
|
||||
"end": 86,
|
||||
"name": "radius",
|
||||
"start": 80,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 80,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"end": 90,
|
||||
"raw": "5",
|
||||
"start": 89,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 5.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 103,
|
||||
"key": {
|
||||
"end": 98,
|
||||
"name": "offset",
|
||||
"start": 92,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 92,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"end": 103,
|
||||
"raw": "90",
|
||||
"start": 101,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 90.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 78,
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression"
|
||||
},
|
||||
{
|
||||
"end": 108,
|
||||
"start": 107,
|
||||
"end": 59,
|
||||
"start": 58,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 77,
|
||||
"name": "tangentialArc",
|
||||
"start": 64,
|
||||
"end": 49,
|
||||
"name": "startProfileAt",
|
||||
"start": 35,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 109,
|
||||
"start": 64,
|
||||
"end": 60,
|
||||
"start": 35,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
@ -195,9 +98,133 @@ description: Result of parsing tangential_arc.kcl
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 128,
|
||||
"end": 79,
|
||||
"raw": "0",
|
||||
"start": 78,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 0.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 83,
|
||||
"raw": "10",
|
||||
"start": 81,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 10.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
],
|
||||
"end": 84,
|
||||
"start": 77,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 70,
|
||||
"name": "line",
|
||||
"start": 66,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 85,
|
||||
"start": 66,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"end": 132,
|
||||
"properties": [
|
||||
{
|
||||
"end": 117,
|
||||
"key": {
|
||||
"end": 113,
|
||||
"name": "radius",
|
||||
"start": 107,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 107,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"end": 117,
|
||||
"raw": "5",
|
||||
"start": 127,
|
||||
"start": 116,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 5.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 130,
|
||||
"key": {
|
||||
"end": 125,
|
||||
"name": "offset",
|
||||
"start": 119,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"start": 119,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"end": 130,
|
||||
"raw": "90",
|
||||
"start": 128,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
"value": 90.0,
|
||||
"suffix": "None"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"start": 105,
|
||||
"type": "ObjectExpression",
|
||||
"type": "ObjectExpression"
|
||||
},
|
||||
{
|
||||
"end": 135,
|
||||
"start": 134,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 104,
|
||||
"name": "tangentialArc",
|
||||
"start": 91,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 136,
|
||||
"start": 91,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
},
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"type": "Identifier",
|
||||
"name": "end"
|
||||
},
|
||||
"arg": {
|
||||
"elements": [
|
||||
{
|
||||
"end": 155,
|
||||
"raw": "5",
|
||||
"start": 154,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -207,9 +234,9 @@ description: Result of parsing tangential_arc.kcl
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"end": 133,
|
||||
"end": 160,
|
||||
"raw": "15",
|
||||
"start": 131,
|
||||
"start": 158,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -217,28 +244,28 @@ description: Result of parsing tangential_arc.kcl
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"end": 133,
|
||||
"end": 160,
|
||||
"operator": "-",
|
||||
"start": 130,
|
||||
"start": 157,
|
||||
"type": "UnaryExpression",
|
||||
"type": "UnaryExpression"
|
||||
}
|
||||
],
|
||||
"end": 134,
|
||||
"start": 126,
|
||||
"end": 161,
|
||||
"start": 153,
|
||||
"type": "ArrayExpression",
|
||||
"type": "ArrayExpression"
|
||||
}
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 119,
|
||||
"end": 146,
|
||||
"name": "line",
|
||||
"start": 115,
|
||||
"start": 142,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 135,
|
||||
"start": 115,
|
||||
"end": 162,
|
||||
"start": 142,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
@ -252,9 +279,9 @@ description: Result of parsing tangential_arc.kcl
|
||||
"name": "length"
|
||||
},
|
||||
"arg": {
|
||||
"end": 160,
|
||||
"end": 187,
|
||||
"raw": "10",
|
||||
"start": 158,
|
||||
"start": 185,
|
||||
"type": "Literal",
|
||||
"type": "Literal",
|
||||
"value": {
|
||||
@ -265,19 +292,19 @@ description: Result of parsing tangential_arc.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"end": 148,
|
||||
"end": 175,
|
||||
"name": "extrude",
|
||||
"start": 141,
|
||||
"start": 168,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"end": 161,
|
||||
"start": 141,
|
||||
"end": 188,
|
||||
"start": 168,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"end": 161,
|
||||
"end": 188,
|
||||
"start": 12,
|
||||
"type": "PipeExpression",
|
||||
"type": "PipeExpression"
|
||||
@ -285,14 +312,14 @@ description: Result of parsing tangential_arc.kcl
|
||||
"start": 0,
|
||||
"type": "VariableDeclarator"
|
||||
},
|
||||
"end": 161,
|
||||
"end": 188,
|
||||
"kind": "const",
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
}
|
||||
],
|
||||
"end": 162,
|
||||
"end": 189,
|
||||
"start": 0
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
boxSketch = startSketchAt([0, 0])
|
||||
boxSketch = startSketchOn(XY)
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line(end = [0, 10])
|
||||
|> tangentialArc({ radius = 5, offset = 90 }, %)
|
||||
|> line(end = [5, -15])
|
||||
|
@ -1,8 +1,31 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Operations executed tangential_arc.kcl
|
||||
---
|
||||
[
|
||||
{
|
||||
"labeledArgs": {
|
||||
"data": {
|
||||
"value": {
|
||||
"type": "Plane",
|
||||
"artifact_id": "[uuid]"
|
||||
},
|
||||
"sourceRange": [
|
||||
26,
|
||||
28,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "startSketchOn",
|
||||
"sourceRange": [
|
||||
12,
|
||||
29,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
"unlabeledArg": null
|
||||
},
|
||||
{
|
||||
"labeledArgs": {
|
||||
"length": {
|
||||
@ -20,16 +43,16 @@ description: Operations executed tangential_arc.kcl
|
||||
}
|
||||
},
|
||||
"sourceRange": [
|
||||
158,
|
||||
160,
|
||||
185,
|
||||
187,
|
||||
0
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "extrude",
|
||||
"sourceRange": [
|
||||
141,
|
||||
161,
|
||||
168,
|
||||
188,
|
||||
0
|
||||
],
|
||||
"type": "StdLibCall",
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: kcl/src/simulation_tests.rs
|
||||
source: kcl-lib/src/simulation_tests.rs
|
||||
description: Variables in memory after executing tangential_arc.kcl
|
||||
---
|
||||
{
|
||||
@ -14,8 +14,8 @@ description: Variables in memory after executing tangential_arc.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
39,
|
||||
58,
|
||||
66,
|
||||
85,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -25,8 +25,8 @@ description: Variables in memory after executing tangential_arc.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
64,
|
||||
109,
|
||||
91,
|
||||
136,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -36,8 +36,8 @@ description: Variables in memory after executing tangential_arc.kcl
|
||||
"faceId": "[uuid]",
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
115,
|
||||
135,
|
||||
142,
|
||||
162,
|
||||
0
|
||||
],
|
||||
"tag": null,
|
||||
@ -52,8 +52,8 @@ description: Variables in memory after executing tangential_arc.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
39,
|
||||
58,
|
||||
66,
|
||||
85,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -75,8 +75,8 @@ description: Variables in memory after executing tangential_arc.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
64,
|
||||
109,
|
||||
91,
|
||||
136,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -103,8 +103,8 @@ description: Variables in memory after executing tangential_arc.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
115,
|
||||
135,
|
||||
142,
|
||||
162,
|
||||
0
|
||||
]
|
||||
},
|
||||
@ -169,8 +169,8 @@ description: Variables in memory after executing tangential_arc.kcl
|
||||
"__geoMeta": {
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [
|
||||
12,
|
||||
33,
|
||||
35,
|
||||
60,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -183,8 +183,8 @@ description: Variables in memory after executing tangential_arc.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
12,
|
||||
33,
|
||||
35,
|
||||
60,
|
||||
0
|
||||
]
|
||||
}
|
||||
@ -199,8 +199,8 @@ description: Variables in memory after executing tangential_arc.kcl
|
||||
"__meta": [
|
||||
{
|
||||
"sourceRange": [
|
||||
12,
|
||||
33,
|
||||
35,
|
||||
60,
|
||||
0
|
||||
]
|
||||
}
|
||||
|
@ -99,10 +99,7 @@ export function intersectInfo({
|
||||
const isAllTooltips = nodes.every(
|
||||
(node) =>
|
||||
(node?.type === 'CallExpression' || node?.type === 'CallExpressionKw') &&
|
||||
[
|
||||
...toolTips,
|
||||
'startSketchAt', // TODO probably a better place for this to live
|
||||
].includes(node.callee.name as any)
|
||||
[...toolTips].includes(node.callee.name as any)
|
||||
)
|
||||
|
||||
const theTransforms = getTransformInfos(
|
||||
|
@ -62,10 +62,7 @@ export function horzVertDistanceInfo({
|
||||
const isAllTooltips = nodes.every(
|
||||
(node) =>
|
||||
(node?.type === 'CallExpression' || node?.type === 'CallExpressionKw') &&
|
||||
[
|
||||
...toolTips,
|
||||
'startSketchAt', // TODO probably a better place for this to live
|
||||
].includes(node.callee.name as any)
|
||||
[...toolTips].includes(node.callee.name as any)
|
||||
)
|
||||
|
||||
const theTransforms = getTransformInfos(
|
||||
|
@ -18,7 +18,8 @@ describe('testing getNodePathFromSourceRange', () => {
|
||||
it('test it gets the right path for a `lineTo` CallExpression within a SketchExpression', () => {
|
||||
const code = `
|
||||
const myVar = 5
|
||||
const sk3 = startSketchAt([0, 0])
|
||||
const sk3 = startSketchOn('XY')
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line(endAbsolute = [1, 2])
|
||||
|> line(endAbsolute = [3, 4], tag = $yo)
|
||||
|> close()
|
||||
@ -41,7 +42,8 @@ const sk3 = startSketchAt([0, 0])
|
||||
})
|
||||
it('gets path right for function definition params', () => {
|
||||
const code = `fn cube = (pos, scale) => {
|
||||
const sg = startSketchAt(pos)
|
||||
const sg = startSketchOn('XY')
|
||||
|> startProfileAt(pos, %)
|
||||
|> line(end = [0, scale])
|
||||
|> line(end = [scale, 0])
|
||||
|> line(end = [0, -scale])
|
||||
@ -73,7 +75,8 @@ const b1 = cube([0,0], 10)`
|
||||
})
|
||||
it('gets path right for deep within function definition body', () => {
|
||||
const code = `fn cube = (pos, scale) => {
|
||||
const sg = startSketchAt(pos)
|
||||
const sg = startSketchOn('XY')
|
||||
|> startProfileAt(pos, %)
|
||||
|> line(end = [0, scale])
|
||||
|> line(end = [scale, 0])
|
||||
|> line(end = [0, -scale])
|
||||
@ -102,7 +105,7 @@ const b1 = cube([0,0], 10)`
|
||||
['declaration', 'VariableDeclaration'],
|
||||
['init', ''],
|
||||
['body', 'PipeExpression'],
|
||||
[2, 'index'],
|
||||
[3, 'index'],
|
||||
['arguments', 'CallExpressionKw'],
|
||||
[0, ARG_INDEX_FIELD],
|
||||
['arg', LABELED_ARG_FIELD],
|
||||
|
@ -384,7 +384,8 @@ describe('testing getNodePathFromSourceRange', () => {
|
||||
describe('testing hasExtrudeSketch', () => {
|
||||
it('find sketch', async () => {
|
||||
const exampleCode = `length001 = 2
|
||||
part001 = startSketchAt([-1.41, 3.46])
|
||||
part001 = startSketchOn('XY')
|
||||
|> startProfileAt([-1.41, 3.46], %)
|
||||
|> line(end = [19.49, 1.16], tag = $seg01)
|
||||
|> angledLine([-35, length001], %)
|
||||
|> line(end = [-3.22, -7.36])
|
||||
@ -403,7 +404,8 @@ part001 = startSketchAt([-1.41, 3.46])
|
||||
})
|
||||
it('find solid', async () => {
|
||||
const exampleCode = `length001 = 2
|
||||
part001 = startSketchAt([-1.41, 3.46])
|
||||
part001 = startSketchOn('XY')
|
||||
|> startProfileAt([-1.41, 3.46], %)
|
||||
|> line(end = [19.49, 1.16], tag = $seg01)
|
||||
|> angledLine([-35, length001], %)
|
||||
|> line(end = [-3.22, -7.36])
|
||||
|
@ -75,7 +75,8 @@ log(5, myVar)
|
||||
expect(recasted.trim()).toBe(code)
|
||||
})
|
||||
it('recast sketch declaration', () => {
|
||||
let code = `mySketch = startSketchAt([0, 0])
|
||||
let code = `mySketch = startSketchOn('XY')
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line(endAbsolute = [0, 1], tag = $myPath)
|
||||
|> line(endAbsolute = [1, 1])
|
||||
|> line(endAbsolute = [1, 0], tag = $rightPath)
|
||||
@ -88,7 +89,8 @@ log(5, myVar)
|
||||
})
|
||||
it('sketch piped into callExpression', () => {
|
||||
const code = [
|
||||
'mySk1 = startSketchAt([0, 0])',
|
||||
"mySk1 = startSketchOn('XY')",
|
||||
' |> startProfileAt([0, 0], %)',
|
||||
' |> line(endAbsolute = [1, 1])',
|
||||
' |> line(endAbsolute = [0, 1], tag = $myTag)',
|
||||
' |> line(endAbsolute = [1, 1])',
|
||||
@ -262,7 +264,8 @@ key = 'c'
|
||||
})
|
||||
it('comments in a pipe expression', () => {
|
||||
const code = [
|
||||
'mySk1 = startSketchAt([0, 0])',
|
||||
"mySk1 = startSketchOn('XY')",
|
||||
' |> startProfileAt([0, 0], %)',
|
||||
' |> line(endAbsolute = [1, 1])',
|
||||
' |> line(endAbsolute = [0, 1], tag = $myTag)',
|
||||
' |> line(endAbsolute = [1, 1])',
|
||||
@ -278,7 +281,8 @@ key = 'c'
|
||||
const code = `
|
||||
/* comment at start */
|
||||
|
||||
mySk1 = startSketchAt([0, 0])
|
||||
mySk1 = startSketchOn('XY')
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line(endAbsolute = [1, 1])
|
||||
// comment here
|
||||
|> line(endAbsolute = [0, 1], tag = $myTag)
|
||||
@ -301,7 +305,8 @@ one more for good measure
|
||||
if (err(recasted)) throw recasted
|
||||
expect(recasted).toBe(`/* comment at start */
|
||||
|
||||
mySk1 = startSketchAt([0, 0])
|
||||
mySk1 = startSketchOn('XY')
|
||||
|> startProfileAt([0, 0], %)
|
||||
|> line(endAbsolute = [1, 1])
|
||||
// comment here
|
||||
|> line(endAbsolute = [0, 1], tag = $myTag)
|
||||
@ -341,7 +346,8 @@ describe('testing call Expressions in BinaryExpressions and UnaryExpressions', (
|
||||
})
|
||||
it('with unaryExpression in sketch situation', () => {
|
||||
const code = [
|
||||
'part001 = startSketchAt([0, 0])',
|
||||
"part001 = startSketchOn('XY')",
|
||||
' |> startProfileAt([0, 0])',
|
||||
' |> line(end = [-2.21, -legLen(5, min(3, 999))])',
|
||||
].join('\n')
|
||||
const { ast } = code2ast(code)
|
||||
@ -353,7 +359,8 @@ describe('testing call Expressions in BinaryExpressions and UnaryExpressions', (
|
||||
|
||||
describe('it recasts wrapped object expressions in pipe bodies with correct indentation', () => {
|
||||
it('with a single line', () => {
|
||||
const code = `part001 = startSketchAt([-0.01, -0.08])
|
||||
const code = `part001 = startSketchOn('XY')
|
||||
|> startProfileAt([-0.01, -0.08], %)
|
||||
|> line(end = [0.62, 4.15], tag = $seg01)
|
||||
|> line(end = [2.77, -1.24])
|
||||
|> angledLineThatIntersects({
|
||||
|
@ -126,12 +126,7 @@ export function createFirstArg(
|
||||
intersectTag: val[2],
|
||||
})
|
||||
} else {
|
||||
if (
|
||||
['startSketchAt', 'xLine', 'xLineTo', 'yLine', 'yLineTo'].includes(
|
||||
sketchFn
|
||||
)
|
||||
)
|
||||
return val
|
||||
if (['xLine', 'xLineTo', 'yLine', 'yLineTo'].includes(sketchFn)) return val
|
||||
}
|
||||
return new Error('Missing sketch line type')
|
||||
}
|
||||
@ -2942,7 +2937,7 @@ function getFirstArgValuesForXYLineFns(callExpression: CallExpression): {
|
||||
return { val: firstArg }
|
||||
}
|
||||
const tag = firstArg.properties.find((p) => p.key.name === 'tag')?.value
|
||||
const secondArgName = ['xLineTo', 'yLineTo', 'startSketchAt'].includes(
|
||||
const secondArgName = ['xLineTo', 'yLineTo'].includes(
|
||||
// const secondArgName = ['xLineTo', 'yLineTo', 'angledLineToX', 'angledLineToY'].includes(
|
||||
callExpression?.callee?.name
|
||||
)
|
||||
@ -3082,9 +3077,6 @@ export function getFirstArg(callExp: CallExpression):
|
||||
if (['xLine', 'yLine', 'xLineTo', 'yLineTo'].includes(name)) {
|
||||
return getFirstArgValuesForXYLineFns(callExp)
|
||||
}
|
||||
if (['startSketchAt'].includes(name)) {
|
||||
return getFirstArgValuesForXYLineFns(callExp)
|
||||
}
|
||||
if (['angledLineThatIntersects'].includes(name)) {
|
||||
return getAngledLineThatIntersects(callExp)
|
||||
}
|
||||
|
@ -93,7 +93,8 @@ export function isSketchVariablesLinked(
|
||||
and will keep checking the second arguments recursively until it runs out of variable declarations
|
||||
to check or it finds a match.
|
||||
that way it can find fn calls that are linked to each other through variables eg:
|
||||
const part001 = startSketchAt([0, 0])
|
||||
const part001 = startSketchOn('XY')
|
||||
|> startProfileAt([0, 0],%)
|
||||
|> xLineTo(1.69, %)
|
||||
|> line(end = [myVar, 0.38]) // ❗️ <- cursor in this fn call (the primary)
|
||||
|> line(end = [0.41, baz])
|
||||
|
Reference in New Issue
Block a user