--- source: kcl-lib/src/simulation_tests.rs description: Result of parsing gridfinity-baseplate.kcl --- { "Ok": { "body": [ { "commentStart": 344, "declaration": { "commentStart": 366, "end": 0, "id": { "commentStart": 366, "end": 0, "name": "binLength", "start": 0, "type": "Identifier" }, "init": { "commentStart": 378, "end": 0, "raw": "42.0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 42.0, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "preComments": [ "// Define constants" ], "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 383, "declaration": { "commentStart": 383, "end": 0, "id": { "commentStart": 383, "end": 0, "name": "cornerRadius", "start": 0, "type": "Identifier" }, "init": { "commentStart": 398, "end": 0, "raw": "4.0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 4.0, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 402, "declaration": { "commentStart": 402, "end": 0, "id": { "commentStart": 402, "end": 0, "name": "firstStep", "start": 0, "type": "Identifier" }, "init": { "commentStart": 414, "end": 0, "raw": "0.7", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.7, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 418, "declaration": { "commentStart": 418, "end": 0, "id": { "commentStart": 418, "end": 0, "name": "secondStep", "start": 0, "type": "Identifier" }, "init": { "commentStart": 431, "end": 0, "raw": "1.8", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.8, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 435, "declaration": { "commentStart": 435, "end": 0, "id": { "commentStart": 435, "end": 0, "name": "thirdStep", "start": 0, "type": "Identifier" }, "init": { "commentStart": 447, "end": 0, "raw": "2.15", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.15, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 451, "declaration": { "commentStart": 489, "end": 0, "id": { "commentStart": 489, "end": 0, "name": "countBinWidth", "start": 0, "type": "Identifier" }, "init": { "commentStart": 505, "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "preComments": [ "", "", "// Number of bins in each direction" ], "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 507, "declaration": { "commentStart": 507, "end": 0, "id": { "commentStart": 507, "end": 0, "name": "countBinLength", "start": 0, "type": "Identifier" }, "init": { "commentStart": 524, "end": 0, "raw": "3", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 3.0, "suffix": "None" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 525, "declaration": { "commentStart": 626, "end": 0, "id": { "commentStart": 626, "end": 0, "name": "height", "start": 0, "type": "Identifier" }, "init": { "commentStart": 635, "end": 0, "left": { "commentStart": 635, "end": 0, "left": { "abs_path": false, "commentStart": 635, "end": 0, "name": { "commentStart": 635, "end": 0, "name": "firstStep", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "+", "right": { "abs_path": false, "commentStart": 647, "end": 0, "name": { "commentStart": 647, "end": 0, "name": "secondStep", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" }, "operator": "+", "right": { "abs_path": false, "commentStart": 660, "end": 0, "name": { "commentStart": 660, "end": 0, "name": "thirdStep", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "preComments": [ "", "", "// The total height of the baseplate is a summation of the vertical heights of the baseplate steps" ], "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 669, "declaration": { "commentStart": 741, "end": 0, "id": { "commentStart": 741, "end": 0, "name": "face", "start": 0, "type": "Identifier" }, "init": { "body": { "body": [ { "commentStart": 757, "declaration": { "commentStart": 757, "end": 0, "id": { "commentStart": 757, "end": 0, "name": "faceSketch", "start": 0, "type": "Identifier" }, "init": { "body": [ { "arguments": [ { "abs_path": false, "commentStart": 784, "end": 0, "name": { "commentStart": 784, "end": 0, "name": "plane", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } ], "callee": { "abs_path": false, "commentStart": 770, "end": 0, "name": { "commentStart": 770, "end": 0, "name": "startSketchOn", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 770, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "commentStart": 813, "elements": [ { "commentStart": 814, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 817, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" }, { "commentStart": 821, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "abs_path": false, "commentStart": 798, "end": 0, "name": { "commentStart": 798, "end": 0, "name": "startProfileAt", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 798, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 837, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 846, "end": 0, "name": { "commentStart": 846, "end": 0, "name": "height", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "callee": { "abs_path": false, "commentStart": 831, "end": 0, "name": { "commentStart": 831, "end": 0, "name": "yLine", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 831, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "commentStart": 881, "end": 0, "properties": [ { "commentStart": 883, "end": 0, "key": { "commentStart": 883, "end": 0, "name": "angle", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "argument": { "commentStart": 892, "end": 0, "raw": "45", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 45.0, "suffix": "None" } }, "commentStart": 891, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" } }, { "commentStart": 896, "end": 0, "key": { "commentStart": 896, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "abs_path": false, "commentStart": 905, "end": 0, "name": { "commentStart": 905, "end": 0, "name": "thirdStep", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "start": 0, "type": "ObjectExpression", "type": "ObjectExpression" }, { "commentStart": 918, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "abs_path": false, "commentStart": 861, "end": 0, "name": { "commentStart": 861, "end": 0, "name": "angledLineOfYLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 861, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 934, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "argument": { "abs_path": false, "commentStart": 944, "end": 0, "name": { "commentStart": 944, "end": 0, "name": "secondStep", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "commentStart": 943, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" } } ], "callee": { "abs_path": false, "commentStart": 928, "end": 0, "name": { "commentStart": 928, "end": 0, "name": "yLine", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 928, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null }, { "arguments": [ { "commentStart": 983, "end": 0, "properties": [ { "commentStart": 985, "end": 0, "key": { "commentStart": 985, "end": 0, "name": "angle", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "argument": { "commentStart": 994, "end": 0, "raw": "45", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 45.0, "suffix": "None" } }, "commentStart": 993, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" } }, { "commentStart": 998, "end": 0, "key": { "commentStart": 998, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "abs_path": false, "commentStart": 1007, "end": 0, "name": { "commentStart": 1007, "end": 0, "name": "firstStep", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "start": 0, "type": "ObjectExpression", "type": "ObjectExpression" }, { "commentStart": 1020, "end": 0, "start": 0, "type": "PipeSubstitution", "type": "PipeSubstitution" } ], "callee": { "abs_path": false, "commentStart": 963, "end": 0, "name": { "commentStart": 963, "end": 0, "name": "angledLineOfYLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 963, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" }, { "arguments": [], "callee": { "abs_path": false, "commentStart": 1030, "end": 0, "name": { "commentStart": 1030, "end": 0, "name": "close", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1030, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } ], "commentStart": 770, "end": 0, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "argument": { "abs_path": false, "commentStart": 1047, "end": 0, "name": { "commentStart": 1047, "end": 0, "name": "faceSketch", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "commentStart": 1040, "end": 0, "start": 0, "type": "ReturnStatement", "type": "ReturnStatement" } ], "commentStart": 753, "end": 0, "start": 0 }, "commentStart": 745, "end": 0, "params": [ { "type": "Parameter", "identifier": { "commentStart": 746, "end": 0, "name": "plane", "start": 0, "type": "Identifier" } } ], "start": 0, "type": "FunctionExpression", "type": "FunctionExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "fn", "preComments": [ "", "", "// define a function which builds the profile of the baseplate bin" ], "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 1059, "declaration": { "commentStart": 1097, "end": 0, "id": { "commentStart": 1097, "end": 0, "name": "singleSide", "start": 0, "type": "Identifier" }, "init": { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1164, "end": 0, "name": "length", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1173, "end": 0, "left": { "abs_path": false, "commentStart": 1173, "end": 0, "name": { "commentStart": 1173, "end": 0, "name": "binLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "-", "right": { "commentStart": 1186, "end": 0, "left": { "abs_path": false, "commentStart": 1186, "end": 0, "name": { "commentStart": 1186, "end": 0, "name": "cornerRadius", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "*", "right": { "commentStart": 1201, "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" } } ], "callee": { "abs_path": false, "commentStart": 1110, "end": 0, "name": { "commentStart": 1110, "end": 0, "name": "extrude", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1110, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": { "arguments": [ { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1139, "end": 0, "name": "offset", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 1148, "end": 0, "name": { "commentStart": 1148, "end": 0, "name": "cornerRadius", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "callee": { "abs_path": false, "commentStart": 1123, "end": 0, "name": { "commentStart": 1123, "end": 0, "name": "offsetPlane", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1123, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": { "abs_path": false, "commentStart": 1135, "end": 0, "name": { "commentStart": 1135, "end": 0, "name": "YZ", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "callee": { "abs_path": false, "commentStart": 1118, "end": 0, "name": { "commentStart": 1118, "end": 0, "name": "face", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1118, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "preComments": [ "", "", "// extrude a single side of the bin" ], "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 1204, "declaration": { "commentStart": 1271, "end": 0, "id": { "commentStart": 1271, "end": 0, "name": "sides", "start": 0, "type": "Identifier" }, "init": { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1314, "end": 0, "name": "arcDegrees", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1327, "end": 0, "raw": "360", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 360.0, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 1334, "end": 0, "name": "axis", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1341, "elements": [ { "commentStart": 1342, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 1345, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 1348, "end": 0, "raw": "1", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 1354, "end": 0, "name": "center", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1363, "elements": [ { "commentStart": 1364, "end": 0, "left": { "abs_path": false, "commentStart": 1364, "end": 0, "name": { "commentStart": 1364, "end": 0, "name": "binLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "/", "right": { "commentStart": 1376, "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" }, { "commentStart": 1379, "end": 0, "left": { "abs_path": false, "commentStart": 1379, "end": 0, "name": { "commentStart": 1379, "end": 0, "name": "binLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "/", "right": { "commentStart": 1391, "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" }, { "commentStart": 1394, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 1400, "end": 0, "name": "instances", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1412, "end": 0, "raw": "4", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 4.0, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 1417, "end": 0, "name": "rotateDuplicates", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1436, "end": 0, "raw": "true", "start": 0, "type": "Literal", "type": "Literal", "value": true } } ], "callee": { "abs_path": false, "commentStart": 1279, "end": 0, "name": { "commentStart": 1279, "end": 0, "name": "patternCircular3d", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1279, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": { "abs_path": false, "commentStart": 1300, "end": 0, "name": { "commentStart": 1300, "end": 0, "name": "singleSide", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "preComments": [ "", "", "// create the other sides of the bin by using a circular pattern" ], "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 1443, "declaration": { "commentStart": 1471, "end": 0, "id": { "commentStart": 1471, "end": 0, "name": "axis000", "start": 0, "type": "Identifier" }, "init": { "commentStart": 1481, "end": 0, "properties": [ { "commentStart": 1485, "end": 0, "key": { "commentStart": 1485, "end": 0, "name": "custom", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "commentStart": 1494, "end": 0, "properties": [ { "commentStart": 1500, "end": 0, "key": { "commentStart": 1500, "end": 0, "name": "axis", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "commentStart": 1507, "elements": [ { "commentStart": 1508, "end": 0, "raw": "0.0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 1513, "end": 0, "raw": "1.0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } }, { "commentStart": 1523, "end": 0, "key": { "commentStart": 1523, "end": 0, "name": "origin", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "commentStart": 1532, "elements": [ { "abs_path": false, "commentStart": 1533, "end": 0, "name": { "commentStart": 1533, "end": 0, "name": "cornerRadius", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, { "abs_path": false, "commentStart": 1547, "end": 0, "name": { "commentStart": 1547, "end": 0, "name": "cornerRadius", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } } ], "start": 0, "type": "ObjectExpression", "type": "ObjectExpression" } } ], "start": 0, "type": "ObjectExpression", "type": "ObjectExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "preComments": [ "", "", "// define an axis axis000" ], "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 1566, "declaration": { "commentStart": 1605, "end": 0, "id": { "commentStart": 1605, "end": 0, "name": "singleCorner", "start": 0, "type": "Identifier" }, "init": { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1674, "end": 0, "name": "angle", "start": 0, "type": "Identifier" }, "arg": { "argument": { "commentStart": 1683, "end": 0, "raw": "90", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 90.0, "suffix": "None" } }, "commentStart": 1682, "end": 0, "operator": "-", "start": 0, "type": "UnaryExpression", "type": "UnaryExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 1687, "end": 0, "name": "axis", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 1694, "end": 0, "name": { "commentStart": 1694, "end": 0, "name": "axis000", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "callee": { "abs_path": false, "commentStart": 1620, "end": 0, "name": { "commentStart": 1620, "end": 0, "name": "revolve", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1620, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": { "arguments": [ { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1649, "end": 0, "name": "offset", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 1658, "end": 0, "name": { "commentStart": 1658, "end": 0, "name": "cornerRadius", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "callee": { "abs_path": false, "commentStart": 1633, "end": 0, "name": { "commentStart": 1633, "end": 0, "name": "offsetPlane", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1633, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": { "abs_path": false, "commentStart": 1645, "end": 0, "name": { "commentStart": 1645, "end": 0, "name": "YZ", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "callee": { "abs_path": false, "commentStart": 1628, "end": 0, "name": { "commentStart": 1628, "end": 0, "name": "face", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1628, "end": 0, "start": 0, "type": "CallExpression", "type": "CallExpression" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "preComments": [ "", "", "// create a single corner of the bin" ], "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 1702, "declaration": { "commentStart": 1737, "end": 0, "id": { "commentStart": 1737, "end": 0, "name": "corners", "start": 0, "type": "Identifier" }, "init": { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 1784, "end": 0, "name": "arcDegrees", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1797, "end": 0, "raw": "360", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 360.0, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 1804, "end": 0, "name": "axis", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1811, "elements": [ { "commentStart": 1812, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 1815, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 1818, "end": 0, "raw": "1", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 1824, "end": 0, "name": "center", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1833, "elements": [ { "commentStart": 1834, "end": 0, "left": { "abs_path": false, "commentStart": 1834, "end": 0, "name": { "commentStart": 1834, "end": 0, "name": "binLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "/", "right": { "commentStart": 1846, "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" }, { "commentStart": 1849, "end": 0, "left": { "abs_path": false, "commentStart": 1849, "end": 0, "name": { "commentStart": 1849, "end": 0, "name": "binLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" }, "operator": "/", "right": { "commentStart": 1861, "end": 0, "raw": "2", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 2.0, "suffix": "None" } }, "start": 0, "type": "BinaryExpression", "type": "BinaryExpression" }, { "commentStart": 1864, "end": 0, "raw": "0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 1870, "end": 0, "name": "instances", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1882, "end": 0, "raw": "4", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 4.0, "suffix": "None" } } }, { "type": "LabeledArg", "label": { "commentStart": 1887, "end": 0, "name": "rotateDuplicates", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 1906, "end": 0, "raw": "true", "start": 0, "type": "Literal", "type": "Literal", "value": true } } ], "callee": { "abs_path": false, "commentStart": 1747, "end": 0, "name": { "commentStart": 1747, "end": 0, "name": "patternCircular3d", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1747, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": { "abs_path": false, "commentStart": 1768, "end": 0, "name": { "commentStart": 1768, "end": 0, "name": "singleCorner", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "preComments": [ "", "", "// create the corners of the bin" ], "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 1913, "declaration": { "commentStart": 1959, "end": 0, "id": { "commentStart": 1959, "end": 0, "name": "basePlateSides", "start": 0, "type": "Identifier" }, "init": { "body": [ { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 2014, "end": 0, "name": "axis", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 2021, "elements": [ { "commentStart": 2022, "end": 0, "raw": "1.0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } }, { "commentStart": 2027, "end": 0, "raw": "0.0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 2032, "end": 0, "raw": "0.0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 2045, "end": 0, "name": "instances", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 2057, "end": 0, "name": { "commentStart": 2057, "end": 0, "name": "countBinWidth", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } }, { "type": "LabeledArg", "label": { "commentStart": 2079, "end": 0, "name": "distance", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 2090, "end": 0, "name": { "commentStart": 2090, "end": 0, "name": "binLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "callee": { "abs_path": false, "commentStart": 1976, "end": 0, "name": { "commentStart": 1976, "end": 0, "name": "patternLinear3d", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 1976, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": { "abs_path": false, "commentStart": 2000, "end": 0, "name": { "commentStart": 2000, "end": 0, "name": "sides", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 2129, "end": 0, "name": "axis", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 2136, "elements": [ { "commentStart": 2137, "end": 0, "raw": "0.0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 2142, "end": 0, "raw": "1.0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } }, { "commentStart": 2147, "end": 0, "raw": "0.0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 2153, "end": 0, "name": "instances", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 2165, "end": 0, "name": { "commentStart": 2165, "end": 0, "name": "countBinLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } }, { "type": "LabeledArg", "label": { "commentStart": 2181, "end": 0, "name": "distance", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 2192, "end": 0, "name": { "commentStart": 2192, "end": 0, "name": "binLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "callee": { "abs_path": false, "commentStart": 2113, "end": 0, "name": { "commentStart": 2113, "end": 0, "name": "patternLinear3d", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 2113, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null } ], "commentStart": 1976, "end": 0, "nonCodeMeta": { "nonCodeNodes": { "1": [ { "commentStart": 2202, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLineBlockComment", "value": "create the corners of the baseplate by patterning the corners", "style": "line" } } ] }, "startNodes": [] }, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "preComments": [ "", "", "// create the baseplate by patterning sides" ], "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" }, { "commentStart": 2269, "declaration": { "commentStart": 2269, "end": 0, "id": { "commentStart": 2269, "end": 0, "name": "basePlateCorners", "start": 0, "type": "Identifier" }, "init": { "body": [ { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 2328, "end": 0, "name": "axis", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 2335, "elements": [ { "commentStart": 2336, "end": 0, "raw": "1.0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } }, { "commentStart": 2341, "end": 0, "raw": "0.0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 2346, "end": 0, "raw": "0.0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 2359, "end": 0, "name": "instances", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 2371, "end": 0, "name": { "commentStart": 2371, "end": 0, "name": "countBinWidth", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } }, { "type": "LabeledArg", "label": { "commentStart": 2393, "end": 0, "name": "distance", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 2404, "end": 0, "name": { "commentStart": 2404, "end": 0, "name": "binLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "callee": { "abs_path": false, "commentStart": 2288, "end": 0, "name": { "commentStart": 2288, "end": 0, "name": "patternLinear3d", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 2288, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": { "abs_path": false, "commentStart": 2312, "end": 0, "name": { "commentStart": 2312, "end": 0, "name": "corners", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } }, { "arguments": [ { "type": "LabeledArg", "label": { "commentStart": 2443, "end": 0, "name": "axis", "start": 0, "type": "Identifier" }, "arg": { "commentStart": 2450, "elements": [ { "commentStart": 2451, "end": 0, "raw": "0.0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } }, { "commentStart": 2456, "end": 0, "raw": "1.0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 1.0, "suffix": "None" } }, { "commentStart": 2461, "end": 0, "raw": "0.0", "start": 0, "type": "Literal", "type": "Literal", "value": { "value": 0.0, "suffix": "None" } } ], "end": 0, "start": 0, "type": "ArrayExpression", "type": "ArrayExpression" } }, { "type": "LabeledArg", "label": { "commentStart": 2467, "end": 0, "name": "instances", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 2479, "end": 0, "name": { "commentStart": 2479, "end": 0, "name": "countBinLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } }, { "type": "LabeledArg", "label": { "commentStart": 2495, "end": 0, "name": "distance", "start": 0, "type": "Identifier" }, "arg": { "abs_path": false, "commentStart": 2506, "end": 0, "name": { "commentStart": 2506, "end": 0, "name": "binLength", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "callee": { "abs_path": false, "commentStart": 2427, "end": 0, "name": { "commentStart": 2427, "end": 0, "name": "patternLinear3d", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name" }, "commentStart": 2427, "end": 0, "start": 0, "type": "CallExpressionKw", "type": "CallExpressionKw", "unlabeled": null } ], "commentStart": 2288, "end": 0, "start": 0, "type": "PipeExpression", "type": "PipeExpression" }, "start": 0, "type": "VariableDeclarator" }, "end": 0, "kind": "const", "start": 0, "type": "VariableDeclaration", "type": "VariableDeclaration" } ], "commentStart": 0, "end": 0, "innerAttrs": [ { "commentStart": 0, "end": 0, "name": { "commentStart": 312, "end": 0, "name": "settings", "start": 0, "type": "Identifier" }, "preComments": [ "// Gridfinity Baseplate", "// Gridfinity is a system to help you work more efficiently. This is a system invented by Zack Freedman. There are two main components the baseplate and the bins. The components are comprised of a matrix of squares. Allowing easy stacking and expansion", "", "", "// Set units in millimeters (mm)" ], "properties": [ { "commentStart": 321, "end": 0, "key": { "commentStart": 321, "end": 0, "name": "defaultLengthUnit", "start": 0, "type": "Identifier" }, "start": 0, "type": "ObjectProperty", "value": { "abs_path": false, "commentStart": 341, "end": 0, "name": { "commentStart": 341, "end": 0, "name": "mm", "start": 0, "type": "Identifier" }, "path": [], "start": 0, "type": "Name", "type": "Name" } } ], "start": 0, "type": "Annotation" } ], "nonCodeMeta": { "nonCodeNodes": {}, "startNodes": [ { "commentStart": 344, "end": 0, "start": 0, "type": "NonCodeNode", "value": { "type": "newLine" } } ] }, "start": 0 } }