* More units of measure work Signed-off-by: Nick Cameron <nrc@ncameron.org> * Update CSG output since engine change --------- Signed-off-by: Nick Cameron <nrc@ncameron.org> Co-authored-by: Nick Cameron <nrc@ncameron.org>
		
			
				
	
	
		
			514 lines
		
	
	
		
			9.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			514 lines
		
	
	
		
			9.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
---
 | 
						|
source: kcl-lib/src/simulation_tests.rs
 | 
						|
description: Variables in memory after executing pipe-with-bend.kcl
 | 
						|
---
 | 
						|
{
 | 
						|
  "bendAngle": {
 | 
						|
    "type": "Number",
 | 
						|
    "value": 90.0,
 | 
						|
    "ty": {
 | 
						|
      "type": "Default",
 | 
						|
      "len": {
 | 
						|
        "type": "Inches"
 | 
						|
      },
 | 
						|
      "angle": {
 | 
						|
        "type": "Degrees"
 | 
						|
      }
 | 
						|
    }
 | 
						|
  },
 | 
						|
  "bendRadius": {
 | 
						|
    "type": "Number",
 | 
						|
    "value": 30.0,
 | 
						|
    "ty": {
 | 
						|
      "type": "Default",
 | 
						|
      "len": {
 | 
						|
        "type": "Inches"
 | 
						|
      },
 | 
						|
      "angle": {
 | 
						|
        "type": "Degrees"
 | 
						|
      }
 | 
						|
    }
 | 
						|
  },
 | 
						|
  "innerDiameter": {
 | 
						|
    "type": "Number",
 | 
						|
    "value": 10.0,
 | 
						|
    "ty": {
 | 
						|
      "type": "Default",
 | 
						|
      "len": {
 | 
						|
        "type": "Inches"
 | 
						|
      },
 | 
						|
      "angle": {
 | 
						|
        "type": "Degrees"
 | 
						|
      }
 | 
						|
    }
 | 
						|
  },
 | 
						|
  "innerProfile": {
 | 
						|
    "type": "Sketch",
 | 
						|
    "value": {
 | 
						|
      "type": "Sketch",
 | 
						|
      "id": "[uuid]",
 | 
						|
      "paths": [
 | 
						|
        {
 | 
						|
          "__geoMeta": {
 | 
						|
            "id": "[uuid]",
 | 
						|
            "sourceRange": []
 | 
						|
          },
 | 
						|
          "ccw": true,
 | 
						|
          "center": [
 | 
						|
            30.0,
 | 
						|
            0.0
 | 
						|
          ],
 | 
						|
          "from": [
 | 
						|
            35.0,
 | 
						|
            0.0
 | 
						|
          ],
 | 
						|
          "radius": 5.0,
 | 
						|
          "tag": null,
 | 
						|
          "to": [
 | 
						|
            35.0,
 | 
						|
            0.0
 | 
						|
          ],
 | 
						|
          "type": "Circle",
 | 
						|
          "units": {
 | 
						|
            "type": "Inches"
 | 
						|
          }
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      "on": {
 | 
						|
        "type": "plane",
 | 
						|
        "id": "[uuid]",
 | 
						|
        "artifactId": "[uuid]",
 | 
						|
        "value": "XZ",
 | 
						|
        "origin": {
 | 
						|
          "x": 0.0,
 | 
						|
          "y": 0.0,
 | 
						|
          "z": 0.0,
 | 
						|
          "units": {
 | 
						|
            "type": "Mm"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "xAxis": {
 | 
						|
          "x": 1.0,
 | 
						|
          "y": 0.0,
 | 
						|
          "z": 0.0,
 | 
						|
          "units": {
 | 
						|
            "type": "Mm"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "yAxis": {
 | 
						|
          "x": 0.0,
 | 
						|
          "y": 0.0,
 | 
						|
          "z": 1.0,
 | 
						|
          "units": {
 | 
						|
            "type": "Mm"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "zAxis": {
 | 
						|
          "x": 0.0,
 | 
						|
          "y": -1.0,
 | 
						|
          "z": 0.0,
 | 
						|
          "units": {
 | 
						|
            "type": "Mm"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "units": {
 | 
						|
          "type": "Inches"
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "start": {
 | 
						|
        "from": [
 | 
						|
          35.0,
 | 
						|
          0.0
 | 
						|
        ],
 | 
						|
        "to": [
 | 
						|
          35.0,
 | 
						|
          0.0
 | 
						|
        ],
 | 
						|
        "units": {
 | 
						|
          "type": "Inches"
 | 
						|
        },
 | 
						|
        "tag": null,
 | 
						|
        "__geoMeta": {
 | 
						|
          "id": "[uuid]",
 | 
						|
          "sourceRange": []
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "artifactId": "[uuid]",
 | 
						|
      "originalId": "[uuid]",
 | 
						|
      "units": {
 | 
						|
        "type": "Inches"
 | 
						|
      }
 | 
						|
    }
 | 
						|
  },
 | 
						|
  "outerDiameter": {
 | 
						|
    "type": "Number",
 | 
						|
    "value": 20.0,
 | 
						|
    "ty": {
 | 
						|
      "type": "Default",
 | 
						|
      "len": {
 | 
						|
        "type": "Inches"
 | 
						|
      },
 | 
						|
      "angle": {
 | 
						|
        "type": "Degrees"
 | 
						|
      }
 | 
						|
    }
 | 
						|
  },
 | 
						|
  "outerProfile": {
 | 
						|
    "type": "Sketch",
 | 
						|
    "value": {
 | 
						|
      "type": "Sketch",
 | 
						|
      "id": "[uuid]",
 | 
						|
      "paths": [
 | 
						|
        {
 | 
						|
          "__geoMeta": {
 | 
						|
            "id": "[uuid]",
 | 
						|
            "sourceRange": []
 | 
						|
          },
 | 
						|
          "ccw": true,
 | 
						|
          "center": [
 | 
						|
            30.0,
 | 
						|
            0.0
 | 
						|
          ],
 | 
						|
          "from": [
 | 
						|
            40.0,
 | 
						|
            0.0
 | 
						|
          ],
 | 
						|
          "radius": 10.0,
 | 
						|
          "tag": null,
 | 
						|
          "to": [
 | 
						|
            40.0,
 | 
						|
            0.0
 | 
						|
          ],
 | 
						|
          "type": "Circle",
 | 
						|
          "units": {
 | 
						|
            "type": "Inches"
 | 
						|
          }
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      "on": {
 | 
						|
        "type": "plane",
 | 
						|
        "id": "[uuid]",
 | 
						|
        "artifactId": "[uuid]",
 | 
						|
        "value": "XZ",
 | 
						|
        "origin": {
 | 
						|
          "x": 0.0,
 | 
						|
          "y": 0.0,
 | 
						|
          "z": 0.0,
 | 
						|
          "units": {
 | 
						|
            "type": "Mm"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "xAxis": {
 | 
						|
          "x": 1.0,
 | 
						|
          "y": 0.0,
 | 
						|
          "z": 0.0,
 | 
						|
          "units": {
 | 
						|
            "type": "Mm"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "yAxis": {
 | 
						|
          "x": 0.0,
 | 
						|
          "y": 0.0,
 | 
						|
          "z": 1.0,
 | 
						|
          "units": {
 | 
						|
            "type": "Mm"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "zAxis": {
 | 
						|
          "x": 0.0,
 | 
						|
          "y": -1.0,
 | 
						|
          "z": 0.0,
 | 
						|
          "units": {
 | 
						|
            "type": "Mm"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "units": {
 | 
						|
          "type": "Inches"
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "start": {
 | 
						|
        "from": [
 | 
						|
          40.0,
 | 
						|
          0.0
 | 
						|
        ],
 | 
						|
        "to": [
 | 
						|
          40.0,
 | 
						|
          0.0
 | 
						|
        ],
 | 
						|
        "units": {
 | 
						|
          "type": "Inches"
 | 
						|
        },
 | 
						|
        "tag": null,
 | 
						|
        "__geoMeta": {
 | 
						|
          "id": "[uuid]",
 | 
						|
          "sourceRange": []
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "artifactId": "[uuid]",
 | 
						|
      "originalId": "[uuid]",
 | 
						|
      "units": {
 | 
						|
        "type": "Inches"
 | 
						|
      }
 | 
						|
    }
 | 
						|
  },
 | 
						|
  "pipe": {
 | 
						|
    "type": "Solid",
 | 
						|
    "value": {
 | 
						|
      "type": "Solid",
 | 
						|
      "id": "[uuid]",
 | 
						|
      "artifactId": "[uuid]",
 | 
						|
      "value": [
 | 
						|
        {
 | 
						|
          "faceId": "[uuid]",
 | 
						|
          "id": "[uuid]",
 | 
						|
          "sourceRange": [],
 | 
						|
          "tag": null,
 | 
						|
          "type": "extrudeArc"
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      "sketch": {
 | 
						|
        "type": "Sketch",
 | 
						|
        "id": "[uuid]",
 | 
						|
        "paths": [
 | 
						|
          {
 | 
						|
            "__geoMeta": {
 | 
						|
              "id": "[uuid]",
 | 
						|
              "sourceRange": []
 | 
						|
            },
 | 
						|
            "ccw": true,
 | 
						|
            "center": [
 | 
						|
              30.0,
 | 
						|
              0.0
 | 
						|
            ],
 | 
						|
            "from": [
 | 
						|
              40.0,
 | 
						|
              0.0
 | 
						|
            ],
 | 
						|
            "radius": 10.0,
 | 
						|
            "tag": null,
 | 
						|
            "to": [
 | 
						|
              40.0,
 | 
						|
              0.0
 | 
						|
            ],
 | 
						|
            "type": "Circle",
 | 
						|
            "units": {
 | 
						|
              "type": "Inches"
 | 
						|
            }
 | 
						|
          }
 | 
						|
        ],
 | 
						|
        "on": {
 | 
						|
          "type": "plane",
 | 
						|
          "id": "[uuid]",
 | 
						|
          "artifactId": "[uuid]",
 | 
						|
          "value": "XZ",
 | 
						|
          "origin": {
 | 
						|
            "x": 0.0,
 | 
						|
            "y": 0.0,
 | 
						|
            "z": 0.0,
 | 
						|
            "units": {
 | 
						|
              "type": "Mm"
 | 
						|
            }
 | 
						|
          },
 | 
						|
          "xAxis": {
 | 
						|
            "x": 1.0,
 | 
						|
            "y": 0.0,
 | 
						|
            "z": 0.0,
 | 
						|
            "units": {
 | 
						|
              "type": "Mm"
 | 
						|
            }
 | 
						|
          },
 | 
						|
          "yAxis": {
 | 
						|
            "x": 0.0,
 | 
						|
            "y": 0.0,
 | 
						|
            "z": 1.0,
 | 
						|
            "units": {
 | 
						|
              "type": "Mm"
 | 
						|
            }
 | 
						|
          },
 | 
						|
          "zAxis": {
 | 
						|
            "x": 0.0,
 | 
						|
            "y": -1.0,
 | 
						|
            "z": 0.0,
 | 
						|
            "units": {
 | 
						|
              "type": "Mm"
 | 
						|
            }
 | 
						|
          },
 | 
						|
          "units": {
 | 
						|
            "type": "Inches"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "start": {
 | 
						|
          "from": [
 | 
						|
            40.0,
 | 
						|
            0.0
 | 
						|
          ],
 | 
						|
          "to": [
 | 
						|
            40.0,
 | 
						|
            0.0
 | 
						|
          ],
 | 
						|
          "units": {
 | 
						|
            "type": "Inches"
 | 
						|
          },
 | 
						|
          "tag": null,
 | 
						|
          "__geoMeta": {
 | 
						|
            "id": "[uuid]",
 | 
						|
            "sourceRange": []
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "artifactId": "[uuid]",
 | 
						|
        "originalId": "[uuid]",
 | 
						|
        "units": {
 | 
						|
          "type": "Inches"
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "height": 0.0,
 | 
						|
      "startCapId": "[uuid]",
 | 
						|
      "endCapId": "[uuid]",
 | 
						|
      "units": {
 | 
						|
        "type": "Inches"
 | 
						|
      }
 | 
						|
    }
 | 
						|
  },
 | 
						|
  "pipeProfile": {
 | 
						|
    "type": "Sketch",
 | 
						|
    "value": {
 | 
						|
      "type": "Sketch",
 | 
						|
      "id": "[uuid]",
 | 
						|
      "paths": [
 | 
						|
        {
 | 
						|
          "__geoMeta": {
 | 
						|
            "id": "[uuid]",
 | 
						|
            "sourceRange": []
 | 
						|
          },
 | 
						|
          "ccw": true,
 | 
						|
          "center": [
 | 
						|
            30.0,
 | 
						|
            0.0
 | 
						|
          ],
 | 
						|
          "from": [
 | 
						|
            40.0,
 | 
						|
            0.0
 | 
						|
          ],
 | 
						|
          "radius": 10.0,
 | 
						|
          "tag": null,
 | 
						|
          "to": [
 | 
						|
            40.0,
 | 
						|
            0.0
 | 
						|
          ],
 | 
						|
          "type": "Circle",
 | 
						|
          "units": {
 | 
						|
            "type": "Inches"
 | 
						|
          }
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      "on": {
 | 
						|
        "type": "plane",
 | 
						|
        "id": "[uuid]",
 | 
						|
        "artifactId": "[uuid]",
 | 
						|
        "value": "XZ",
 | 
						|
        "origin": {
 | 
						|
          "x": 0.0,
 | 
						|
          "y": 0.0,
 | 
						|
          "z": 0.0,
 | 
						|
          "units": {
 | 
						|
            "type": "Mm"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "xAxis": {
 | 
						|
          "x": 1.0,
 | 
						|
          "y": 0.0,
 | 
						|
          "z": 0.0,
 | 
						|
          "units": {
 | 
						|
            "type": "Mm"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "yAxis": {
 | 
						|
          "x": 0.0,
 | 
						|
          "y": 0.0,
 | 
						|
          "z": 1.0,
 | 
						|
          "units": {
 | 
						|
            "type": "Mm"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "zAxis": {
 | 
						|
          "x": 0.0,
 | 
						|
          "y": -1.0,
 | 
						|
          "z": 0.0,
 | 
						|
          "units": {
 | 
						|
            "type": "Mm"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "units": {
 | 
						|
          "type": "Inches"
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "start": {
 | 
						|
        "from": [
 | 
						|
          40.0,
 | 
						|
          0.0
 | 
						|
        ],
 | 
						|
        "to": [
 | 
						|
          40.0,
 | 
						|
          0.0
 | 
						|
        ],
 | 
						|
        "units": {
 | 
						|
          "type": "Inches"
 | 
						|
        },
 | 
						|
        "tag": null,
 | 
						|
        "__geoMeta": {
 | 
						|
          "id": "[uuid]",
 | 
						|
          "sourceRange": []
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "artifactId": "[uuid]",
 | 
						|
      "originalId": "[uuid]",
 | 
						|
      "units": {
 | 
						|
        "type": "Inches"
 | 
						|
      }
 | 
						|
    }
 | 
						|
  },
 | 
						|
  "sketch000": {
 | 
						|
    "type": "Plane",
 | 
						|
    "value": {
 | 
						|
      "id": "[uuid]",
 | 
						|
      "artifactId": "[uuid]",
 | 
						|
      "value": "XZ",
 | 
						|
      "origin": {
 | 
						|
        "x": 0.0,
 | 
						|
        "y": 0.0,
 | 
						|
        "z": 0.0,
 | 
						|
        "units": {
 | 
						|
          "type": "Mm"
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "xAxis": {
 | 
						|
        "x": 1.0,
 | 
						|
        "y": 0.0,
 | 
						|
        "z": 0.0,
 | 
						|
        "units": {
 | 
						|
          "type": "Mm"
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "yAxis": {
 | 
						|
        "x": 0.0,
 | 
						|
        "y": 0.0,
 | 
						|
        "z": 1.0,
 | 
						|
        "units": {
 | 
						|
          "type": "Mm"
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "zAxis": {
 | 
						|
        "x": 0.0,
 | 
						|
        "y": -1.0,
 | 
						|
        "z": 0.0,
 | 
						|
        "units": {
 | 
						|
          "type": "Mm"
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "units": {
 | 
						|
        "type": "Inches"
 | 
						|
      }
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 |