--- source: kcl-lib/src/simulation_tests.rs description: Operations executed bracket.kcl --- { "public/kcl-samples/bracket/main.kcl": [ { "type": "VariableDeclaration", "name": "sigmaAllow", "value": { "type": "Number", "value": 35000.0, "ty": { "type": "Default", "len": { "type": "Inches" }, "angle": { "type": "Degrees" } } }, "visibility": "default", "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 0 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" } ] }, "sourceRange": [] }, { "type": "VariableDeclaration", "name": "width", "value": { "type": "Number", "value": 5.0, "ty": { "type": "Default", "len": { "type": "Inches" }, "angle": { "type": "Degrees" } } }, "visibility": "default", "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 1 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" } ] }, "sourceRange": [] }, { "type": "VariableDeclaration", "name": "p", "value": { "type": "Number", "value": 300.0, "ty": { "type": "Default", "len": { "type": "Inches" }, "angle": { "type": "Degrees" } } }, "visibility": "default", "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 2 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" } ] }, "sourceRange": [] }, { "type": "VariableDeclaration", "name": "fos", "value": { "type": "Number", "value": 1.2, "ty": { "type": "Default", "len": { "type": "Inches" }, "angle": { "type": "Degrees" } } }, "visibility": "default", "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 3 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" } ] }, "sourceRange": [] }, { "type": "VariableDeclaration", "name": "shelfMountLength", "value": { "type": "Number", "value": 5.0, "ty": { "type": "Default", "len": { "type": "Inches" }, "angle": { "type": "Degrees" } } }, "visibility": "default", "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 4 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" } ] }, "sourceRange": [] }, { "type": "VariableDeclaration", "name": "wallMountLength", "value": { "type": "Number", "value": 2.25, "ty": { "type": "Default", "len": { "type": "Inches" }, "angle": { "type": "Degrees" } } }, "visibility": "default", "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 5 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" } ] }, "sourceRange": [] }, { "type": "VariableDeclaration", "name": "shelfDepth", "value": { "type": "Number", "value": 12.0, "ty": { "type": "Default", "len": { "type": "Inches" }, "angle": { "type": "Degrees" } } }, "visibility": "default", "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 6 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" } ] }, "sourceRange": [] }, { "type": "VariableDeclaration", "name": "shelfMountingHoleDiameter", "value": { "type": "Number", "value": 0.5, "ty": { "type": "Default", "len": { "type": "Inches" }, "angle": { "type": "Degrees" } } }, "visibility": "default", "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 7 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" } ] }, "sourceRange": [] }, { "type": "VariableDeclaration", "name": "wallMountingHoleDiameter", "value": { "type": "Number", "value": 0.625, "ty": { "type": "Default", "len": { "type": "Inches" }, "angle": { "type": "Degrees" } } }, "visibility": "default", "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 8 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" } ] }, "sourceRange": [] }, { "type": "VariableDeclaration", "name": "moment", "value": { "type": "Number", "value": 3600.0, "ty": { "type": "Default", "len": { "type": "Inches" }, "angle": { "type": "Degrees" } } }, "visibility": "default", "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 9 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" } ] }, "sourceRange": [] }, { "type": "VariableDeclaration", "name": "thickness", "value": { "type": "Number", "value": 0.3848561883538911, "ty": { "type": "Default", "len": { "type": "Inches" }, "angle": { "type": "Degrees" } } }, "visibility": "default", "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 10 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" } ] }, "sourceRange": [] }, { "type": "VariableDeclaration", "name": "bendRadius", "value": { "type": "Number", "value": 0.25, "ty": { "type": "Default", "len": { "type": "Inches" }, "angle": { "type": "Degrees" } } }, "visibility": "default", "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 11 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" } ] }, "sourceRange": [] }, { "type": "VariableDeclaration", "name": "extBendRadius", "value": { "type": "Number", "value": 0.6348561883538911, "ty": { "type": "Default", "len": { "type": "Inches" }, "angle": { "type": "Degrees" } } }, "visibility": "default", "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 12 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" } ] }, "sourceRange": [] }, { "type": "VariableDeclaration", "name": "filletRadius", "value": { "type": "Number", "value": 0.5, "ty": { "type": "Default", "len": { "type": "Inches" }, "angle": { "type": "Degrees" } } }, "visibility": "default", "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 13 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" } ] }, "sourceRange": [] }, { "type": "VariableDeclaration", "name": "shelfMountingHolePlacementOffset", "value": { "type": "Number", "value": 0.75, "ty": { "type": "Default", "len": { "type": "Inches" }, "angle": { "type": "Degrees" } } }, "visibility": "default", "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 14 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" } ] }, "sourceRange": [] }, { "type": "VariableDeclaration", "name": "wallMountingHolePlacementOffset", "value": { "type": "Number", "value": 0.9375, "ty": { "type": "Default", "len": { "type": "Inches" }, "angle": { "type": "Degrees" } } }, "visibility": "default", "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 15 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "startSketchOn", "unlabeledArg": { "value": { "type": "Plane", "artifact_id": "[uuid]" }, "sourceRange": [] }, "labeledArgs": {}, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 20 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "PipeBodyItem", "index": 0 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "extrude", "unlabeledArg": { "value": { "type": "Sketch", "value": { "artifactId": "[uuid]" } }, "sourceRange": [] }, "labeledArgs": { "length": { "value": { "type": "Number", "value": 5.0, "ty": { "type": "Default", "len": { "type": "Inches" }, "angle": { "type": "Degrees" } } }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 20 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "PipeBodyItem", "index": 9 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "startSketchOn", "unlabeledArg": { "value": { "type": "Solid", "value": { "artifactId": "[uuid]" } }, "sourceRange": [] }, "labeledArgs": { "face": { "value": { "type": "TagIdentifier", "value": "seg03", "artifact_id": "[uuid]" }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 21 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "PipeBodyItem", "index": 0 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "extrude", "unlabeledArg": { "value": { "type": "Array", "value": [ { "type": "Sketch", "value": { "artifactId": "[uuid]" } }, { "type": "Sketch", "value": { "artifactId": "[uuid]" } }, { "type": "Sketch", "value": { "artifactId": "[uuid]" } }, { "type": "Sketch", "value": { "artifactId": "[uuid]" } } ] }, "sourceRange": [] }, "labeledArgs": { "length": { "value": { "type": "Number", "value": -0.39485618835389114, "ty": { "type": "Default", "len": { "type": "Inches" }, "angle": { "type": "Degrees" } } }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 21 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "PipeBodyItem", "index": 4 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "startSketchOn", "unlabeledArg": { "value": { "type": "Solid", "value": { "artifactId": "[uuid]" } }, "sourceRange": [] }, "labeledArgs": { "face": { "value": { "type": "TagIdentifier", "value": "seg04", "artifact_id": "[uuid]" }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 22 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "PipeBodyItem", "index": 0 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "extrude", "unlabeledArg": { "value": { "type": "Array", "value": [ { "type": "Sketch", "value": { "artifactId": "[uuid]" } }, { "type": "Sketch", "value": { "artifactId": "[uuid]" } } ] }, "sourceRange": [] }, "labeledArgs": { "length": { "value": { "type": "Number", "value": -0.4848561883538911, "ty": { "type": "Default", "len": { "type": "Inches" }, "angle": { "type": "Degrees" } } }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 22 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "PipeBodyItem", "index": 3 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "fillet", "unlabeledArg": { "value": { "type": "Solid", "value": { "artifactId": "[uuid]" } }, "sourceRange": [] }, "labeledArgs": { "radius": { "value": { "type": "Number", "value": 0.6348561883538911, "ty": { "type": "Default", "len": { "type": "Inches" }, "angle": { "type": "Degrees" } } }, "sourceRange": [] }, "tags": { "value": { "type": "Array", "value": [ { "type": "Uuid", "value": "[uuid]" } ] }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 23 }, { "type": "ExpressionStatementExpr" } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "fillet", "unlabeledArg": { "value": { "type": "Solid", "value": { "artifactId": "[uuid]" } }, "sourceRange": [] }, "labeledArgs": { "radius": { "value": { "type": "Number", "value": 0.25, "ty": { "type": "Default", "len": { "type": "Inches" }, "angle": { "type": "Degrees" } } }, "sourceRange": [] }, "tags": { "value": { "type": "Array", "value": [ { "type": "Uuid", "value": "[uuid]" } ] }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 24 }, { "type": "ExpressionStatementExpr" } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "fillet", "unlabeledArg": { "value": { "type": "Solid", "value": { "artifactId": "[uuid]" } }, "sourceRange": [] }, "labeledArgs": { "radius": { "value": { "type": "Number", "value": 0.5, "ty": { "type": "Default", "len": { "type": "Inches" }, "angle": { "type": "Degrees" } } }, "sourceRange": [] }, "tags": { "value": { "type": "Array", "value": [ { "type": "TagIdentifier", "value": "seg02", "artifact_id": "[uuid]" }, { "type": "Uuid", "value": "[uuid]" }, { "type": "TagIdentifier", "value": "seg05", "artifact_id": "[uuid]" }, { "type": "Uuid", "value": "[uuid]" } ] }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 25 }, { "type": "ExpressionStatementExpr" } ] }, "sourceRange": [] } ], "std::appearance": [], "std::array": [], "std::math": [ { "type": "VariableDeclaration", "name": "PI", "value": { "type": "Number", "value": 3.141592653589793, "ty": { "type": "Unknown" } }, "visibility": "export", "nodePath": { "steps": [] }, "sourceRange": [] }, { "type": "VariableDeclaration", "name": "E", "value": { "type": "Number", "value": 2.718281828459045, "ty": { "type": "Known", "type": "Count" } }, "visibility": "export", "nodePath": { "steps": [] }, "sourceRange": [] }, { "type": "VariableDeclaration", "name": "TAU", "value": { "type": "Number", "value": 6.283185307179586, "ty": { "type": "Known", "type": "Count" } }, "visibility": "export", "nodePath": { "steps": [] }, "sourceRange": [] } ], "std::prelude": [ { "type": "VariableDeclaration", "name": "START", "value": { "type": "String", "value": "start" }, "visibility": "export", "nodePath": { "steps": [] }, "sourceRange": [] }, { "type": "VariableDeclaration", "name": "END", "value": { "type": "String", "value": "end" }, "visibility": "export", "nodePath": { "steps": [] }, "sourceRange": [] } ], "std::sketch": [], "std::solid": [], "std::sweep": [], "std::transform": [], "std::turns": [], "std::types": [], "std::units": [] }