2025-03-11 18:23:21 -07:00
|
|
|
---
|
|
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
|
|
description: Operations executed import_transform.kcl
|
|
|
|
---
|
2025-04-03 22:10:39 -04:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"type": "GroupBegin",
|
|
|
|
"group": {
|
|
|
|
"type": "ModuleInstance",
|
2025-04-30 12:26:46 -04:00
|
|
|
"name": "2-5-long-m8-chc-screw.stl",
|
2025-04-28 14:20:38 +12:00
|
|
|
"moduleId": 0
|
2025-04-03 22:10:39 -04:00
|
|
|
},
|
2025-06-05 12:24:34 -04:00
|
|
|
"nodePath": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "ProgramBodyItem",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2025-04-03 22:10:39 -04:00
|
|
|
"sourceRange": []
|
|
|
|
},
|
2025-06-02 10:32:36 -04:00
|
|
|
{
|
|
|
|
"type": "StdLibCall",
|
|
|
|
"name": "rotate",
|
|
|
|
"unlabeledArg": {
|
|
|
|
"value": {
|
|
|
|
"type": "ImportedGeometry",
|
|
|
|
"artifact_id": "[uuid]"
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
"labeledArgs": {
|
|
|
|
"pitch": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 3.14,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Mm"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
"roll": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 3.14,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Mm"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
"yaw": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 3.14,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Mm"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
}
|
|
|
|
},
|
2025-06-05 12:24:34 -04:00
|
|
|
"nodePath": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "ProgramBodyItem",
|
|
|
|
"index": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ExpressionStatementExpr"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PipeBodyItem",
|
|
|
|
"index": 1
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2025-06-02 10:32:36 -04:00
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "StdLibCall",
|
|
|
|
"name": "translate",
|
|
|
|
"unlabeledArg": {
|
|
|
|
"value": {
|
|
|
|
"type": "ImportedGeometry",
|
|
|
|
"artifact_id": "[uuid]"
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
"labeledArgs": {
|
|
|
|
"x": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 3.14,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Mm"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
"y": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 3.14,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Mm"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
"z": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 3.14,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Mm"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
}
|
|
|
|
},
|
2025-06-05 12:24:34 -04:00
|
|
|
"nodePath": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "ProgramBodyItem",
|
|
|
|
"index": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ExpressionStatementExpr"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PipeBodyItem",
|
|
|
|
"index": 2
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2025-06-02 10:32:36 -04:00
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "StdLibCall",
|
|
|
|
"name": "scale",
|
|
|
|
"unlabeledArg": {
|
|
|
|
"value": {
|
|
|
|
"type": "ImportedGeometry",
|
|
|
|
"artifact_id": "[uuid]"
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
"labeledArgs": {
|
|
|
|
"x": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 3.14,
|
|
|
|
"ty": {
|
|
|
|
"type": "Known",
|
|
|
|
"type": "Count"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
"y": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 3.14,
|
|
|
|
"ty": {
|
|
|
|
"type": "Known",
|
|
|
|
"type": "Count"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
"z": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 3.14,
|
|
|
|
"ty": {
|
|
|
|
"type": "Known",
|
|
|
|
"type": "Count"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
}
|
|
|
|
},
|
2025-06-05 12:24:34 -04:00
|
|
|
"nodePath": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "ProgramBodyItem",
|
|
|
|
"index": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ExpressionStatementExpr"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PipeBodyItem",
|
|
|
|
"index": 3
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2025-06-02 10:32:36 -04:00
|
|
|
"sourceRange": []
|
|
|
|
},
|
2025-04-03 22:10:39 -04:00
|
|
|
{
|
|
|
|
"type": "GroupEnd"
|
|
|
|
}
|
|
|
|
]
|