* Add operation tracking for CSG boolean functions * Add CSG operations to the Feature Tree * Add just command * Add union sim test * Update output with new sim test * Add CSG subtract test * Update output from subtract test * Add intersect sim test * Update output for intersect test
		
			
				
	
	
		
			159 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			159 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
---
 | 
						|
source: kcl-lib/src/simulation_tests.rs
 | 
						|
description: Operations executed union_cubes.kcl
 | 
						|
---
 | 
						|
[
 | 
						|
  {
 | 
						|
    "type": "UserDefinedFunctionCall",
 | 
						|
    "name": "cube",
 | 
						|
    "functionSourceRange": [
 | 
						|
      7,
 | 
						|
      328,
 | 
						|
      0
 | 
						|
    ],
 | 
						|
    "unlabeledArg": null,
 | 
						|
    "labeledArgs": {},
 | 
						|
    "sourceRange": []
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "labeledArgs": {
 | 
						|
      "data": {
 | 
						|
        "value": {
 | 
						|
          "type": "Plane",
 | 
						|
          "artifact_id": "[uuid]"
 | 
						|
        },
 | 
						|
        "sourceRange": []
 | 
						|
      }
 | 
						|
    },
 | 
						|
    "name": "startSketchOn",
 | 
						|
    "sourceRange": [],
 | 
						|
    "type": "StdLibCall",
 | 
						|
    "unlabeledArg": null
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "labeledArgs": {
 | 
						|
      "length": {
 | 
						|
        "value": {
 | 
						|
          "type": "Number",
 | 
						|
          "value": 10.0,
 | 
						|
          "ty": {
 | 
						|
            "type": "Default",
 | 
						|
            "len": {
 | 
						|
              "type": "Mm"
 | 
						|
            },
 | 
						|
            "angle": {
 | 
						|
              "type": "Degrees"
 | 
						|
            }
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "sourceRange": []
 | 
						|
      }
 | 
						|
    },
 | 
						|
    "name": "extrude",
 | 
						|
    "sourceRange": [],
 | 
						|
    "type": "StdLibCall",
 | 
						|
    "unlabeledArg": {
 | 
						|
      "value": {
 | 
						|
        "type": "Sketch",
 | 
						|
        "value": {
 | 
						|
          "artifactId": "[uuid]"
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "type": "UserDefinedFunctionReturn"
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "type": "UserDefinedFunctionCall",
 | 
						|
    "name": "cube",
 | 
						|
    "functionSourceRange": [
 | 
						|
      7,
 | 
						|
      328,
 | 
						|
      0
 | 
						|
    ],
 | 
						|
    "unlabeledArg": null,
 | 
						|
    "labeledArgs": {},
 | 
						|
    "sourceRange": []
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "labeledArgs": {
 | 
						|
      "data": {
 | 
						|
        "value": {
 | 
						|
          "type": "Plane",
 | 
						|
          "artifact_id": "[uuid]"
 | 
						|
        },
 | 
						|
        "sourceRange": []
 | 
						|
      }
 | 
						|
    },
 | 
						|
    "name": "startSketchOn",
 | 
						|
    "sourceRange": [],
 | 
						|
    "type": "StdLibCall",
 | 
						|
    "unlabeledArg": null
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "labeledArgs": {
 | 
						|
      "length": {
 | 
						|
        "value": {
 | 
						|
          "type": "Number",
 | 
						|
          "value": 10.0,
 | 
						|
          "ty": {
 | 
						|
            "type": "Default",
 | 
						|
            "len": {
 | 
						|
              "type": "Mm"
 | 
						|
            },
 | 
						|
            "angle": {
 | 
						|
              "type": "Degrees"
 | 
						|
            }
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "sourceRange": []
 | 
						|
      }
 | 
						|
    },
 | 
						|
    "name": "extrude",
 | 
						|
    "sourceRange": [],
 | 
						|
    "type": "StdLibCall",
 | 
						|
    "unlabeledArg": {
 | 
						|
      "value": {
 | 
						|
        "type": "Sketch",
 | 
						|
        "value": {
 | 
						|
          "artifactId": "[uuid]"
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    }
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "type": "UserDefinedFunctionReturn"
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "labeledArgs": {
 | 
						|
      "solids": {
 | 
						|
        "value": {
 | 
						|
          "type": "Array",
 | 
						|
          "value": [
 | 
						|
            {
 | 
						|
              "type": "Solid",
 | 
						|
              "value": {
 | 
						|
                "artifactId": "[uuid]"
 | 
						|
              }
 | 
						|
            },
 | 
						|
            {
 | 
						|
              "type": "Solid",
 | 
						|
              "value": {
 | 
						|
                "artifactId": "[uuid]"
 | 
						|
              }
 | 
						|
            }
 | 
						|
          ]
 | 
						|
        },
 | 
						|
        "sourceRange": []
 | 
						|
      }
 | 
						|
    },
 | 
						|
    "name": "union",
 | 
						|
    "sourceRange": [],
 | 
						|
    "type": "StdLibCall",
 | 
						|
    "unlabeledArg": null
 | 
						|
  }
 | 
						|
]
 |