2025-05-13 17:03:52 -04:00
|
|
|
---
|
|
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
|
|
description: Operations executed spur-gear.kcl
|
|
|
|
---
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"type": "StdLibCall",
|
2025-05-19 16:50:15 +12:00
|
|
|
"name": "startSketchOn",
|
2025-05-13 17:03:52 -04:00
|
|
|
"unlabeledArg": {
|
|
|
|
"value": {
|
|
|
|
"type": "Plane",
|
|
|
|
"artifact_id": "[uuid]"
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
2025-05-19 16:50:15 +12:00
|
|
|
},
|
|
|
|
"labeledArgs": {},
|
|
|
|
"sourceRange": []
|
2025-05-13 17:03:52 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "StdLibCall",
|
2025-05-19 16:50:15 +12:00
|
|
|
"name": "startSketchOn",
|
2025-05-13 17:03:52 -04:00
|
|
|
"unlabeledArg": {
|
|
|
|
"value": {
|
|
|
|
"type": "Plane",
|
|
|
|
"artifact_id": "[uuid]"
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
2025-05-19 16:50:15 +12:00
|
|
|
},
|
|
|
|
"labeledArgs": {},
|
|
|
|
"sourceRange": []
|
2025-05-13 17:03:52 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "GroupBegin",
|
|
|
|
"group": {
|
|
|
|
"type": "FunctionCall",
|
|
|
|
"name": "polar",
|
|
|
|
"functionSourceRange": [],
|
|
|
|
"unlabeledArg": null,
|
|
|
|
"labeledArgs": {
|
|
|
|
"angle": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 0.0,
|
|
|
|
"ty": {
|
2025-05-19 16:50:15 +12:00
|
|
|
"type": "Known",
|
|
|
|
"type": "Angle",
|
|
|
|
"type": "Radians"
|
2025-05-13 17:03:52 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
"length": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
2025-05-26 11:17:12 +12:00
|
|
|
"value": 15.282,
|
2025-05-13 17:03:52 -04:00
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Mm"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "GroupBegin",
|
|
|
|
"group": {
|
|
|
|
"type": "FunctionCall",
|
|
|
|
"name": "polar",
|
|
|
|
"functionSourceRange": [],
|
|
|
|
"unlabeledArg": null,
|
|
|
|
"labeledArgs": {
|
|
|
|
"angle": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
2025-05-19 16:50:15 +12:00
|
|
|
"value": 0.133,
|
2025-05-13 17:03:52 -04:00
|
|
|
"ty": {
|
2025-05-19 16:50:15 +12:00
|
|
|
"type": "Known",
|
|
|
|
"type": "Angle",
|
|
|
|
"type": "Radians"
|
2025-05-13 17:03:52 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
"length": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 17.25,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Mm"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "GroupBegin",
|
|
|
|
"group": {
|
|
|
|
"type": "FunctionCall",
|
|
|
|
"name": "polar",
|
|
|
|
"functionSourceRange": [],
|
|
|
|
"unlabeledArg": null,
|
|
|
|
"labeledArgs": {
|
|
|
|
"angle": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
2025-05-26 11:17:12 +12:00
|
|
|
"value": 0.299,
|
2025-05-13 17:03:52 -04:00
|
|
|
"ty": {
|
2025-05-19 16:50:15 +12:00
|
|
|
"type": "Known",
|
|
|
|
"type": "Angle",
|
|
|
|
"type": "Radians"
|
2025-05-13 17:03:52 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
"length": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
2025-05-26 11:17:12 +12:00
|
|
|
"value": 15.282,
|
2025-05-13 17:03:52 -04:00
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Mm"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
2025-05-19 16:50:15 +12:00
|
|
|
"type": "StdLibCall",
|
|
|
|
"name": "subtract2d",
|
|
|
|
"unlabeledArg": {
|
|
|
|
"value": {
|
|
|
|
"type": "Sketch",
|
|
|
|
"value": {
|
|
|
|
"artifactId": "[uuid]"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
2025-05-13 17:03:52 -04:00
|
|
|
"labeledArgs": {
|
|
|
|
"tool": {
|
|
|
|
"value": {
|
|
|
|
"type": "Sketch",
|
|
|
|
"value": {
|
|
|
|
"artifactId": "[uuid]"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
}
|
|
|
|
},
|
2025-05-19 16:50:15 +12:00
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
2025-05-13 17:03:52 -04:00
|
|
|
"type": "StdLibCall",
|
2025-05-19 16:50:15 +12:00
|
|
|
"name": "extrude",
|
2025-05-13 17:03:52 -04:00
|
|
|
"unlabeledArg": {
|
|
|
|
"value": {
|
|
|
|
"type": "Sketch",
|
|
|
|
"value": {
|
|
|
|
"artifactId": "[uuid]"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
2025-05-19 16:50:15 +12:00
|
|
|
},
|
2025-05-13 17:03:52 -04:00
|
|
|
"labeledArgs": {
|
|
|
|
"length": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 6.0,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Mm"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
}
|
|
|
|
},
|
2025-05-19 16:50:15 +12:00
|
|
|
"sourceRange": []
|
2025-05-13 17:03:52 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "GroupBegin",
|
|
|
|
"group": {
|
|
|
|
"type": "FunctionCall",
|
|
|
|
"name": "spurGear",
|
|
|
|
"functionSourceRange": [],
|
|
|
|
"unlabeledArg": null,
|
|
|
|
"labeledArgs": {
|
|
|
|
"gearHeight": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 6.0,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Mm"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
"module": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 1.5,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Mm"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
"nTeeth": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 21.0,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Mm"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
"pressureAngle": {
|
|
|
|
"value": {
|
|
|
|
"type": "Number",
|
|
|
|
"value": 14.0,
|
|
|
|
"ty": {
|
|
|
|
"type": "Default",
|
|
|
|
"len": {
|
|
|
|
"type": "Mm"
|
|
|
|
},
|
|
|
|
"angle": {
|
|
|
|
"type": "Degrees"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sourceRange": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "GroupEnd"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "GroupEnd"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "GroupEnd"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "GroupEnd"
|
|
|
|
}
|
|
|
|
]
|