2024-12-16 13:10:31 -05:00
|
|
|
---
|
2025-03-12 14:05:18 -04:00
|
|
|
source: kcl-lib/src/simulation_tests.rs
|
2024-12-16 13:10:31 -05:00
|
|
|
description: Operations executed parametric.kcl
|
|
|
|
---
|
2025-06-10 21:30:48 -04:00
|
|
|
{
|
|
|
|
"rust/kcl-lib/tests/parametric/input.kcl": [
|
2025-06-12 12:38:12 -04:00
|
|
|
{
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"name": "sigmaAllow",
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 35000.0,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Mm"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"visibility": "default",
|
|
|
|
"nodePath": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "ProgramBodyItem",
|
|
|
|
"index": 0
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationInit"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"name": "width",
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 9.0,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Mm"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"visibility": "default",
|
|
|
|
"nodePath": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "ProgramBodyItem",
|
|
|
|
"index": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationInit"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"name": "p",
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 150.0,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Mm"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"visibility": "default",
|
|
|
|
"nodePath": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "ProgramBodyItem",
|
|
|
|
"index": 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationInit"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"name": "distance",
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 6.0,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Mm"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"visibility": "default",
|
|
|
|
"nodePath": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "ProgramBodyItem",
|
|
|
|
"index": 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationInit"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"name": "FOS",
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 2.0,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Mm"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"visibility": "default",
|
|
|
|
"nodePath": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "ProgramBodyItem",
|
|
|
|
"index": 4
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationInit"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"name": "leg1",
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 5.0,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Mm"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"visibility": "default",
|
|
|
|
"nodePath": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "ProgramBodyItem",
|
|
|
|
"index": 5
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationInit"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"name": "leg2",
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 8.0,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Mm"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"visibility": "default",
|
|
|
|
"nodePath": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "ProgramBodyItem",
|
|
|
|
"index": 6
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationInit"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"name": "thickness",
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
2025-06-16 21:34:50 -04:00
|
|
|
"value": 0.1851640199545103,
|
2025-06-12 12:38:12 -04:00
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Mm"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"visibility": "default",
|
|
|
|
"nodePath": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "ProgramBodyItem",
|
|
|
|
"index": 7
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationInit"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
2025-06-10 21:30:48 -04:00
|
|
|
{
|
|
|
|
"type": "StdLibCall",
|
|
|
|
"name": "startSketchOn",
|
|
|
|
"unlabeledArg": {
|
2025-05-19 16:50:15 +12:00
|
|
|
"value": {
|
2025-06-10 21:30:48 -04:00
|
|
|
"type": "Plane",
|
|
|
|
"artifact_id": "[uuid]"
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
"labeledArgs": {},
|
|
|
|
"nodePath": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "ProgramBodyItem",
|
|
|
|
"index": 8
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationInit"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PipeBodyItem",
|
|
|
|
"index": 0
|
|
|
|
}
|
|
|
|
]
|
2025-05-19 16:50:15 +12:00
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
2025-06-10 21:30:48 -04:00
|
|
|
{
|
|
|
|
"type": "StdLibCall",
|
|
|
|
"name": "extrude",
|
|
|
|
"unlabeledArg": {
|
2025-02-21 10:24:12 -05:00
|
|
|
"value": {
|
2025-06-10 21:30:48 -04:00
|
|
|
"type": "Sketch",
|
|
|
|
"value": {
|
|
|
|
"artifactId": "[uuid]"
|
2025-02-21 10:24:12 -05:00
|
|
|
}
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"sourceRange": []
|
2025-06-10 21:30:48 -04:00
|
|
|
},
|
|
|
|
"labeledArgs": {
|
|
|
|
"length": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 9.0,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Mm"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
2025-06-05 12:24:34 -04:00
|
|
|
}
|
2025-06-10 21:30:48 -04:00
|
|
|
},
|
|
|
|
"nodePath": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"type": "ProgramBodyItem",
|
|
|
|
"index": 8
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationDeclaration"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarationInit"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "PipeBodyItem",
|
|
|
|
"index": 8
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"std::appearance": [],
|
|
|
|
"std::array": [],
|
2025-06-12 12:38:12 -04:00
|
|
|
"std::math": [
|
|
|
|
{
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"name": "PI",
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
2025-06-16 21:34:50 -04:00
|
|
|
"value": 3.141592653589793,
|
2025-06-12 12:38:12 -04:00
|
|
|
"ty": {
|
|
|
|
"type": "Unknown"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"visibility": "export",
|
|
|
|
"nodePath": {
|
|
|
|
"steps": []
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"name": "E",
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
2025-06-16 21:34:50 -04:00
|
|
|
"value": 2.718281828459045,
|
2025-06-12 12:38:12 -04:00
|
|
|
"ty": {
|
|
|
|
"type": "Known",
|
|
|
|
"type": "Count"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"visibility": "export",
|
|
|
|
"nodePath": {
|
|
|
|
"steps": []
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"name": "TAU",
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
2025-06-16 21:34:50 -04:00
|
|
|
"value": 6.283185307179586,
|
2025-06-12 12:38:12 -04:00
|
|
|
"ty": {
|
|
|
|
"type": "Known",
|
|
|
|
"type": "Count"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"visibility": "export",
|
|
|
|
"nodePath": {
|
|
|
|
"steps": []
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"std::prelude": [
|
|
|
|
{
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"name": "START",
|
|
|
|
"value": {
|
|
|
|
"type": "String",
|
|
|
|
"value": "start"
|
|
|
|
},
|
|
|
|
"visibility": "export",
|
|
|
|
"nodePath": {
|
|
|
|
"steps": []
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"name": "END",
|
|
|
|
"value": {
|
|
|
|
"type": "String",
|
|
|
|
"value": "end"
|
|
|
|
},
|
|
|
|
"visibility": "export",
|
|
|
|
"nodePath": {
|
|
|
|
"steps": []
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
}
|
|
|
|
],
|
2025-06-10 21:30:48 -04:00
|
|
|
"std::sketch": [],
|
|
|
|
"std::solid": [],
|
|
|
|
"std::sweep": [],
|
|
|
|
"std::transform": [],
|
|
|
|
"std::turns": [],
|
|
|
|
"std::types": [],
|
|
|
|
"std::units": []
|
|
|
|
}
|