* improve KCL Samples & .gitignore * update block and car wheel assembly * update flange and lego, delete flange xy * artifacts 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> * scale Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * docs 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> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: Jess Frazelle <github@jessfraz.com>
2156 lines
66 KiB
Plaintext
2156 lines
66 KiB
Plaintext
---
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
description: Result of parsing bracket.kcl
|
|
---
|
|
{
|
|
"Ok": {
|
|
"body": [
|
|
{
|
|
"declaration": {
|
|
"end": 442,
|
|
"id": {
|
|
"end": 434,
|
|
"name": "sigmaAllow",
|
|
"start": 424,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 442,
|
|
"raw": "35000",
|
|
"start": 437,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 35000.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 424,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 442,
|
|
"kind": "const",
|
|
"start": 424,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 478,
|
|
"id": {
|
|
"end": 474,
|
|
"name": "width",
|
|
"start": 469,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 478,
|
|
"raw": "6",
|
|
"start": 477,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 6.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 469,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 478,
|
|
"kind": "const",
|
|
"start": 469,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 494,
|
|
"id": {
|
|
"end": 488,
|
|
"name": "p",
|
|
"start": 487,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 494,
|
|
"raw": "300",
|
|
"start": 491,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 300.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 487,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 494,
|
|
"kind": "const",
|
|
"start": 487,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 539,
|
|
"id": {
|
|
"end": 533,
|
|
"name": "factorOfSafety",
|
|
"start": 519,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 539,
|
|
"raw": "1.2",
|
|
"start": 536,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.2,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 519,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 539,
|
|
"kind": "const",
|
|
"start": 519,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 569,
|
|
"id": {
|
|
"end": 565,
|
|
"name": "shelfMountL",
|
|
"start": 554,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 569,
|
|
"raw": "5",
|
|
"start": 568,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 5.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 554,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 569,
|
|
"kind": "const",
|
|
"start": 554,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 594,
|
|
"id": {
|
|
"end": 590,
|
|
"name": "wallMountL",
|
|
"start": 580,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 594,
|
|
"raw": "2",
|
|
"start": 593,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 580,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 594,
|
|
"kind": "const",
|
|
"start": 580,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 620,
|
|
"id": {
|
|
"end": 615,
|
|
"name": "shelfDepth",
|
|
"start": 605,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 620,
|
|
"raw": "12",
|
|
"start": 618,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 12.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 605,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 620,
|
|
"kind": "const",
|
|
"start": 605,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 689,
|
|
"id": {
|
|
"end": 672,
|
|
"name": "moment",
|
|
"start": 666,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 689,
|
|
"left": {
|
|
"end": 685,
|
|
"name": "shelfDepth",
|
|
"start": 675,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 689,
|
|
"name": "p",
|
|
"start": 688,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 675,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 666,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 689,
|
|
"kind": "const",
|
|
"start": 666,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 884,
|
|
"id": {
|
|
"end": 825,
|
|
"name": "thickness",
|
|
"start": 816,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"end": 882,
|
|
"left": {
|
|
"end": 860,
|
|
"left": {
|
|
"end": 856,
|
|
"left": {
|
|
"end": 839,
|
|
"name": "moment",
|
|
"start": 833,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 856,
|
|
"name": "factorOfSafety",
|
|
"start": 842,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 833,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 860,
|
|
"raw": "6",
|
|
"start": 859,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 6.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 833,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 882,
|
|
"left": {
|
|
"end": 874,
|
|
"name": "sigmaAllow",
|
|
"start": 864,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 882,
|
|
"name": "width",
|
|
"start": 877,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 864,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 833,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 832,
|
|
"name": "sqrt",
|
|
"start": 828,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 884,
|
|
"start": 828,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
"start": 816,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 884,
|
|
"kind": "const",
|
|
"start": 816,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 977,
|
|
"id": {
|
|
"end": 971,
|
|
"name": "filletRadius",
|
|
"start": 959,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 977,
|
|
"raw": ".25",
|
|
"start": 974,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.25,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 959,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 977,
|
|
"kind": "const",
|
|
"start": 959,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1020,
|
|
"id": {
|
|
"end": 993,
|
|
"name": "extFilletRadius",
|
|
"start": 978,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 1020,
|
|
"left": {
|
|
"end": 1008,
|
|
"name": "filletRadius",
|
|
"start": 996,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 1020,
|
|
"name": "thickness",
|
|
"start": 1011,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 996,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 978,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1020,
|
|
"kind": "const",
|
|
"start": 978,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1047,
|
|
"id": {
|
|
"end": 1041,
|
|
"name": "mountingHoleDiameter",
|
|
"start": 1021,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 1047,
|
|
"raw": "0.5",
|
|
"start": 1044,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.5,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1021,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1047,
|
|
"kind": "const",
|
|
"start": 1021,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1855,
|
|
"id": {
|
|
"end": 1058,
|
|
"name": "sketch001",
|
|
"start": 1049,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1079,
|
|
"raw": "'XZ'",
|
|
"start": 1075,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "XZ"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1074,
|
|
"name": "startSketchOn",
|
|
"start": 1061,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1080,
|
|
"start": 1061,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"end": 1103,
|
|
"raw": "0",
|
|
"start": 1102,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 1106,
|
|
"raw": "0",
|
|
"start": 1105,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 1107,
|
|
"start": 1101,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
},
|
|
{
|
|
"end": 1110,
|
|
"start": 1109,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1100,
|
|
"name": "startProfileAt",
|
|
"start": 1086,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1111,
|
|
"start": 1086,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1129,
|
|
"name": "length",
|
|
"start": 1123,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1155,
|
|
"left": {
|
|
"end": 1143,
|
|
"name": "shelfMountL",
|
|
"start": 1132,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 1155,
|
|
"name": "thickness",
|
|
"start": 1146,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1132,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1160,
|
|
"name": "tag",
|
|
"start": 1157,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1169,
|
|
"start": 1163,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "seg01"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1122,
|
|
"name": "xLine",
|
|
"start": 1117,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1170,
|
|
"start": 1117,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1188,
|
|
"name": "length",
|
|
"start": 1182,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1200,
|
|
"name": "thickness",
|
|
"start": 1191,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1205,
|
|
"name": "tag",
|
|
"start": 1202,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1214,
|
|
"start": 1208,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "seg02"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1181,
|
|
"name": "yLine",
|
|
"start": 1176,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1215,
|
|
"start": 1176,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1233,
|
|
"name": "length",
|
|
"start": 1227,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 1248,
|
|
"name": "shelfMountL",
|
|
"start": 1237,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1248,
|
|
"operator": "-",
|
|
"start": 1236,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1253,
|
|
"name": "tag",
|
|
"start": 1250,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1262,
|
|
"start": 1256,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "seg03"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1226,
|
|
"name": "xLine",
|
|
"start": 1221,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1263,
|
|
"start": 1221,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1281,
|
|
"name": "length",
|
|
"start": 1275,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"end": 1295,
|
|
"name": "wallMountL",
|
|
"start": 1285,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1295,
|
|
"operator": "-",
|
|
"start": 1284,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1300,
|
|
"name": "tag",
|
|
"start": 1297,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1309,
|
|
"start": 1303,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "seg04"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1274,
|
|
"name": "yLine",
|
|
"start": 1269,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1310,
|
|
"start": 1269,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1328,
|
|
"name": "length",
|
|
"start": 1322,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1340,
|
|
"name": "thickness",
|
|
"start": 1331,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1345,
|
|
"name": "tag",
|
|
"start": 1342,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1354,
|
|
"start": 1348,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "seg05"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1321,
|
|
"name": "xLine",
|
|
"start": 1316,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1355,
|
|
"start": 1316,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1377,
|
|
"name": "endAbsolute",
|
|
"start": 1366,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1396,
|
|
"start": 1395,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1394,
|
|
"name": "profileStartX",
|
|
"start": 1381,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1397,
|
|
"start": 1381,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1414,
|
|
"start": 1413,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1412,
|
|
"name": "profileStartY",
|
|
"start": 1399,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1415,
|
|
"start": 1399,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 1416,
|
|
"start": 1380,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1421,
|
|
"name": "tag",
|
|
"start": 1418,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1430,
|
|
"start": 1424,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "seg06"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1365,
|
|
"name": "line",
|
|
"start": 1361,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1431,
|
|
"start": 1361,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [],
|
|
"callee": {
|
|
"end": 1442,
|
|
"name": "close",
|
|
"start": 1437,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1444,
|
|
"start": 1437,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1467,
|
|
"name": "length",
|
|
"start": 1461,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1475,
|
|
"name": "width",
|
|
"start": 1470,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1457,
|
|
"name": "extrude",
|
|
"start": 1450,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1476,
|
|
"start": 1450,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 1459,
|
|
"start": 1458,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1503,
|
|
"name": "radius",
|
|
"start": 1497,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1521,
|
|
"name": "extFilletRadius",
|
|
"start": 1506,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1534,
|
|
"name": "tags",
|
|
"start": 1530,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1563,
|
|
"name": "seg03",
|
|
"start": 1558,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1557,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 1538,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1564,
|
|
"start": 1538,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 1565,
|
|
"start": 1537,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1488,
|
|
"name": "fillet",
|
|
"start": 1482,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1573,
|
|
"start": 1482,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1600,
|
|
"name": "radius",
|
|
"start": 1594,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1615,
|
|
"name": "filletRadius",
|
|
"start": 1603,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1628,
|
|
"name": "tags",
|
|
"start": 1624,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1657,
|
|
"name": "seg06",
|
|
"start": 1652,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1651,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 1632,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1658,
|
|
"start": 1632,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 1659,
|
|
"start": 1631,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1585,
|
|
"name": "fillet",
|
|
"start": 1579,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1667,
|
|
"start": 1579,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1693,
|
|
"name": "radius",
|
|
"start": 1687,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1708,
|
|
"name": "filletRadius",
|
|
"start": 1696,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1720,
|
|
"name": "tags",
|
|
"start": 1716,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 1729,
|
|
"name": "seg02",
|
|
"start": 1724,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1752,
|
|
"name": "seg02",
|
|
"start": 1747,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1746,
|
|
"name": "getOppositeEdge",
|
|
"start": 1731,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1753,
|
|
"start": 1731,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 1754,
|
|
"start": 1723,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1679,
|
|
"name": "fillet",
|
|
"start": 1673,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1761,
|
|
"start": 1673,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1787,
|
|
"name": "radius",
|
|
"start": 1781,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1802,
|
|
"name": "filletRadius",
|
|
"start": 1790,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1814,
|
|
"name": "tags",
|
|
"start": 1810,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 1823,
|
|
"name": "seg05",
|
|
"start": 1818,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1846,
|
|
"name": "seg05",
|
|
"start": 1841,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1840,
|
|
"name": "getOppositeEdge",
|
|
"start": 1825,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1847,
|
|
"start": 1825,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 1848,
|
|
"start": 1817,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1773,
|
|
"name": "fillet",
|
|
"start": 1767,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1855,
|
|
"start": 1767,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 1855,
|
|
"start": 1061,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 1049,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1855,
|
|
"kind": "const",
|
|
"start": 1049,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 2189,
|
|
"id": {
|
|
"end": 1866,
|
|
"name": "sketch002",
|
|
"start": 1857,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1892,
|
|
"name": "sketch001",
|
|
"start": 1883,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
{
|
|
"end": 1899,
|
|
"name": "seg03",
|
|
"start": 1894,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1882,
|
|
"name": "startSketchOn",
|
|
"start": 1869,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1900,
|
|
"start": 1869,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1924,
|
|
"name": "center",
|
|
"start": 1918,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"argument": {
|
|
"end": 1933,
|
|
"raw": "1.25",
|
|
"start": 1929,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.25,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"end": 1933,
|
|
"operator": "-",
|
|
"start": 1928,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
},
|
|
{
|
|
"end": 1936,
|
|
"raw": "1",
|
|
"start": 1935,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 1937,
|
|
"start": 1927,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1949,
|
|
"name": "radius",
|
|
"start": 1943,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1976,
|
|
"left": {
|
|
"end": 1972,
|
|
"name": "mountingHoleDiameter",
|
|
"start": 1952,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 1976,
|
|
"raw": "2",
|
|
"start": 1975,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1952,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1912,
|
|
"name": "circle",
|
|
"start": 1906,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1981,
|
|
"start": 1906,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2017,
|
|
"name": "instances",
|
|
"start": 2008,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2021,
|
|
"raw": "2",
|
|
"start": 2020,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2035,
|
|
"name": "distance",
|
|
"start": 2027,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2041,
|
|
"raw": "2.5",
|
|
"start": 2038,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.5,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2051,
|
|
"name": "axis",
|
|
"start": 2047,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"argument": {
|
|
"end": 2057,
|
|
"raw": "1",
|
|
"start": 2056,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"end": 2057,
|
|
"operator": "-",
|
|
"start": 2055,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
},
|
|
{
|
|
"end": 2060,
|
|
"raw": "0",
|
|
"start": 2059,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 2061,
|
|
"start": 2054,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2002,
|
|
"name": "patternLinear2d",
|
|
"start": 1987,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2066,
|
|
"start": 1987,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2102,
|
|
"name": "instances",
|
|
"start": 2093,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2106,
|
|
"raw": "2",
|
|
"start": 2105,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2120,
|
|
"name": "distance",
|
|
"start": 2112,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2124,
|
|
"raw": "4",
|
|
"start": 2123,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2134,
|
|
"name": "axis",
|
|
"start": 2130,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 2139,
|
|
"raw": "0",
|
|
"start": 2138,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 2142,
|
|
"raw": "1",
|
|
"start": 2141,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 2143,
|
|
"start": 2137,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2087,
|
|
"name": "patternLinear2d",
|
|
"start": 2072,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2148,
|
|
"start": 2072,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2171,
|
|
"name": "length",
|
|
"start": 2165,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2188,
|
|
"left": {
|
|
"argument": {
|
|
"end": 2184,
|
|
"name": "thickness",
|
|
"start": 2175,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2184,
|
|
"operator": "-",
|
|
"start": 2174,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 2188,
|
|
"raw": ".01",
|
|
"start": 2185,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.01,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 2174,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2161,
|
|
"name": "extrude",
|
|
"start": 2154,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2189,
|
|
"start": 2154,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 2163,
|
|
"start": 2162,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
}
|
|
],
|
|
"end": 2189,
|
|
"start": 1869,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 1857,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 2189,
|
|
"kind": "const",
|
|
"start": 1857,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 2435,
|
|
"id": {
|
|
"end": 2200,
|
|
"name": "sketch003",
|
|
"start": 2191,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 2226,
|
|
"name": "sketch001",
|
|
"start": 2217,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
{
|
|
"end": 2233,
|
|
"name": "seg04",
|
|
"start": 2228,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2216,
|
|
"name": "startSketchOn",
|
|
"start": 2203,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2234,
|
|
"start": 2203,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2258,
|
|
"name": "center",
|
|
"start": 2252,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 2263,
|
|
"raw": "1",
|
|
"start": 2262,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"argument": {
|
|
"end": 2267,
|
|
"raw": "1",
|
|
"start": 2266,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"end": 2267,
|
|
"operator": "-",
|
|
"start": 2265,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
],
|
|
"end": 2268,
|
|
"start": 2261,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2280,
|
|
"name": "radius",
|
|
"start": 2274,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2307,
|
|
"left": {
|
|
"end": 2303,
|
|
"name": "mountingHoleDiameter",
|
|
"start": 2283,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 2307,
|
|
"raw": "2",
|
|
"start": 2306,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 2283,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2246,
|
|
"name": "circle",
|
|
"start": 2240,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2312,
|
|
"start": 2240,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2348,
|
|
"name": "instances",
|
|
"start": 2339,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2352,
|
|
"raw": "2",
|
|
"start": 2351,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2366,
|
|
"name": "distance",
|
|
"start": 2358,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2370,
|
|
"raw": "4",
|
|
"start": 2369,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2380,
|
|
"name": "axis",
|
|
"start": 2376,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 2385,
|
|
"raw": "1",
|
|
"start": 2384,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 2388,
|
|
"raw": "0",
|
|
"start": 2387,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 2389,
|
|
"start": 2383,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2333,
|
|
"name": "patternLinear2d",
|
|
"start": 2318,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2394,
|
|
"start": 2318,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2417,
|
|
"name": "length",
|
|
"start": 2411,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2434,
|
|
"left": {
|
|
"argument": {
|
|
"end": 2430,
|
|
"name": "thickness",
|
|
"start": 2421,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2430,
|
|
"operator": "-",
|
|
"start": 2420,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 2434,
|
|
"raw": "0.1",
|
|
"start": 2431,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.1,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 2420,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2407,
|
|
"name": "extrude",
|
|
"start": 2400,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2435,
|
|
"start": 2400,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 2409,
|
|
"start": 2408,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
}
|
|
],
|
|
"end": 2435,
|
|
"start": 2203,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 2191,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 2435,
|
|
"kind": "const",
|
|
"start": 2191,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
}
|
|
],
|
|
"end": 2436,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"0": [
|
|
{
|
|
"end": 468,
|
|
"start": 442,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "inlineComment",
|
|
"value": "psi (6061-T6 aluminum)",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"1": [
|
|
{
|
|
"end": 486,
|
|
"start": 478,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "inlineComment",
|
|
"value": "inch",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"2": [
|
|
{
|
|
"end": 518,
|
|
"start": 494,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "inlineComment",
|
|
"value": "Force on shelf - lbs",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"3": [
|
|
{
|
|
"end": 553,
|
|
"start": 539,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "inlineComment",
|
|
"value": "FOS of 1.2",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"4": [
|
|
{
|
|
"end": 579,
|
|
"start": 569,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "inlineComment",
|
|
"value": "inches",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"5": [
|
|
{
|
|
"end": 604,
|
|
"start": 594,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "inlineComment",
|
|
"value": "inches",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"6": [
|
|
{
|
|
"end": 665,
|
|
"start": 620,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "inlineComment",
|
|
"value": "Shelf is 12 inches in depth from the wall",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"7": [
|
|
{
|
|
"end": 771,
|
|
"start": 689,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "inlineComment",
|
|
"value": "assume the force is applied at the end of the shelf to be conservative (lb-in)",
|
|
"style": "line"
|
|
}
|
|
},
|
|
{
|
|
"end": 773,
|
|
"start": 771,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
},
|
|
{
|
|
"end": 815,
|
|
"start": 773,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "blockComment",
|
|
"value": "Calculate required thickness of bracket",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"8": [
|
|
{
|
|
"end": 957,
|
|
"start": 884,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "inlineComment",
|
|
"value": "this is the calculation of two brackets holding up the shelf (inches)",
|
|
"style": "line"
|
|
}
|
|
},
|
|
{
|
|
"end": 959,
|
|
"start": 957,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
}
|
|
],
|
|
"11": [
|
|
{
|
|
"end": 1049,
|
|
"start": 1047,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
}
|
|
],
|
|
"12": [
|
|
{
|
|
"end": 1857,
|
|
"start": 1855,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
}
|
|
],
|
|
"13": [
|
|
{
|
|
"end": 2191,
|
|
"start": 2189,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": [
|
|
{
|
|
"end": 16,
|
|
"start": 0,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "blockComment",
|
|
"value": "Shelf Bracket",
|
|
"style": "line"
|
|
}
|
|
},
|
|
{
|
|
"end": 401,
|
|
"start": 17,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "blockComment",
|
|
"value": "This is a bracket that holds a shelf. It is made of aluminum and is designed to hold a force of 300 lbs. The bracket is 6 inches wide and the force is applied at the end of the shelf, 12 inches from the wall. The bracket has a factor of safety of 1.2. The legs of the bracket are 5 inches and 2 inches long. The thickness of the bracket is calculated from the constraints provided.",
|
|
"style": "line"
|
|
}
|
|
},
|
|
{
|
|
"end": 404,
|
|
"start": 401,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
},
|
|
{
|
|
"end": 423,
|
|
"start": 404,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "blockComment",
|
|
"value": "Define constants",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"start": 0
|
|
}
|
|
}
|