Files
modeling-app/rust/kcl-lib/tests/kcl_samples/mounting-plate/program_memory.snap
Kurt Hutten 33f7badf41 point and click-ify mounting plate (#7287)
* point and click-ify mounting plate

* Update kcl-samples simulation test output

* Update public/kcl-samples/mounting-plate/main.kcl

* Update public/kcl-samples/mounting-plate/main.kcl

* fix

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-06-03 08:10:37 -04:00

688 lines
14 KiB
Plaintext

---
source: kcl-lib/src/simulation_tests.rs
description: Variables in memory after executing mounting-plate.kcl
---
{
"basePlateEdge1": {
"type": "TagIdentifier",
"type": "TagIdentifier",
"value": "basePlateEdge1"
},
"basePlateEdge2": {
"type": "TagIdentifier",
"type": "TagIdentifier",
"value": "basePlateEdge2"
},
"basePlateEdge3": {
"type": "TagIdentifier",
"type": "TagIdentifier",
"value": "basePlateEdge3"
},
"basePlateEdge4": {
"type": "TagIdentifier",
"type": "TagIdentifier",
"value": "basePlateEdge4"
},
"centerHoleDiameter": {
"type": "Number",
"value": 2.0,
"ty": {
"type": "Default",
"len": {
"type": "Inches"
},
"angle": {
"type": "Degrees"
}
}
},
"filletRadius": {
"type": "Number",
"value": 0.5,
"ty": {
"type": "Default",
"len": {
"type": "Inches"
},
"angle": {
"type": "Degrees"
}
}
},
"holeIndex": {
"type": "Number",
"value": 0.75,
"ty": {
"type": "Default",
"len": {
"type": "Inches"
},
"angle": {
"type": "Degrees"
}
}
},
"holeRadius": {
"type": "Number",
"value": 0.25,
"ty": {
"type": "Default",
"len": {
"type": "Inches"
},
"angle": {
"type": "Degrees"
}
}
},
"part": {
"type": "Solid",
"value": {
"type": "Solid",
"id": "[uuid]",
"artifactId": "[uuid]",
"value": [
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 625,
"end": 640,
"start": 625,
"type": "TagDeclarator",
"value": "basePlateEdge1"
},
"type": "extrudePlane"
},
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 723,
"end": 738,
"start": 723,
"type": "TagDeclarator",
"value": "basePlateEdge2"
},
"type": "extrudePlane"
},
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 828,
"end": 843,
"start": 828,
"type": "TagDeclarator",
"value": "basePlateEdge3"
},
"type": "extrudePlane"
},
{
"faceId": "[uuid]",
"id": "[uuid]",
"sourceRange": [],
"tag": {
"commentStart": 913,
"end": 928,
"start": 913,
"type": "TagDeclarator",
"value": "basePlateEdge4"
},
"type": "extrudePlane"
}
],
"sketch": {
"type": "Sketch",
"id": "[uuid]",
"paths": [
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
-3.0,
5.0
],
"tag": {
"commentStart": 625,
"end": 640,
"start": 625,
"type": "TagDeclarator",
"value": "basePlateEdge1"
},
"to": [
3.0,
5.0
],
"type": "ToPoint",
"units": {
"type": "Inches"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
3.0,
5.0
],
"tag": {
"commentStart": 723,
"end": 738,
"start": 723,
"type": "TagDeclarator",
"value": "basePlateEdge2"
},
"to": [
3.0,
-5.0
],
"type": "ToPoint",
"units": {
"type": "Inches"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
3.0,
-5.0
],
"tag": {
"commentStart": 828,
"end": 843,
"start": 828,
"type": "TagDeclarator",
"value": "basePlateEdge3"
},
"to": [
-3.0,
-5.0
],
"type": "ToPoint",
"units": {
"type": "Inches"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
-3.0,
-5.0
],
"tag": {
"commentStart": 913,
"end": 928,
"start": 913,
"type": "TagDeclarator",
"value": "basePlateEdge4"
},
"to": [
-3.0,
5.0
],
"type": "ToPoint",
"units": {
"type": "Inches"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
-3.0,
5.0
],
"tag": null,
"to": [
-3.0,
5.0
],
"type": "ToPoint",
"units": {
"type": "Inches"
}
}
],
"on": {
"artifactId": "[uuid]",
"id": "[uuid]",
"origin": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"units": {
"type": "Mm"
}
},
"type": "plane",
"value": "XY",
"xAxis": {
"x": 1.0,
"y": 0.0,
"z": 0.0,
"units": {
"type": "Unknown"
}
},
"yAxis": {
"x": 0.0,
"y": 1.0,
"z": 0.0,
"units": {
"type": "Unknown"
}
}
},
"start": {
"from": [
-3.0,
5.0
],
"to": [
-3.0,
5.0
],
"units": {
"type": "Inches"
},
"tag": null,
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
}
},
"tags": {
"basePlateEdge1": {
"type": "TagIdentifier",
"value": "basePlateEdge1"
},
"basePlateEdge2": {
"type": "TagIdentifier",
"value": "basePlateEdge2"
},
"basePlateEdge3": {
"type": "TagIdentifier",
"value": "basePlateEdge3"
},
"basePlateEdge4": {
"type": "TagIdentifier",
"value": "basePlateEdge4"
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Inches"
}
},
"height": 0.5,
"startCapId": "[uuid]",
"endCapId": "[uuid]",
"edgeCuts": [
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 0.5,
"ty": {
"type": "Default",
"len": {
"type": "Inches"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
},
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 0.5,
"ty": {
"type": "Default",
"len": {
"type": "Inches"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
},
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 0.5,
"ty": {
"type": "Default",
"len": {
"type": "Inches"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
},
{
"type": "fillet",
"id": "[uuid]",
"radius": {
"n": 0.5,
"ty": {
"type": "Default",
"len": {
"type": "Inches"
},
"angle": {
"type": "Degrees"
}
}
},
"edgeId": "[uuid]",
"tag": null
}
],
"units": {
"type": "Inches"
},
"sectional": false
}
},
"plateLength": {
"type": "Number",
"value": 10.0,
"ty": {
"type": "Default",
"len": {
"type": "Inches"
},
"angle": {
"type": "Degrees"
}
}
},
"plateThickness": {
"type": "Number",
"value": 0.5,
"ty": {
"type": "Default",
"len": {
"type": "Inches"
},
"angle": {
"type": "Degrees"
}
}
},
"plateWidth": {
"type": "Number",
"value": 6.0,
"ty": {
"type": "Default",
"len": {
"type": "Inches"
},
"angle": {
"type": "Degrees"
}
}
},
"rectShape": {
"type": "Sketch",
"value": {
"type": "Sketch",
"id": "[uuid]",
"paths": [
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
-3.0,
5.0
],
"tag": {
"commentStart": 625,
"end": 640,
"start": 625,
"type": "TagDeclarator",
"value": "basePlateEdge1"
},
"to": [
3.0,
5.0
],
"type": "ToPoint",
"units": {
"type": "Inches"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
3.0,
5.0
],
"tag": {
"commentStart": 723,
"end": 738,
"start": 723,
"type": "TagDeclarator",
"value": "basePlateEdge2"
},
"to": [
3.0,
-5.0
],
"type": "ToPoint",
"units": {
"type": "Inches"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
3.0,
-5.0
],
"tag": {
"commentStart": 828,
"end": 843,
"start": 828,
"type": "TagDeclarator",
"value": "basePlateEdge3"
},
"to": [
-3.0,
-5.0
],
"type": "ToPoint",
"units": {
"type": "Inches"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
-3.0,
-5.0
],
"tag": {
"commentStart": 913,
"end": 928,
"start": 913,
"type": "TagDeclarator",
"value": "basePlateEdge4"
},
"to": [
-3.0,
5.0
],
"type": "ToPoint",
"units": {
"type": "Inches"
}
},
{
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
},
"from": [
-3.0,
5.0
],
"tag": null,
"to": [
-3.0,
5.0
],
"type": "ToPoint",
"units": {
"type": "Inches"
}
}
],
"on": {
"artifactId": "[uuid]",
"id": "[uuid]",
"origin": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"units": {
"type": "Mm"
}
},
"type": "plane",
"value": "XY",
"xAxis": {
"x": 1.0,
"y": 0.0,
"z": 0.0,
"units": {
"type": "Unknown"
}
},
"yAxis": {
"x": 0.0,
"y": 1.0,
"z": 0.0,
"units": {
"type": "Unknown"
}
}
},
"start": {
"from": [
-3.0,
5.0
],
"to": [
-3.0,
5.0
],
"units": {
"type": "Inches"
},
"tag": null,
"__geoMeta": {
"id": "[uuid]",
"sourceRange": []
}
},
"tags": {
"basePlateEdge1": {
"type": "TagIdentifier",
"value": "basePlateEdge1"
},
"basePlateEdge2": {
"type": "TagIdentifier",
"value": "basePlateEdge2"
},
"basePlateEdge3": {
"type": "TagIdentifier",
"value": "basePlateEdge3"
},
"basePlateEdge4": {
"type": "TagIdentifier",
"value": "basePlateEdge4"
}
},
"artifactId": "[uuid]",
"originalId": "[uuid]",
"units": {
"type": "Inches"
}
}
},
"sketch001": {
"type": "Plane",
"value": {
"artifactId": "[uuid]",
"id": "[uuid]",
"origin": {
"x": 0.0,
"y": 0.0,
"z": 0.0,
"units": {
"type": "Mm"
}
},
"value": "XY",
"xAxis": {
"x": 1.0,
"y": 0.0,
"z": 0.0,
"units": {
"type": "Unknown"
}
},
"yAxis": {
"x": 0.0,
"y": 1.0,
"z": 0.0,
"units": {
"type": "Unknown"
}
}
}
}
}