* 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>
883 lines
17 KiB
Plaintext
883 lines
17 KiB
Plaintext
---
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
description: Variables in memory after executing subtract_regression08.kcl
|
|
---
|
|
{
|
|
"sketch000": {
|
|
"type": "Plane",
|
|
"value": {
|
|
"artifactId": "[uuid]",
|
|
"id": "[uuid]",
|
|
"origin": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 0.0,
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
"value": "YZ",
|
|
"xAxis": {
|
|
"x": 0.0,
|
|
"y": 1.0,
|
|
"z": 0.0,
|
|
"units": {
|
|
"type": "Unknown"
|
|
}
|
|
},
|
|
"yAxis": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 1.0,
|
|
"units": {
|
|
"type": "Unknown"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"sketch000Profile000": {
|
|
"type": "Sketch",
|
|
"value": {
|
|
"type": "Sketch",
|
|
"id": "[uuid]",
|
|
"paths": [
|
|
{
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
},
|
|
"ccw": true,
|
|
"center": [
|
|
0.0,
|
|
0.0
|
|
],
|
|
"from": [
|
|
1.1875,
|
|
0.0
|
|
],
|
|
"radius": 1.1875,
|
|
"tag": null,
|
|
"to": [
|
|
1.1875,
|
|
0.0
|
|
],
|
|
"type": "Circle",
|
|
"units": {
|
|
"type": "Inches"
|
|
}
|
|
}
|
|
],
|
|
"on": {
|
|
"artifactId": "[uuid]",
|
|
"id": "[uuid]",
|
|
"origin": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 0.0,
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
"type": "plane",
|
|
"value": "YZ",
|
|
"xAxis": {
|
|
"x": 0.0,
|
|
"y": 1.0,
|
|
"z": 0.0,
|
|
"units": {
|
|
"type": "Unknown"
|
|
}
|
|
},
|
|
"yAxis": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 1.0,
|
|
"units": {
|
|
"type": "Unknown"
|
|
}
|
|
}
|
|
},
|
|
"start": {
|
|
"from": [
|
|
1.1875,
|
|
0.0
|
|
],
|
|
"to": [
|
|
1.1875,
|
|
0.0
|
|
],
|
|
"units": {
|
|
"type": "Inches"
|
|
},
|
|
"tag": null,
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"sketch001Profile000": {
|
|
"type": "Sketch",
|
|
"value": {
|
|
"type": "Sketch",
|
|
"id": "[uuid]",
|
|
"paths": [
|
|
{
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
},
|
|
"from": [
|
|
0.0,
|
|
0.0
|
|
],
|
|
"tag": null,
|
|
"to": [
|
|
0.937,
|
|
0.0
|
|
],
|
|
"type": "ToPoint",
|
|
"units": {
|
|
"type": "Inches"
|
|
}
|
|
},
|
|
{
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
},
|
|
"ccw": true,
|
|
"center": [
|
|
0.9370000000000005,
|
|
2.313
|
|
],
|
|
"from": [
|
|
0.937,
|
|
0.0
|
|
],
|
|
"radius": 2.313,
|
|
"tag": null,
|
|
"to": [
|
|
3.250000000000001,
|
|
2.3129999999999997
|
|
],
|
|
"type": "Arc",
|
|
"units": {
|
|
"type": "Inches"
|
|
}
|
|
},
|
|
{
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
},
|
|
"from": [
|
|
3.250000000000001,
|
|
2.3129999999999997
|
|
],
|
|
"tag": null,
|
|
"to": [
|
|
3.250000000000001,
|
|
3.25
|
|
],
|
|
"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": [
|
|
0.0,
|
|
0.0
|
|
],
|
|
"to": [
|
|
0.0,
|
|
0.0
|
|
],
|
|
"units": {
|
|
"type": "Inches"
|
|
},
|
|
"tag": null,
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
}
|
|
},
|
|
"artifactId": "[uuid]",
|
|
"originalId": "[uuid]",
|
|
"units": {
|
|
"type": "Inches"
|
|
}
|
|
}
|
|
},
|
|
"sketch002": {
|
|
"type": "Plane",
|
|
"value": {
|
|
"artifactId": "[uuid]",
|
|
"id": "[uuid]",
|
|
"origin": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 0.0,
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
"value": "YZ",
|
|
"xAxis": {
|
|
"x": 0.0,
|
|
"y": 1.0,
|
|
"z": 0.0,
|
|
"units": {
|
|
"type": "Unknown"
|
|
}
|
|
},
|
|
"yAxis": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 1.0,
|
|
"units": {
|
|
"type": "Unknown"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"sketch002Profile000": {
|
|
"type": "Sketch",
|
|
"value": {
|
|
"type": "Sketch",
|
|
"id": "[uuid]",
|
|
"paths": [
|
|
{
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
},
|
|
"ccw": true,
|
|
"center": [
|
|
0.0,
|
|
0.0
|
|
],
|
|
"from": [
|
|
0.9375,
|
|
0.0
|
|
],
|
|
"radius": 0.9375,
|
|
"tag": null,
|
|
"to": [
|
|
0.9375,
|
|
0.0
|
|
],
|
|
"type": "Circle",
|
|
"units": {
|
|
"type": "Inches"
|
|
}
|
|
}
|
|
],
|
|
"on": {
|
|
"artifactId": "[uuid]",
|
|
"id": "[uuid]",
|
|
"origin": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 0.0,
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
"type": "plane",
|
|
"value": "YZ",
|
|
"xAxis": {
|
|
"x": 0.0,
|
|
"y": 1.0,
|
|
"z": 0.0,
|
|
"units": {
|
|
"type": "Unknown"
|
|
}
|
|
},
|
|
"yAxis": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 1.0,
|
|
"units": {
|
|
"type": "Unknown"
|
|
}
|
|
}
|
|
},
|
|
"start": {
|
|
"from": [
|
|
0.9375,
|
|
0.0
|
|
],
|
|
"to": [
|
|
0.9375,
|
|
0.0
|
|
],
|
|
"units": {
|
|
"type": "Inches"
|
|
},
|
|
"tag": null,
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
}
|
|
},
|
|
"artifactId": "[uuid]",
|
|
"originalId": "[uuid]",
|
|
"units": {
|
|
"type": "Inches"
|
|
}
|
|
}
|
|
},
|
|
"sketch003": {
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"sketch003Profile000": {
|
|
"type": "Sketch",
|
|
"value": {
|
|
"type": "Sketch",
|
|
"id": "[uuid]",
|
|
"paths": [
|
|
{
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
},
|
|
"from": [
|
|
0.0,
|
|
0.0
|
|
],
|
|
"tag": null,
|
|
"to": [
|
|
0.937,
|
|
0.0
|
|
],
|
|
"type": "ToPoint",
|
|
"units": {
|
|
"type": "Inches"
|
|
}
|
|
},
|
|
{
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
},
|
|
"ccw": true,
|
|
"center": [
|
|
0.9370000000000005,
|
|
2.313
|
|
],
|
|
"from": [
|
|
0.937,
|
|
0.0
|
|
],
|
|
"radius": 2.313,
|
|
"tag": null,
|
|
"to": [
|
|
3.250000000000001,
|
|
2.3129999999999997
|
|
],
|
|
"type": "Arc",
|
|
"units": {
|
|
"type": "Inches"
|
|
}
|
|
},
|
|
{
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
},
|
|
"from": [
|
|
3.250000000000001,
|
|
2.3129999999999997
|
|
],
|
|
"tag": null,
|
|
"to": [
|
|
3.250000000000001,
|
|
3.25
|
|
],
|
|
"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": [
|
|
0.0,
|
|
0.0
|
|
],
|
|
"to": [
|
|
0.0,
|
|
0.0
|
|
],
|
|
"units": {
|
|
"type": "Inches"
|
|
},
|
|
"tag": null,
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
}
|
|
},
|
|
"artifactId": "[uuid]",
|
|
"originalId": "[uuid]",
|
|
"units": {
|
|
"type": "Inches"
|
|
}
|
|
}
|
|
},
|
|
"sweepCut000": {
|
|
"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": [
|
|
0.0,
|
|
0.0
|
|
],
|
|
"from": [
|
|
1.1875,
|
|
0.0
|
|
],
|
|
"radius": 1.1875,
|
|
"tag": null,
|
|
"to": [
|
|
1.1875,
|
|
0.0
|
|
],
|
|
"type": "Circle",
|
|
"units": {
|
|
"type": "Inches"
|
|
}
|
|
}
|
|
],
|
|
"on": {
|
|
"artifactId": "[uuid]",
|
|
"id": "[uuid]",
|
|
"origin": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 0.0,
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
"type": "plane",
|
|
"value": "YZ",
|
|
"xAxis": {
|
|
"x": 0.0,
|
|
"y": 1.0,
|
|
"z": 0.0,
|
|
"units": {
|
|
"type": "Unknown"
|
|
}
|
|
},
|
|
"yAxis": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 1.0,
|
|
"units": {
|
|
"type": "Unknown"
|
|
}
|
|
}
|
|
},
|
|
"start": {
|
|
"from": [
|
|
1.1875,
|
|
0.0
|
|
],
|
|
"to": [
|
|
1.1875,
|
|
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"
|
|
},
|
|
"sectional": true
|
|
}
|
|
},
|
|
"sweepCut000Extrude": {
|
|
"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": [
|
|
0.0,
|
|
0.0
|
|
],
|
|
"from": [
|
|
0.9375,
|
|
0.0
|
|
],
|
|
"radius": 0.9375,
|
|
"tag": null,
|
|
"to": [
|
|
0.9375,
|
|
0.0
|
|
],
|
|
"type": "Circle",
|
|
"units": {
|
|
"type": "Inches"
|
|
}
|
|
}
|
|
],
|
|
"on": {
|
|
"artifactId": "[uuid]",
|
|
"id": "[uuid]",
|
|
"origin": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 0.0,
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
"type": "plane",
|
|
"value": "YZ",
|
|
"xAxis": {
|
|
"x": 0.0,
|
|
"y": 1.0,
|
|
"z": 0.0,
|
|
"units": {
|
|
"type": "Unknown"
|
|
}
|
|
},
|
|
"yAxis": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 1.0,
|
|
"units": {
|
|
"type": "Unknown"
|
|
}
|
|
}
|
|
},
|
|
"start": {
|
|
"from": [
|
|
0.9375,
|
|
0.0
|
|
],
|
|
"to": [
|
|
0.9375,
|
|
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"
|
|
},
|
|
"sectional": true
|
|
}
|
|
},
|
|
"sweepExtrude000": {
|
|
"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": [
|
|
0.0,
|
|
0.0
|
|
],
|
|
"from": [
|
|
1.1875,
|
|
0.0
|
|
],
|
|
"radius": 1.1875,
|
|
"tag": null,
|
|
"to": [
|
|
1.1875,
|
|
0.0
|
|
],
|
|
"type": "Circle",
|
|
"units": {
|
|
"type": "Inches"
|
|
}
|
|
}
|
|
],
|
|
"on": {
|
|
"artifactId": "[uuid]",
|
|
"id": "[uuid]",
|
|
"origin": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 0.0,
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
"type": "plane",
|
|
"value": "YZ",
|
|
"xAxis": {
|
|
"x": 0.0,
|
|
"y": 1.0,
|
|
"z": 0.0,
|
|
"units": {
|
|
"type": "Unknown"
|
|
}
|
|
},
|
|
"yAxis": {
|
|
"x": 0.0,
|
|
"y": 0.0,
|
|
"z": 1.0,
|
|
"units": {
|
|
"type": "Unknown"
|
|
}
|
|
}
|
|
},
|
|
"start": {
|
|
"from": [
|
|
1.1875,
|
|
0.0
|
|
],
|
|
"to": [
|
|
1.1875,
|
|
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"
|
|
},
|
|
"sectional": true
|
|
}
|
|
}
|
|
}
|