* Declare std::offsetPlane in KCL Signed-off-by: Nick Cameron <nrc@ncameron.org> * Use two axes to define planes in KCL Signed-off-by: Nick Cameron <nrc@ncameron.org> --------- Signed-off-by: Nick Cameron <nrc@ncameron.org>
774 lines
17 KiB
Plaintext
774 lines
17 KiB
Plaintext
---
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
description: Variables in memory after executing bottle.kcl
|
|
---
|
|
{
|
|
"bottleBody": {
|
|
"type": "Solid",
|
|
"value": {
|
|
"type": "Solid",
|
|
"id": "[uuid]",
|
|
"artifactId": "[uuid]",
|
|
"value": [],
|
|
"sketch": {
|
|
"type": "Sketch",
|
|
"id": "[uuid]",
|
|
"paths": [
|
|
{
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
},
|
|
"from": [
|
|
-62.5,
|
|
0.0
|
|
],
|
|
"tag": null,
|
|
"to": [
|
|
-62.5,
|
|
26.6667
|
|
],
|
|
"type": "ToPoint",
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
{
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
},
|
|
"from": [
|
|
-62.5,
|
|
26.6667
|
|
],
|
|
"p1": [
|
|
-62.5,
|
|
26.666666666666668
|
|
],
|
|
"p2": [
|
|
0.0,
|
|
40.0
|
|
],
|
|
"p3": [
|
|
62.5,
|
|
26.666666666666668
|
|
],
|
|
"tag": null,
|
|
"to": [
|
|
62.5,
|
|
26.6667
|
|
],
|
|
"type": "ArcThreePoint",
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
{
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
},
|
|
"from": [
|
|
62.5,
|
|
26.6667
|
|
],
|
|
"tag": null,
|
|
"to": [
|
|
62.5,
|
|
0.0
|
|
],
|
|
"type": "ToPoint",
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
{
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
},
|
|
"from": [
|
|
62.5,
|
|
0.0
|
|
],
|
|
"tag": null,
|
|
"to": [
|
|
-62.5,
|
|
0.0
|
|
],
|
|
"type": "ToPoint",
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
}
|
|
],
|
|
"on": {
|
|
"type": "plane",
|
|
"id": "[uuid]",
|
|
"artifactId": "[uuid]",
|
|
"value": "XY",
|
|
"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": 1.0,
|
|
"z": 0.0,
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
}
|
|
},
|
|
"start": {
|
|
"from": [
|
|
-62.5,
|
|
0.0
|
|
],
|
|
"to": [
|
|
-62.5,
|
|
0.0
|
|
],
|
|
"units": {
|
|
"type": "Mm"
|
|
},
|
|
"tag": null,
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
}
|
|
},
|
|
"artifactId": "[uuid]",
|
|
"originalId": "[uuid]",
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
"height": 202.0,
|
|
"startCapId": "[uuid]",
|
|
"endCapId": "[uuid]",
|
|
"units": {
|
|
"type": "Mm"
|
|
},
|
|
"sectional": false
|
|
}
|
|
},
|
|
"bottleHeight": {
|
|
"type": "Number",
|
|
"value": 220.0,
|
|
"ty": {
|
|
"type": "Default",
|
|
"len": {
|
|
"type": "Mm"
|
|
},
|
|
"angle": {
|
|
"type": "Degrees"
|
|
}
|
|
}
|
|
},
|
|
"bottleLength": {
|
|
"type": "Number",
|
|
"value": 125.0,
|
|
"ty": {
|
|
"type": "Default",
|
|
"len": {
|
|
"type": "Mm"
|
|
},
|
|
"angle": {
|
|
"type": "Degrees"
|
|
}
|
|
}
|
|
},
|
|
"bottleNeck": {
|
|
"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": [
|
|
22.5,
|
|
0.0
|
|
],
|
|
"radius": 22.5,
|
|
"tag": null,
|
|
"to": [
|
|
22.5,
|
|
0.0
|
|
],
|
|
"type": "Circle",
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
}
|
|
],
|
|
"on": {
|
|
"type": "face",
|
|
"id": "[uuid]",
|
|
"artifactId": "[uuid]",
|
|
"value": "end",
|
|
"xAxis": {
|
|
"x": 1.0,
|
|
"y": 0.0,
|
|
"z": 0.0,
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
"yAxis": {
|
|
"x": 0.0,
|
|
"y": 1.0,
|
|
"z": 0.0,
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
"solid": {
|
|
"type": "Solid",
|
|
"id": "[uuid]",
|
|
"artifactId": "[uuid]",
|
|
"value": [],
|
|
"sketch": {
|
|
"type": "Sketch",
|
|
"id": "[uuid]",
|
|
"paths": [
|
|
{
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
},
|
|
"from": [
|
|
-62.5,
|
|
0.0
|
|
],
|
|
"tag": null,
|
|
"to": [
|
|
-62.5,
|
|
26.6667
|
|
],
|
|
"type": "ToPoint",
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
{
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
},
|
|
"from": [
|
|
-62.5,
|
|
26.6667
|
|
],
|
|
"p1": [
|
|
-62.5,
|
|
26.666666666666668
|
|
],
|
|
"p2": [
|
|
0.0,
|
|
40.0
|
|
],
|
|
"p3": [
|
|
62.5,
|
|
26.666666666666668
|
|
],
|
|
"tag": null,
|
|
"to": [
|
|
62.5,
|
|
26.6667
|
|
],
|
|
"type": "ArcThreePoint",
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
{
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
},
|
|
"from": [
|
|
62.5,
|
|
26.6667
|
|
],
|
|
"tag": null,
|
|
"to": [
|
|
62.5,
|
|
0.0
|
|
],
|
|
"type": "ToPoint",
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
{
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
},
|
|
"from": [
|
|
62.5,
|
|
0.0
|
|
],
|
|
"tag": null,
|
|
"to": [
|
|
-62.5,
|
|
0.0
|
|
],
|
|
"type": "ToPoint",
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
}
|
|
],
|
|
"on": {
|
|
"type": "plane",
|
|
"id": "[uuid]",
|
|
"artifactId": "[uuid]",
|
|
"value": "XY",
|
|
"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": 1.0,
|
|
"z": 0.0,
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
}
|
|
},
|
|
"start": {
|
|
"from": [
|
|
-62.5,
|
|
0.0
|
|
],
|
|
"to": [
|
|
-62.5,
|
|
0.0
|
|
],
|
|
"units": {
|
|
"type": "Mm"
|
|
},
|
|
"tag": null,
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
}
|
|
},
|
|
"artifactId": "[uuid]",
|
|
"originalId": "[uuid]",
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
"height": 202.0,
|
|
"startCapId": "[uuid]",
|
|
"endCapId": "[uuid]",
|
|
"units": {
|
|
"type": "Mm"
|
|
},
|
|
"sectional": false
|
|
},
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
"start": {
|
|
"from": [
|
|
22.5,
|
|
0.0
|
|
],
|
|
"to": [
|
|
22.5,
|
|
0.0
|
|
],
|
|
"units": {
|
|
"type": "Mm"
|
|
},
|
|
"tag": null,
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
}
|
|
},
|
|
"artifactId": "[uuid]",
|
|
"originalId": "[uuid]",
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
"height": 18.0,
|
|
"startCapId": null,
|
|
"endCapId": "[uuid]",
|
|
"units": {
|
|
"type": "Mm"
|
|
},
|
|
"sectional": false
|
|
}
|
|
},
|
|
"bottleShell": {
|
|
"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": [
|
|
22.5,
|
|
0.0
|
|
],
|
|
"radius": 22.5,
|
|
"tag": null,
|
|
"to": [
|
|
22.5,
|
|
0.0
|
|
],
|
|
"type": "Circle",
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
}
|
|
],
|
|
"on": {
|
|
"type": "face",
|
|
"id": "[uuid]",
|
|
"artifactId": "[uuid]",
|
|
"value": "end",
|
|
"xAxis": {
|
|
"x": 1.0,
|
|
"y": 0.0,
|
|
"z": 0.0,
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
"yAxis": {
|
|
"x": 0.0,
|
|
"y": 1.0,
|
|
"z": 0.0,
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
"solid": {
|
|
"type": "Solid",
|
|
"id": "[uuid]",
|
|
"artifactId": "[uuid]",
|
|
"value": [],
|
|
"sketch": {
|
|
"type": "Sketch",
|
|
"id": "[uuid]",
|
|
"paths": [
|
|
{
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
},
|
|
"from": [
|
|
-62.5,
|
|
0.0
|
|
],
|
|
"tag": null,
|
|
"to": [
|
|
-62.5,
|
|
26.6667
|
|
],
|
|
"type": "ToPoint",
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
{
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
},
|
|
"from": [
|
|
-62.5,
|
|
26.6667
|
|
],
|
|
"p1": [
|
|
-62.5,
|
|
26.666666666666668
|
|
],
|
|
"p2": [
|
|
0.0,
|
|
40.0
|
|
],
|
|
"p3": [
|
|
62.5,
|
|
26.666666666666668
|
|
],
|
|
"tag": null,
|
|
"to": [
|
|
62.5,
|
|
26.6667
|
|
],
|
|
"type": "ArcThreePoint",
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
{
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
},
|
|
"from": [
|
|
62.5,
|
|
26.6667
|
|
],
|
|
"tag": null,
|
|
"to": [
|
|
62.5,
|
|
0.0
|
|
],
|
|
"type": "ToPoint",
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
{
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
},
|
|
"from": [
|
|
62.5,
|
|
0.0
|
|
],
|
|
"tag": null,
|
|
"to": [
|
|
-62.5,
|
|
0.0
|
|
],
|
|
"type": "ToPoint",
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
}
|
|
],
|
|
"on": {
|
|
"type": "plane",
|
|
"id": "[uuid]",
|
|
"artifactId": "[uuid]",
|
|
"value": "XY",
|
|
"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": 1.0,
|
|
"z": 0.0,
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
}
|
|
},
|
|
"start": {
|
|
"from": [
|
|
-62.5,
|
|
0.0
|
|
],
|
|
"to": [
|
|
-62.5,
|
|
0.0
|
|
],
|
|
"units": {
|
|
"type": "Mm"
|
|
},
|
|
"tag": null,
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
}
|
|
},
|
|
"artifactId": "[uuid]",
|
|
"originalId": "[uuid]",
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
"height": 202.0,
|
|
"startCapId": "[uuid]",
|
|
"endCapId": "[uuid]",
|
|
"units": {
|
|
"type": "Mm"
|
|
},
|
|
"sectional": false
|
|
},
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
"start": {
|
|
"from": [
|
|
22.5,
|
|
0.0
|
|
],
|
|
"to": [
|
|
22.5,
|
|
0.0
|
|
],
|
|
"units": {
|
|
"type": "Mm"
|
|
},
|
|
"tag": null,
|
|
"__geoMeta": {
|
|
"id": "[uuid]",
|
|
"sourceRange": []
|
|
}
|
|
},
|
|
"artifactId": "[uuid]",
|
|
"originalId": "[uuid]",
|
|
"units": {
|
|
"type": "Mm"
|
|
}
|
|
},
|
|
"height": 18.0,
|
|
"startCapId": null,
|
|
"endCapId": "[uuid]",
|
|
"units": {
|
|
"type": "Mm"
|
|
},
|
|
"sectional": false
|
|
}
|
|
},
|
|
"bottleWidth": {
|
|
"type": "Number",
|
|
"value": 80.0,
|
|
"ty": {
|
|
"type": "Default",
|
|
"len": {
|
|
"type": "Mm"
|
|
},
|
|
"angle": {
|
|
"type": "Degrees"
|
|
}
|
|
}
|
|
},
|
|
"neckDepth": {
|
|
"type": "Number",
|
|
"value": 18.0,
|
|
"ty": {
|
|
"type": "Default",
|
|
"len": {
|
|
"type": "Mm"
|
|
},
|
|
"angle": {
|
|
"type": "Degrees"
|
|
}
|
|
}
|
|
},
|
|
"neckDiameter": {
|
|
"type": "Number",
|
|
"value": 45.0,
|
|
"ty": {
|
|
"type": "Default",
|
|
"len": {
|
|
"type": "Mm"
|
|
},
|
|
"angle": {
|
|
"type": "Degrees"
|
|
}
|
|
}
|
|
},
|
|
"wallThickness": {
|
|
"type": "Number",
|
|
"value": 4.0,
|
|
"ty": {
|
|
"type": "Default",
|
|
"len": {
|
|
"type": "Mm"
|
|
},
|
|
"angle": {
|
|
"type": "Degrees"
|
|
}
|
|
}
|
|
}
|
|
}
|