640 lines
		
	
	
		
			14 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			640 lines
		
	
	
		
			14 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
---
 | 
						|
source: kcl-lib/src/simulation_tests.rs
 | 
						|
description: Operations executed t-slot-rail.kcl
 | 
						|
---
 | 
						|
[
 | 
						|
  {
 | 
						|
    "type": "StdLibCall",
 | 
						|
    "name": "startSketchOn",
 | 
						|
    "unlabeledArg": {
 | 
						|
      "value": {
 | 
						|
        "type": "Plane",
 | 
						|
        "artifact_id": "[uuid]"
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    },
 | 
						|
    "labeledArgs": {},
 | 
						|
    "nodePath": {
 | 
						|
      "steps": [
 | 
						|
        {
 | 
						|
          "type": "ProgramBodyItem",
 | 
						|
          "index": 4
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationDeclaration"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationInit"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "FunctionExpressionBody"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "FunctionExpressionBodyItem",
 | 
						|
          "index": 0
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "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": "Inches"
 | 
						|
                    },
 | 
						|
                    "angle": {
 | 
						|
                      "type": "Degrees"
 | 
						|
                    }
 | 
						|
                  }
 | 
						|
                },
 | 
						|
                {
 | 
						|
                  "type": "Number",
 | 
						|
                  "value": 1.0,
 | 
						|
                  "ty": {
 | 
						|
                    "type": "Default",
 | 
						|
                    "len": {
 | 
						|
                      "type": "Inches"
 | 
						|
                    },
 | 
						|
                    "angle": {
 | 
						|
                      "type": "Degrees"
 | 
						|
                    }
 | 
						|
                  }
 | 
						|
                }
 | 
						|
              ]
 | 
						|
            },
 | 
						|
            "origin": {
 | 
						|
              "type": "Array",
 | 
						|
              "value": [
 | 
						|
                {
 | 
						|
                  "type": "Number",
 | 
						|
                  "value": 0.0,
 | 
						|
                  "ty": {
 | 
						|
                    "type": "Default",
 | 
						|
                    "len": {
 | 
						|
                      "type": "Inches"
 | 
						|
                    },
 | 
						|
                    "angle": {
 | 
						|
                      "type": "Degrees"
 | 
						|
                    }
 | 
						|
                  }
 | 
						|
                },
 | 
						|
                {
 | 
						|
                  "type": "Number",
 | 
						|
                  "value": 0.0,
 | 
						|
                  "ty": {
 | 
						|
                    "type": "Default",
 | 
						|
                    "len": {
 | 
						|
                      "type": "Inches"
 | 
						|
                    },
 | 
						|
                    "angle": {
 | 
						|
                      "type": "Degrees"
 | 
						|
                    }
 | 
						|
                  }
 | 
						|
                }
 | 
						|
              ]
 | 
						|
            }
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "sourceRange": []
 | 
						|
      }
 | 
						|
    },
 | 
						|
    "nodePath": {
 | 
						|
      "steps": [
 | 
						|
        {
 | 
						|
          "type": "ProgramBodyItem",
 | 
						|
          "index": 4
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationDeclaration"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationInit"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "FunctionExpressionBody"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "FunctionExpressionBodyItem",
 | 
						|
          "index": 0
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationDeclaration"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationInit"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "PipeBodyItem",
 | 
						|
          "index": 16
 | 
						|
        }
 | 
						|
      ]
 | 
						|
    },
 | 
						|
    "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": "Inches"
 | 
						|
                    },
 | 
						|
                    "angle": {
 | 
						|
                      "type": "Degrees"
 | 
						|
                    }
 | 
						|
                  }
 | 
						|
                },
 | 
						|
                {
 | 
						|
                  "type": "Number",
 | 
						|
                  "value": 0.0,
 | 
						|
                  "ty": {
 | 
						|
                    "type": "Default",
 | 
						|
                    "len": {
 | 
						|
                      "type": "Inches"
 | 
						|
                    },
 | 
						|
                    "angle": {
 | 
						|
                      "type": "Degrees"
 | 
						|
                    }
 | 
						|
                  }
 | 
						|
                }
 | 
						|
              ]
 | 
						|
            },
 | 
						|
            "origin": {
 | 
						|
              "type": "Array",
 | 
						|
              "value": [
 | 
						|
                {
 | 
						|
                  "type": "Number",
 | 
						|
                  "value": 0.0,
 | 
						|
                  "ty": {
 | 
						|
                    "type": "Default",
 | 
						|
                    "len": {
 | 
						|
                      "type": "Inches"
 | 
						|
                    },
 | 
						|
                    "angle": {
 | 
						|
                      "type": "Degrees"
 | 
						|
                    }
 | 
						|
                  }
 | 
						|
                },
 | 
						|
                {
 | 
						|
                  "type": "Number",
 | 
						|
                  "value": 0.5,
 | 
						|
                  "ty": {
 | 
						|
                    "type": "Default",
 | 
						|
                    "len": {
 | 
						|
                      "type": "Inches"
 | 
						|
                    },
 | 
						|
                    "angle": {
 | 
						|
                      "type": "Degrees"
 | 
						|
                    }
 | 
						|
                  }
 | 
						|
                }
 | 
						|
              ]
 | 
						|
            }
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "sourceRange": []
 | 
						|
      }
 | 
						|
    },
 | 
						|
    "nodePath": {
 | 
						|
      "steps": [
 | 
						|
        {
 | 
						|
          "type": "ProgramBodyItem",
 | 
						|
          "index": 4
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationDeclaration"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationInit"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "FunctionExpressionBody"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "FunctionExpressionBodyItem",
 | 
						|
          "index": 0
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationDeclaration"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationInit"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "PipeBodyItem",
 | 
						|
          "index": 17
 | 
						|
        }
 | 
						|
      ]
 | 
						|
    },
 | 
						|
    "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": "Inches"
 | 
						|
                    },
 | 
						|
                    "angle": {
 | 
						|
                      "type": "Degrees"
 | 
						|
                    }
 | 
						|
                  }
 | 
						|
                },
 | 
						|
                {
 | 
						|
                  "type": "Number",
 | 
						|
                  "value": 1.0,
 | 
						|
                  "ty": {
 | 
						|
                    "type": "Default",
 | 
						|
                    "len": {
 | 
						|
                      "type": "Inches"
 | 
						|
                    },
 | 
						|
                    "angle": {
 | 
						|
                      "type": "Degrees"
 | 
						|
                    }
 | 
						|
                  }
 | 
						|
                }
 | 
						|
              ]
 | 
						|
            },
 | 
						|
            "origin": {
 | 
						|
              "type": "Array",
 | 
						|
              "value": [
 | 
						|
                {
 | 
						|
                  "type": "Number",
 | 
						|
                  "value": 0.5,
 | 
						|
                  "ty": {
 | 
						|
                    "type": "Default",
 | 
						|
                    "len": {
 | 
						|
                      "type": "Inches"
 | 
						|
                    },
 | 
						|
                    "angle": {
 | 
						|
                      "type": "Degrees"
 | 
						|
                    }
 | 
						|
                  }
 | 
						|
                },
 | 
						|
                {
 | 
						|
                  "type": "Number",
 | 
						|
                  "value": 0.0,
 | 
						|
                  "ty": {
 | 
						|
                    "type": "Default",
 | 
						|
                    "len": {
 | 
						|
                      "type": "Inches"
 | 
						|
                    },
 | 
						|
                    "angle": {
 | 
						|
                      "type": "Degrees"
 | 
						|
                    }
 | 
						|
                  }
 | 
						|
                }
 | 
						|
              ]
 | 
						|
            }
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "sourceRange": []
 | 
						|
      }
 | 
						|
    },
 | 
						|
    "nodePath": {
 | 
						|
      "steps": [
 | 
						|
        {
 | 
						|
          "type": "ProgramBodyItem",
 | 
						|
          "index": 4
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationDeclaration"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationInit"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "FunctionExpressionBody"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "FunctionExpressionBodyItem",
 | 
						|
          "index": 0
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationDeclaration"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationInit"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "PipeBodyItem",
 | 
						|
          "index": 18
 | 
						|
        }
 | 
						|
      ]
 | 
						|
    },
 | 
						|
    "sourceRange": []
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "type": "StdLibCall",
 | 
						|
    "name": "subtract2d",
 | 
						|
    "unlabeledArg": {
 | 
						|
      "value": {
 | 
						|
        "type": "Sketch",
 | 
						|
        "value": {
 | 
						|
          "artifactId": "[uuid]"
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    },
 | 
						|
    "labeledArgs": {
 | 
						|
      "tool": {
 | 
						|
        "value": {
 | 
						|
          "type": "Sketch",
 | 
						|
          "value": {
 | 
						|
            "artifactId": "[uuid]"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "sourceRange": []
 | 
						|
      }
 | 
						|
    },
 | 
						|
    "nodePath": {
 | 
						|
      "steps": [
 | 
						|
        {
 | 
						|
          "type": "ProgramBodyItem",
 | 
						|
          "index": 4
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationDeclaration"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationInit"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "FunctionExpressionBody"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "FunctionExpressionBodyItem",
 | 
						|
          "index": 0
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationDeclaration"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationInit"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "PipeBodyItem",
 | 
						|
          "index": 20
 | 
						|
        }
 | 
						|
      ]
 | 
						|
    },
 | 
						|
    "sourceRange": []
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "type": "StdLibCall",
 | 
						|
    "name": "scale",
 | 
						|
    "unlabeledArg": {
 | 
						|
      "value": {
 | 
						|
        "type": "Sketch",
 | 
						|
        "value": {
 | 
						|
          "artifactId": "[uuid]"
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    },
 | 
						|
    "labeledArgs": {
 | 
						|
      "x": {
 | 
						|
        "value": {
 | 
						|
          "type": "Number",
 | 
						|
          "value": 1.5,
 | 
						|
          "ty": {
 | 
						|
            "type": "Known",
 | 
						|
            "type": "Count"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "sourceRange": []
 | 
						|
      },
 | 
						|
      "z": {
 | 
						|
        "value": {
 | 
						|
          "type": "Number",
 | 
						|
          "value": 1.5,
 | 
						|
          "ty": {
 | 
						|
            "type": "Known",
 | 
						|
            "type": "Count"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "sourceRange": []
 | 
						|
      }
 | 
						|
    },
 | 
						|
    "nodePath": {
 | 
						|
      "steps": [
 | 
						|
        {
 | 
						|
          "type": "ProgramBodyItem",
 | 
						|
          "index": 4
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationDeclaration"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationInit"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "FunctionExpressionBody"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "FunctionExpressionBodyItem",
 | 
						|
          "index": 0
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationDeclaration"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationInit"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "PipeBodyItem",
 | 
						|
          "index": 21
 | 
						|
        }
 | 
						|
      ]
 | 
						|
    },
 | 
						|
    "sourceRange": []
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "type": "StdLibCall",
 | 
						|
    "name": "extrude",
 | 
						|
    "unlabeledArg": {
 | 
						|
      "value": {
 | 
						|
        "type": "Sketch",
 | 
						|
        "value": {
 | 
						|
          "artifactId": "[uuid]"
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    },
 | 
						|
    "labeledArgs": {
 | 
						|
      "length": {
 | 
						|
        "value": {
 | 
						|
          "type": "Number",
 | 
						|
          "value": -2.0,
 | 
						|
          "ty": {
 | 
						|
            "type": "Known",
 | 
						|
            "type": "Length",
 | 
						|
            "type": "Feet"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "sourceRange": []
 | 
						|
      }
 | 
						|
    },
 | 
						|
    "nodePath": {
 | 
						|
      "steps": [
 | 
						|
        {
 | 
						|
          "type": "ProgramBodyItem",
 | 
						|
          "index": 4
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationDeclaration"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationInit"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "FunctionExpressionBody"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "FunctionExpressionBodyItem",
 | 
						|
          "index": 0
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationDeclaration"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationInit"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "PipeBodyItem",
 | 
						|
          "index": 22
 | 
						|
        }
 | 
						|
      ]
 | 
						|
    },
 | 
						|
    "sourceRange": []
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "type": "GroupBegin",
 | 
						|
    "group": {
 | 
						|
      "type": "FunctionCall",
 | 
						|
      "name": "railTslot",
 | 
						|
      "functionSourceRange": [],
 | 
						|
      "unlabeledArg": null,
 | 
						|
      "labeledArgs": {
 | 
						|
        "railHeight": {
 | 
						|
          "value": {
 | 
						|
            "type": "Number",
 | 
						|
            "value": 1.5,
 | 
						|
            "ty": {
 | 
						|
              "type": "Default",
 | 
						|
              "len": {
 | 
						|
                "type": "Inches"
 | 
						|
              },
 | 
						|
              "angle": {
 | 
						|
                "type": "Degrees"
 | 
						|
              }
 | 
						|
            }
 | 
						|
          },
 | 
						|
          "sourceRange": []
 | 
						|
        },
 | 
						|
        "railLength": {
 | 
						|
          "value": {
 | 
						|
            "type": "Number",
 | 
						|
            "value": 2.0,
 | 
						|
            "ty": {
 | 
						|
              "type": "Known",
 | 
						|
              "type": "Length",
 | 
						|
              "type": "Feet"
 | 
						|
            }
 | 
						|
          },
 | 
						|
          "sourceRange": []
 | 
						|
        }
 | 
						|
      }
 | 
						|
    },
 | 
						|
    "nodePath": {
 | 
						|
      "steps": [
 | 
						|
        {
 | 
						|
          "type": "ProgramBodyItem",
 | 
						|
          "index": 5
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "ExpressionStatementExpr"
 | 
						|
        }
 | 
						|
      ]
 | 
						|
    },
 | 
						|
    "sourceRange": []
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "type": "GroupEnd"
 | 
						|
  }
 | 
						|
]
 |