* Change so that operations are stored per module * Refactor so that all modeling commands go through ExecState * Remove unneeded PartialOrd implementations * Remove artifact_commands from KclError since it was only for debugging --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
257 lines
5.3 KiB
Plaintext
257 lines
5.3 KiB
Plaintext
---
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
description: Operations executed import_transform.kcl
|
|
---
|
|
{
|
|
"rust/kcl-lib/tests/import_transform/2-5-long-m8-chc-screw.stl": [],
|
|
"rust/kcl-lib/tests/import_transform/input.kcl": [
|
|
{
|
|
"type": "GroupBegin",
|
|
"group": {
|
|
"type": "ModuleInstance",
|
|
"name": "2-5-long-m8-chc-screw.stl",
|
|
"moduleId": 0
|
|
},
|
|
"nodePath": {
|
|
"steps": [
|
|
{
|
|
"type": "ProgramBodyItem",
|
|
"index": 0
|
|
}
|
|
]
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
{
|
|
"type": "GroupEnd"
|
|
},
|
|
{
|
|
"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": []
|
|
}
|
|
},
|
|
"nodePath": {
|
|
"steps": [
|
|
{
|
|
"type": "ProgramBodyItem",
|
|
"index": 1
|
|
},
|
|
{
|
|
"type": "ExpressionStatementExpr"
|
|
},
|
|
{
|
|
"type": "PipeBodyItem",
|
|
"index": 1
|
|
}
|
|
]
|
|
},
|
|
"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": []
|
|
}
|
|
},
|
|
"nodePath": {
|
|
"steps": [
|
|
{
|
|
"type": "ProgramBodyItem",
|
|
"index": 1
|
|
},
|
|
{
|
|
"type": "ExpressionStatementExpr"
|
|
},
|
|
{
|
|
"type": "PipeBodyItem",
|
|
"index": 2
|
|
}
|
|
]
|
|
},
|
|
"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": []
|
|
}
|
|
},
|
|
"nodePath": {
|
|
"steps": [
|
|
{
|
|
"type": "ProgramBodyItem",
|
|
"index": 1
|
|
},
|
|
{
|
|
"type": "ExpressionStatementExpr"
|
|
},
|
|
{
|
|
"type": "PipeBodyItem",
|
|
"index": 3
|
|
}
|
|
]
|
|
},
|
|
"sourceRange": []
|
|
}
|
|
],
|
|
"std::appearance": [],
|
|
"std::array": [],
|
|
"std::math": [],
|
|
"std::prelude": [],
|
|
"std::sketch": [],
|
|
"std::solid": [],
|
|
"std::sweep": [],
|
|
"std::transform": [],
|
|
"std::turns": [],
|
|
"std::types": [],
|
|
"std::units": []
|
|
}
|