* Add libm dependency * Change to use libm for trig functions * Remove redactions for floating point * Update output * Use clippy to prevent stdlib math sneaking back in --------- Co-authored-by: Adam Chalmers <adam.chalmers@zoo.dev>
		
			
				
	
	
		
			1235 lines
		
	
	
		
			26 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			1235 lines
		
	
	
		
			26 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
---
 | 
						|
source: kcl-lib/src/simulation_tests.rs
 | 
						|
description: Operations executed pattern_into_union.kcl
 | 
						|
---
 | 
						|
{
 | 
						|
  "rust/kcl-lib/tests/pattern_into_union/input.kcl": [
 | 
						|
    {
 | 
						|
      "type": "VariableDeclaration",
 | 
						|
      "name": "nPlates",
 | 
						|
      "value": {
 | 
						|
        "type": "Number",
 | 
						|
        "value": 20.0,
 | 
						|
        "ty": {
 | 
						|
          "type": "Default",
 | 
						|
          "len": {
 | 
						|
            "type": "Mm"
 | 
						|
          },
 | 
						|
          "angle": {
 | 
						|
            "type": "Degrees"
 | 
						|
          }
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "visibility": "default",
 | 
						|
      "nodePath": {
 | 
						|
        "steps": [
 | 
						|
          {
 | 
						|
            "type": "ProgramBodyItem",
 | 
						|
            "index": 0
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationDeclaration"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationInit"
 | 
						|
          }
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "type": "VariableDeclaration",
 | 
						|
      "name": "buildPlateThickness",
 | 
						|
      "value": {
 | 
						|
        "type": "Number",
 | 
						|
        "value": 0.03937007874015748,
 | 
						|
        "ty": {
 | 
						|
          "type": "Default",
 | 
						|
          "len": {
 | 
						|
            "type": "Mm"
 | 
						|
          },
 | 
						|
          "angle": {
 | 
						|
            "type": "Degrees"
 | 
						|
          }
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "visibility": "default",
 | 
						|
      "nodePath": {
 | 
						|
        "steps": [
 | 
						|
          {
 | 
						|
            "type": "ProgramBodyItem",
 | 
						|
            "index": 1
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationDeclaration"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationInit"
 | 
						|
          }
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "type": "VariableDeclaration",
 | 
						|
      "name": "buildPlateWidth",
 | 
						|
      "value": {
 | 
						|
        "type": "Number",
 | 
						|
        "value": 10.125,
 | 
						|
        "ty": {
 | 
						|
          "type": "Default",
 | 
						|
          "len": {
 | 
						|
            "type": "Mm"
 | 
						|
          },
 | 
						|
          "angle": {
 | 
						|
            "type": "Degrees"
 | 
						|
          }
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "visibility": "default",
 | 
						|
      "nodePath": {
 | 
						|
        "steps": [
 | 
						|
          {
 | 
						|
            "type": "ProgramBodyItem",
 | 
						|
            "index": 2
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationDeclaration"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationInit"
 | 
						|
          }
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "type": "VariableDeclaration",
 | 
						|
      "name": "widthTolerance",
 | 
						|
      "value": {
 | 
						|
        "type": "Number",
 | 
						|
        "value": 0.2,
 | 
						|
        "ty": {
 | 
						|
          "type": "Default",
 | 
						|
          "len": {
 | 
						|
            "type": "Mm"
 | 
						|
          },
 | 
						|
          "angle": {
 | 
						|
            "type": "Degrees"
 | 
						|
          }
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "visibility": "default",
 | 
						|
      "nodePath": {
 | 
						|
        "steps": [
 | 
						|
          {
 | 
						|
            "type": "ProgramBodyItem",
 | 
						|
            "index": 3
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationDeclaration"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationInit"
 | 
						|
          }
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "type": "VariableDeclaration",
 | 
						|
      "name": "thicknessTolerance",
 | 
						|
      "value": {
 | 
						|
        "type": "Number",
 | 
						|
        "value": 0.02,
 | 
						|
        "ty": {
 | 
						|
          "type": "Default",
 | 
						|
          "len": {
 | 
						|
            "type": "Mm"
 | 
						|
          },
 | 
						|
          "angle": {
 | 
						|
            "type": "Degrees"
 | 
						|
          }
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "visibility": "default",
 | 
						|
      "nodePath": {
 | 
						|
        "steps": [
 | 
						|
          {
 | 
						|
            "type": "ProgramBodyItem",
 | 
						|
            "index": 4
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationDeclaration"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationInit"
 | 
						|
          }
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "type": "VariableDeclaration",
 | 
						|
      "name": "endWidth",
 | 
						|
      "value": {
 | 
						|
        "type": "Number",
 | 
						|
        "value": 0.5,
 | 
						|
        "ty": {
 | 
						|
          "type": "Default",
 | 
						|
          "len": {
 | 
						|
            "type": "Mm"
 | 
						|
          },
 | 
						|
          "angle": {
 | 
						|
            "type": "Degrees"
 | 
						|
          }
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "visibility": "default",
 | 
						|
      "nodePath": {
 | 
						|
        "steps": [
 | 
						|
          {
 | 
						|
            "type": "ProgramBodyItem",
 | 
						|
            "index": 5
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationDeclaration"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationInit"
 | 
						|
          }
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "type": "VariableDeclaration",
 | 
						|
      "name": "endTabWidth",
 | 
						|
      "value": {
 | 
						|
        "type": "Number",
 | 
						|
        "value": 2.0,
 | 
						|
        "ty": {
 | 
						|
          "type": "Default",
 | 
						|
          "len": {
 | 
						|
            "type": "Mm"
 | 
						|
          },
 | 
						|
          "angle": {
 | 
						|
            "type": "Degrees"
 | 
						|
          }
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "visibility": "default",
 | 
						|
      "nodePath": {
 | 
						|
        "steps": [
 | 
						|
          {
 | 
						|
            "type": "ProgramBodyItem",
 | 
						|
            "index": 6
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationDeclaration"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationInit"
 | 
						|
          }
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "type": "VariableDeclaration",
 | 
						|
      "name": "endTabHeight",
 | 
						|
      "value": {
 | 
						|
        "type": "Number",
 | 
						|
        "value": 1.0,
 | 
						|
        "ty": {
 | 
						|
          "type": "Default",
 | 
						|
          "len": {
 | 
						|
            "type": "Mm"
 | 
						|
          },
 | 
						|
          "angle": {
 | 
						|
            "type": "Degrees"
 | 
						|
          }
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "visibility": "default",
 | 
						|
      "nodePath": {
 | 
						|
        "steps": [
 | 
						|
          {
 | 
						|
            "type": "ProgramBodyItem",
 | 
						|
            "index": 7
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationDeclaration"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationInit"
 | 
						|
          }
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "type": "VariableDeclaration",
 | 
						|
      "name": "endTabThickness",
 | 
						|
      "value": {
 | 
						|
        "type": "Number",
 | 
						|
        "value": 0.1,
 | 
						|
        "ty": {
 | 
						|
          "type": "Default",
 | 
						|
          "len": {
 | 
						|
            "type": "Mm"
 | 
						|
          },
 | 
						|
          "angle": {
 | 
						|
            "type": "Degrees"
 | 
						|
          }
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "visibility": "default",
 | 
						|
      "nodePath": {
 | 
						|
        "steps": [
 | 
						|
          {
 | 
						|
            "type": "ProgramBodyItem",
 | 
						|
            "index": 8
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationDeclaration"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationInit"
 | 
						|
          }
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "type": "VariableDeclaration",
 | 
						|
      "name": "width",
 | 
						|
      "value": {
 | 
						|
        "type": "Number",
 | 
						|
        "value": 11.525,
 | 
						|
        "ty": {
 | 
						|
          "type": "Default",
 | 
						|
          "len": {
 | 
						|
            "type": "Mm"
 | 
						|
          },
 | 
						|
          "angle": {
 | 
						|
            "type": "Degrees"
 | 
						|
          }
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "visibility": "default",
 | 
						|
      "nodePath": {
 | 
						|
        "steps": [
 | 
						|
          {
 | 
						|
            "type": "ProgramBodyItem",
 | 
						|
            "index": 9
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationDeclaration"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationInit"
 | 
						|
          }
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "type": "VariableDeclaration",
 | 
						|
      "name": "depth",
 | 
						|
      "value": {
 | 
						|
        "type": "Number",
 | 
						|
        "value": 3.28740157480315,
 | 
						|
        "ty": {
 | 
						|
          "type": "Default",
 | 
						|
          "len": {
 | 
						|
            "type": "Mm"
 | 
						|
          },
 | 
						|
          "angle": {
 | 
						|
            "type": "Degrees"
 | 
						|
          }
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "visibility": "default",
 | 
						|
      "nodePath": {
 | 
						|
        "steps": [
 | 
						|
          {
 | 
						|
            "type": "ProgramBodyItem",
 | 
						|
            "index": 10
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationDeclaration"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationInit"
 | 
						|
          }
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "type": "VariableDeclaration",
 | 
						|
      "name": "baseHeight",
 | 
						|
      "value": {
 | 
						|
        "type": "Number",
 | 
						|
        "value": 0.25,
 | 
						|
        "ty": {
 | 
						|
          "type": "Default",
 | 
						|
          "len": {
 | 
						|
            "type": "Mm"
 | 
						|
          },
 | 
						|
          "angle": {
 | 
						|
            "type": "Degrees"
 | 
						|
          }
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "visibility": "default",
 | 
						|
      "nodePath": {
 | 
						|
        "steps": [
 | 
						|
          {
 | 
						|
            "type": "ProgramBodyItem",
 | 
						|
            "index": 11
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationDeclaration"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationInit"
 | 
						|
          }
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "type": "StdLibCall",
 | 
						|
      "name": "startSketchOn",
 | 
						|
      "unlabeledArg": {
 | 
						|
        "value": {
 | 
						|
          "type": "Plane",
 | 
						|
          "artifact_id": "[uuid]"
 | 
						|
        },
 | 
						|
        "sourceRange": []
 | 
						|
      },
 | 
						|
      "labeledArgs": {},
 | 
						|
      "nodePath": {
 | 
						|
        "steps": [
 | 
						|
          {
 | 
						|
            "type": "ProgramBodyItem",
 | 
						|
            "index": 12
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "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": -3.28740157480315,
 | 
						|
            "ty": {
 | 
						|
              "type": "Default",
 | 
						|
              "len": {
 | 
						|
                "type": "Mm"
 | 
						|
              },
 | 
						|
              "angle": {
 | 
						|
                "type": "Degrees"
 | 
						|
              }
 | 
						|
            }
 | 
						|
          },
 | 
						|
          "sourceRange": []
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "nodePath": {
 | 
						|
        "steps": [
 | 
						|
          {
 | 
						|
            "type": "ProgramBodyItem",
 | 
						|
            "index": 12
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationDeclaration"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationInit"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "PipeBodyItem",
 | 
						|
            "index": 10
 | 
						|
          }
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      "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": -0.1,
 | 
						|
            "ty": {
 | 
						|
              "type": "Default",
 | 
						|
              "len": {
 | 
						|
                "type": "Mm"
 | 
						|
              },
 | 
						|
              "angle": {
 | 
						|
                "type": "Degrees"
 | 
						|
              }
 | 
						|
            }
 | 
						|
          },
 | 
						|
          "sourceRange": []
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "nodePath": {
 | 
						|
        "steps": [
 | 
						|
          {
 | 
						|
            "type": "ProgramBodyItem",
 | 
						|
            "index": 13
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationDeclaration"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationInit"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "PipeBodyItem",
 | 
						|
            "index": 6
 | 
						|
          }
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "type": "StdLibCall",
 | 
						|
      "name": "fillet",
 | 
						|
      "unlabeledArg": {
 | 
						|
        "value": {
 | 
						|
          "type": "Solid",
 | 
						|
          "value": {
 | 
						|
            "artifactId": "[uuid]"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "sourceRange": []
 | 
						|
      },
 | 
						|
      "labeledArgs": {
 | 
						|
        "radius": {
 | 
						|
          "value": {
 | 
						|
            "type": "Number",
 | 
						|
            "value": 0.1,
 | 
						|
            "ty": {
 | 
						|
              "type": "Default",
 | 
						|
              "len": {
 | 
						|
                "type": "Mm"
 | 
						|
              },
 | 
						|
              "angle": {
 | 
						|
                "type": "Degrees"
 | 
						|
              }
 | 
						|
            }
 | 
						|
          },
 | 
						|
          "sourceRange": []
 | 
						|
        },
 | 
						|
        "tags": {
 | 
						|
          "value": {
 | 
						|
            "type": "Array",
 | 
						|
            "value": [
 | 
						|
              {
 | 
						|
                "type": "Uuid",
 | 
						|
                "value": "[uuid]"
 | 
						|
              }
 | 
						|
            ]
 | 
						|
          },
 | 
						|
          "sourceRange": []
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "nodePath": {
 | 
						|
        "steps": [
 | 
						|
          {
 | 
						|
            "type": "ProgramBodyItem",
 | 
						|
            "index": 13
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationDeclaration"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationInit"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "PipeBodyItem",
 | 
						|
            "index": 7
 | 
						|
          }
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "type": "StdLibCall",
 | 
						|
      "name": "patternLinear3d",
 | 
						|
      "unlabeledArg": {
 | 
						|
        "value": {
 | 
						|
          "type": "Solid",
 | 
						|
          "value": {
 | 
						|
            "artifactId": "[uuid]"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "sourceRange": []
 | 
						|
      },
 | 
						|
      "labeledArgs": {
 | 
						|
        "axis": {
 | 
						|
          "value": {
 | 
						|
            "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"
 | 
						|
                  }
 | 
						|
                }
 | 
						|
              },
 | 
						|
              {
 | 
						|
                "type": "Number",
 | 
						|
                "value": 0.0,
 | 
						|
                "ty": {
 | 
						|
                  "type": "Default",
 | 
						|
                  "len": {
 | 
						|
                    "type": "Mm"
 | 
						|
                  },
 | 
						|
                  "angle": {
 | 
						|
                    "type": "Degrees"
 | 
						|
                  }
 | 
						|
                }
 | 
						|
              }
 | 
						|
            ]
 | 
						|
          },
 | 
						|
          "sourceRange": []
 | 
						|
        },
 | 
						|
        "distance": {
 | 
						|
          "value": {
 | 
						|
            "type": "Number",
 | 
						|
            "value": 0.1593700787401575,
 | 
						|
            "ty": {
 | 
						|
              "type": "Default",
 | 
						|
              "len": {
 | 
						|
                "type": "Mm"
 | 
						|
              },
 | 
						|
              "angle": {
 | 
						|
                "type": "Degrees"
 | 
						|
              }
 | 
						|
            }
 | 
						|
          },
 | 
						|
          "sourceRange": []
 | 
						|
        },
 | 
						|
        "instances": {
 | 
						|
          "value": {
 | 
						|
            "type": "Number",
 | 
						|
            "value": 21.0,
 | 
						|
            "ty": {
 | 
						|
              "type": "Known",
 | 
						|
              "type": "Count"
 | 
						|
            }
 | 
						|
          },
 | 
						|
          "sourceRange": []
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "nodePath": {
 | 
						|
        "steps": [
 | 
						|
          {
 | 
						|
            "type": "ProgramBodyItem",
 | 
						|
            "index": 13
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationDeclaration"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationInit"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "PipeBodyItem",
 | 
						|
            "index": 8
 | 
						|
          }
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      "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": "extrude",
 | 
						|
      "unlabeledArg": {
 | 
						|
        "value": {
 | 
						|
          "type": "Sketch",
 | 
						|
          "value": {
 | 
						|
            "artifactId": "[uuid]"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "sourceRange": []
 | 
						|
      },
 | 
						|
      "labeledArgs": {
 | 
						|
        "length": {
 | 
						|
          "value": {
 | 
						|
            "type": "Number",
 | 
						|
            "value": -0.1,
 | 
						|
            "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": "fillet",
 | 
						|
      "unlabeledArg": {
 | 
						|
        "value": {
 | 
						|
          "type": "Solid",
 | 
						|
          "value": {
 | 
						|
            "artifactId": "[uuid]"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "sourceRange": []
 | 
						|
      },
 | 
						|
      "labeledArgs": {
 | 
						|
        "radius": {
 | 
						|
          "value": {
 | 
						|
            "type": "Number",
 | 
						|
            "value": 0.1,
 | 
						|
            "ty": {
 | 
						|
              "type": "Default",
 | 
						|
              "len": {
 | 
						|
                "type": "Mm"
 | 
						|
              },
 | 
						|
              "angle": {
 | 
						|
                "type": "Degrees"
 | 
						|
              }
 | 
						|
            }
 | 
						|
          },
 | 
						|
          "sourceRange": []
 | 
						|
        },
 | 
						|
        "tags": {
 | 
						|
          "value": {
 | 
						|
            "type": "Array",
 | 
						|
            "value": [
 | 
						|
              {
 | 
						|
                "type": "Uuid",
 | 
						|
                "value": "[uuid]"
 | 
						|
              }
 | 
						|
            ]
 | 
						|
          },
 | 
						|
          "sourceRange": []
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "nodePath": {
 | 
						|
        "steps": [
 | 
						|
          {
 | 
						|
            "type": "ProgramBodyItem",
 | 
						|
            "index": 14
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationDeclaration"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationInit"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "PipeBodyItem",
 | 
						|
            "index": 7
 | 
						|
          }
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "type": "StdLibCall",
 | 
						|
      "name": "patternLinear3d",
 | 
						|
      "unlabeledArg": {
 | 
						|
        "value": {
 | 
						|
          "type": "Solid",
 | 
						|
          "value": {
 | 
						|
            "artifactId": "[uuid]"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "sourceRange": []
 | 
						|
      },
 | 
						|
      "labeledArgs": {
 | 
						|
        "axis": {
 | 
						|
          "value": {
 | 
						|
            "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"
 | 
						|
                  }
 | 
						|
                }
 | 
						|
              },
 | 
						|
              {
 | 
						|
                "type": "Number",
 | 
						|
                "value": 0.0,
 | 
						|
                "ty": {
 | 
						|
                  "type": "Default",
 | 
						|
                  "len": {
 | 
						|
                    "type": "Mm"
 | 
						|
                  },
 | 
						|
                  "angle": {
 | 
						|
                    "type": "Degrees"
 | 
						|
                  }
 | 
						|
                }
 | 
						|
              }
 | 
						|
            ]
 | 
						|
          },
 | 
						|
          "sourceRange": []
 | 
						|
        },
 | 
						|
        "distance": {
 | 
						|
          "value": {
 | 
						|
            "type": "Number",
 | 
						|
            "value": 0.1593700787401575,
 | 
						|
            "ty": {
 | 
						|
              "type": "Default",
 | 
						|
              "len": {
 | 
						|
                "type": "Mm"
 | 
						|
              },
 | 
						|
              "angle": {
 | 
						|
                "type": "Degrees"
 | 
						|
              }
 | 
						|
            }
 | 
						|
          },
 | 
						|
          "sourceRange": []
 | 
						|
        },
 | 
						|
        "instances": {
 | 
						|
          "value": {
 | 
						|
            "type": "Number",
 | 
						|
            "value": 21.0,
 | 
						|
            "ty": {
 | 
						|
              "type": "Known",
 | 
						|
              "type": "Count"
 | 
						|
            }
 | 
						|
          },
 | 
						|
          "sourceRange": []
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "nodePath": {
 | 
						|
        "steps": [
 | 
						|
          {
 | 
						|
            "type": "ProgramBodyItem",
 | 
						|
            "index": 14
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationDeclaration"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "VariableDeclarationInit"
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "PipeBodyItem",
 | 
						|
            "index": 8
 | 
						|
          }
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    },
 | 
						|
    {
 | 
						|
      "type": "StdLibCall",
 | 
						|
      "name": "union",
 | 
						|
      "unlabeledArg": {
 | 
						|
        "value": {
 | 
						|
          "type": "Array",
 | 
						|
          "value": [
 | 
						|
            {
 | 
						|
              "type": "Solid",
 | 
						|
              "value": {
 | 
						|
                "artifactId": "[uuid]"
 | 
						|
              }
 | 
						|
            },
 | 
						|
            {
 | 
						|
              "type": "Solid",
 | 
						|
              "value": {
 | 
						|
                "artifactId": "[uuid]"
 | 
						|
              }
 | 
						|
            },
 | 
						|
            {
 | 
						|
              "type": "Solid",
 | 
						|
              "value": {
 | 
						|
                "artifactId": "[uuid]"
 | 
						|
              }
 | 
						|
            },
 | 
						|
            {
 | 
						|
              "type": "Solid",
 | 
						|
              "value": {
 | 
						|
                "artifactId": "[uuid]"
 | 
						|
              }
 | 
						|
            },
 | 
						|
            {
 | 
						|
              "type": "Solid",
 | 
						|
              "value": {
 | 
						|
                "artifactId": "[uuid]"
 | 
						|
              }
 | 
						|
            },
 | 
						|
            {
 | 
						|
              "type": "Solid",
 | 
						|
              "value": {
 | 
						|
                "artifactId": "[uuid]"
 | 
						|
              }
 | 
						|
            },
 | 
						|
            {
 | 
						|
              "type": "Solid",
 | 
						|
              "value": {
 | 
						|
                "artifactId": "[uuid]"
 | 
						|
              }
 | 
						|
            },
 | 
						|
            {
 | 
						|
              "type": "Solid",
 | 
						|
              "value": {
 | 
						|
                "artifactId": "[uuid]"
 | 
						|
              }
 | 
						|
            },
 | 
						|
            {
 | 
						|
              "type": "Solid",
 | 
						|
              "value": {
 | 
						|
                "artifactId": "[uuid]"
 | 
						|
              }
 | 
						|
            },
 | 
						|
            {
 | 
						|
              "type": "Solid",
 | 
						|
              "value": {
 | 
						|
                "artifactId": "[uuid]"
 | 
						|
              }
 | 
						|
            },
 | 
						|
            {
 | 
						|
              "type": "Solid",
 | 
						|
              "value": {
 | 
						|
                "artifactId": "[uuid]"
 | 
						|
              }
 | 
						|
            },
 | 
						|
            {
 | 
						|
              "type": "Solid",
 | 
						|
              "value": {
 | 
						|
                "artifactId": "[uuid]"
 | 
						|
              }
 | 
						|
            },
 | 
						|
            {
 | 
						|
              "type": "Solid",
 | 
						|
              "value": {
 | 
						|
                "artifactId": "[uuid]"
 | 
						|
              }
 | 
						|
            },
 | 
						|
            {
 | 
						|
              "type": "Solid",
 | 
						|
              "value": {
 | 
						|
                "artifactId": "[uuid]"
 | 
						|
              }
 | 
						|
            },
 | 
						|
            {
 | 
						|
              "type": "Solid",
 | 
						|
              "value": {
 | 
						|
                "artifactId": "[uuid]"
 | 
						|
              }
 | 
						|
            },
 | 
						|
            {
 | 
						|
              "type": "Solid",
 | 
						|
              "value": {
 | 
						|
                "artifactId": "[uuid]"
 | 
						|
              }
 | 
						|
            },
 | 
						|
            {
 | 
						|
              "type": "Solid",
 | 
						|
              "value": {
 | 
						|
                "artifactId": "[uuid]"
 | 
						|
              }
 | 
						|
            },
 | 
						|
            {
 | 
						|
              "type": "Solid",
 | 
						|
              "value": {
 | 
						|
                "artifactId": "[uuid]"
 | 
						|
              }
 | 
						|
            },
 | 
						|
            {
 | 
						|
              "type": "Solid",
 | 
						|
              "value": {
 | 
						|
                "artifactId": "[uuid]"
 | 
						|
              }
 | 
						|
            },
 | 
						|
            {
 | 
						|
              "type": "Solid",
 | 
						|
              "value": {
 | 
						|
                "artifactId": "[uuid]"
 | 
						|
              }
 | 
						|
            },
 | 
						|
            {
 | 
						|
              "type": "Solid",
 | 
						|
              "value": {
 | 
						|
                "artifactId": "[uuid]"
 | 
						|
              }
 | 
						|
            },
 | 
						|
            {
 | 
						|
              "type": "Solid",
 | 
						|
              "value": {
 | 
						|
                "artifactId": "[uuid]"
 | 
						|
              }
 | 
						|
            }
 | 
						|
          ]
 | 
						|
        },
 | 
						|
        "sourceRange": []
 | 
						|
      },
 | 
						|
      "labeledArgs": {},
 | 
						|
      "nodePath": {
 | 
						|
        "steps": [
 | 
						|
          {
 | 
						|
            "type": "ProgramBodyItem",
 | 
						|
            "index": 15
 | 
						|
          },
 | 
						|
          {
 | 
						|
            "type": "ExpressionStatementExpr"
 | 
						|
          }
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      "sourceRange": [],
 | 
						|
      "isError": true
 | 
						|
    }
 | 
						|
  ],
 | 
						|
  "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": []
 | 
						|
}
 |