--- source: kcl-lib/src/simulation_tests.rs description: Operations executed subtract_regression10.kcl --- { "rust/kcl-lib/tests/subtract_regression10/input.kcl": [ { "type": "StdLibCall", "name": "startSketchOn", "unlabeledArg": { "value": { "type": "Plane", "artifact_id": "[uuid]" }, "sourceRange": [] }, "labeledArgs": {}, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 7 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "startSketchOn", "unlabeledArg": { "value": { "type": "Plane", "artifact_id": "[uuid]" }, "sourceRange": [] }, "labeledArgs": {}, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 9 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "PipeBodyItem", "index": 0 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "revolve", "unlabeledArg": { "value": { "type": "Sketch", "value": { "artifactId": "[uuid]" } }, "sourceRange": [] }, "labeledArgs": { "angle": { "value": { "type": "Number", "value": 360.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } }, "sourceRange": [] }, "axis": { "value": { "type": "Object", "value": { "direction": { "type": "Array", "value": [ { "type": "Number", "value": 0.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } }, { "type": "Number", "value": 1.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } } ] }, "origin": { "type": "Array", "value": [ { "type": "Number", "value": 0.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } }, { "type": "Number", "value": 0.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } } ] } } }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 9 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "PipeBodyItem", "index": 22 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "startSketchOn", "unlabeledArg": { "value": { "type": "Plane", "artifact_id": "[uuid]" }, "sourceRange": [] }, "labeledArgs": {}, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 10 }, { "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": 314.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } }, "sourceRange": [] }, "symmetric": { "value": { "type": "Bool", "value": true }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 10 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "PipeBodyItem", "index": 7 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "patternCircular3d", "unlabeledArg": { "value": { "type": "Solid", "value": { "artifactId": "[uuid]" } }, "sourceRange": [] }, "labeledArgs": { "arcDegrees": { "value": { "type": "Number", "value": 360.0, "ty": { "type": "Known", "type": "Angle", "type": "Degrees" } }, "sourceRange": [] }, "axis": { "value": { "type": "Array", "value": [ { "type": "Number", "value": 0.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } }, { "type": "Number", "value": 0.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } }, { "type": "Number", "value": 1.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } } ] }, "sourceRange": [] }, "center": { "value": { "type": "Array", "value": [ { "type": "Number", "value": 0.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } }, { "type": "Number", "value": 0.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } }, { "type": "Number", "value": 0.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } } ] }, "sourceRange": [] }, "instances": { "value": { "type": "Number", "value": 2.0, "ty": { "type": "Known", "type": "Count" } }, "sourceRange": [] }, "rotateDuplicates": { "value": { "type": "Bool", "value": true }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 11 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "union", "unlabeledArg": { "value": { "type": "Array", "value": [ { "type": "Solid", "value": { "artifactId": "[uuid]" } }, { "type": "Solid", "value": { "artifactId": "[uuid]" } } ] }, "sourceRange": [] }, "labeledArgs": {}, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 12 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "CallKwArg", "index": 0 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "subtract", "unlabeledArg": { "value": { "type": "Array", "value": [ { "type": "Solid", "value": { "artifactId": "[uuid]" } } ] }, "sourceRange": [] }, "labeledArgs": { "tools": { "value": { "type": "Solid", "value": { "artifactId": "[uuid]" } }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 12 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "startSketchOn", "unlabeledArg": { "value": { "type": "Plane", "artifact_id": "[uuid]" }, "sourceRange": [] }, "labeledArgs": {}, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 13 }, { "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": 92.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } }, "sourceRange": [] }, "symmetric": { "value": { "type": "Bool", "value": true }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 13 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "PipeBodyItem", "index": 2 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "fillet", "unlabeledArg": { "value": { "type": "Solid", "value": { "artifactId": "[uuid]" } }, "sourceRange": [] }, "labeledArgs": { "radius": { "value": { "type": "Number", "value": 1.875, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } }, "sourceRange": [] }, "tags": { "value": { "type": "Array", "value": [ { "type": "Uuid", "value": "[uuid]" }, { "type": "TagIdentifier", "value": "seg04", "artifact_id": "[uuid]" } ] }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 13 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "PipeBodyItem", "index": 3 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "startSketchOn", "unlabeledArg": { "value": { "type": "Plane", "artifact_id": "[uuid]" }, "sourceRange": [] }, "labeledArgs": {}, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 14 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "PipeBodyItem", "index": 0 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "mirror2d", "unlabeledArg": { "value": { "type": "Sketch", "value": { "artifactId": "[uuid]" } }, "sourceRange": [] }, "labeledArgs": { "axis": { "value": { "type": "Object", "value": { "direction": { "type": "Array", "value": [ { "type": "Number", "value": 0.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } }, { "type": "Number", "value": 1.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } } ] }, "origin": { "type": "Array", "value": [ { "type": "Number", "value": 0.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } }, { "type": "Number", "value": 0.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } } ] } } }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 14 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "PipeBodyItem", "index": 6 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "extrude", "unlabeledArg": { "value": { "type": "Sketch", "value": { "artifactId": "[uuid]" } }, "sourceRange": [] }, "labeledArgs": { "length": { "value": { "type": "Number", "value": 314.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } }, "sourceRange": [] }, "symmetric": { "value": { "type": "Bool", "value": true }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 14 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "PipeBodyItem", "index": 8 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "subtract", "unlabeledArg": { "value": { "type": "Array", "value": [ { "type": "Solid", "value": { "artifactId": "[uuid]" } } ] }, "sourceRange": [] }, "labeledArgs": { "tools": { "value": { "type": "Array", "value": [ { "type": "Solid", "value": { "artifactId": "[uuid]" } } ] }, "sourceRange": [] } }, "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": 16 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "PipeBodyItem", "index": 0 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "mirror2d", "unlabeledArg": { "value": { "type": "Sketch", "value": { "artifactId": "[uuid]" } }, "sourceRange": [] }, "labeledArgs": { "axis": { "value": { "type": "TagIdentifier", "value": "seg02", "artifact_id": "[uuid]" }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 16 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "PipeBodyItem", "index": 20 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "extrude", "unlabeledArg": { "value": { "type": "Sketch", "value": { "artifactId": "[uuid]" } }, "sourceRange": [] }, "labeledArgs": { "length": { "value": { "type": "Number", "value": 54.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } }, "sourceRange": [] }, "symmetric": { "value": { "type": "Bool", "value": true }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 16 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "PipeBodyItem", "index": 22 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "startSketchOn", "unlabeledArg": { "value": { "type": "Plane", "artifact_id": "[uuid]" }, "sourceRange": [] }, "labeledArgs": {}, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 18 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "PipeBodyItem", "index": 0 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "mirror2d", "unlabeledArg": { "value": { "type": "Sketch", "value": { "artifactId": "[uuid]" } }, "sourceRange": [] }, "labeledArgs": { "axis": { "value": { "type": "Object", "value": { "direction": { "type": "Array", "value": [ { "type": "Number", "value": 1.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } }, { "type": "Number", "value": 0.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } } ] }, "origin": { "type": "Array", "value": [ { "type": "Number", "value": 0.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } }, { "type": "Number", "value": 0.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } } ] } } }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 18 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "PipeBodyItem", "index": 7 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "extrude", "unlabeledArg": { "value": { "type": "Sketch", "value": { "artifactId": "[uuid]" } }, "sourceRange": [] }, "labeledArgs": { "length": { "value": { "type": "Number", "value": 554.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } }, "sourceRange": [] }, "symmetric": { "value": { "type": "Bool", "value": true }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 18 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "PipeBodyItem", "index": 9 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "intersect", "unlabeledArg": { "value": { "type": "Array", "value": [ { "type": "Solid", "value": { "artifactId": "[uuid]" } }, { "type": "Solid", "value": { "artifactId": "[uuid]" } } ] }, "sourceRange": [] }, "labeledArgs": {}, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 19 }, { "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" } ] }, "sourceRange": [] }, { "type": "GroupBegin", "group": { "type": "FunctionCall", "name": "polar", "functionSourceRange": [], "unlabeledArg": null, "labeledArgs": { "angle": { "value": { "type": "Number", "value": 0.698, "ty": { "type": "Known", "type": "Angle", "type": "Radians" } }, "sourceRange": [] }, "length": { "value": { "type": "Number", "value": 55.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } }, "sourceRange": [] } } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 21 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "PipeBodyItem", "index": 0 }, { "type": "CallKwArg", "index": 0 } ] }, "sourceRange": [] }, { "type": "GroupEnd" }, { "type": "StdLibCall", "name": "extrude", "unlabeledArg": { "value": { "type": "Sketch", "value": { "artifactId": "[uuid]" } }, "sourceRange": [] }, "labeledArgs": { "length": { "value": { "type": "Number", "value": 54.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } }, "sourceRange": [] }, "symmetric": { "value": { "type": "Bool", "value": true }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 21 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "PipeBodyItem", "index": 1 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "extrude", "unlabeledArg": { "value": { "type": "Sketch", "value": { "artifactId": "[uuid]" } }, "sourceRange": [] }, "labeledArgs": { "length": { "value": { "type": "Number", "value": 54.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } }, "sourceRange": [] }, "symmetric": { "value": { "type": "Bool", "value": true }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 22 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "PipeBodyItem", "index": 1 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "union", "unlabeledArg": { "value": { "type": "Array", "value": [ { "type": "Solid", "value": { "artifactId": "[uuid]" } }, { "type": "Solid", "value": { "artifactId": "[uuid]" } } ] }, "sourceRange": [] }, "labeledArgs": {}, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 23 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "CallKwArg", "index": 0 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "subtract", "unlabeledArg": { "value": { "type": "Array", "value": [ { "type": "Solid", "value": { "artifactId": "[uuid]" } } ] }, "sourceRange": [] }, "labeledArgs": { "tools": { "value": { "type": "Solid", "value": { "artifactId": "[uuid]" } }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 23 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "startSketchOn", "unlabeledArg": { "value": { "type": "Plane", "artifact_id": "[uuid]" }, "sourceRange": [] }, "labeledArgs": {}, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 24 }, { "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": 300.0, "ty": { "type": "Default", "len": { "type": "Mm" }, "angle": { "type": "Degrees" } } }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 24 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "PipeBodyItem", "index": 3 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "union", "unlabeledArg": { "value": { "type": "Array", "value": [ { "type": "Solid", "value": { "artifactId": "[uuid]" } }, { "type": "Solid", "value": { "artifactId": "[uuid]" } } ] }, "sourceRange": [] }, "labeledArgs": {}, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 25 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" }, { "type": "CallKwArg", "index": 0 } ] }, "sourceRange": [] }, { "type": "StdLibCall", "name": "subtract", "unlabeledArg": { "value": { "type": "Array", "value": [ { "type": "Solid", "value": { "artifactId": "[uuid]" } } ] }, "sourceRange": [] }, "labeledArgs": { "tools": { "value": { "type": "Solid", "value": { "artifactId": "[uuid]" } }, "sourceRange": [] } }, "nodePath": { "steps": [ { "type": "ProgramBodyItem", "index": 25 }, { "type": "VariableDeclarationDeclaration" }, { "type": "VariableDeclarationInit" } ] }, "sourceRange": [] } ], "std::appearance": [], "std::array": [], "std::math": [], "std::prelude": [], "std::sketch": [], "std::solid": [], "std::sweep": [], "std::transform": [], "std::turns": [], "std::types": [], "std::units": [] }