2025-03-06 18:01:24 -05:00
---
source: kcl-lib/src/simulation_tests.rs
description: Result of parsing cycloidal-gear.kcl
---
{
"Ok": {
"body": [
{
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-06 18:01:24 -05:00
"declaration": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"id": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"name": "cycloidalGear",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"init": {
"body": {
"body": [
{
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-06 18:01:24 -05:00
"declaration": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"id": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"name": "gearSketch",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"init": {
"body": {
"body": [
{
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-06 18:01:24 -05:00
"declaration": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"id": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"name": "helixAngleP",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"init": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"left": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"left": {
2025-03-24 20:58:55 +13:00
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-24 20:58:55 +13:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-24 20:58:55 +13:00
"end": 0,
"name": "helixAngle",
"start": 0,
"type": "Identifier"
},
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-24 20:58:55 +13:00
"type": "Name",
"type": "Name"
2025-03-06 18:01:24 -05:00
},
"operator": "*",
"right": {
2025-03-24 20:58:55 +13:00
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-24 20:58:55 +13:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-24 20:58:55 +13:00
"end": 0,
"name": "gHeight",
"start": 0,
"type": "Identifier"
},
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-24 20:58:55 +13:00
"type": "Name",
"type": "Name"
2025-03-06 18:01:24 -05:00
},
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "/",
"right": {
2025-03-24 20:58:55 +13:00
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-24 20:58:55 +13:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-24 20:58:55 +13:00
"end": 0,
"name": "gearHeight",
"start": 0,
"type": "Identifier"
},
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-24 20:58:55 +13:00
"type": "Name",
"type": "Name"
2025-03-06 18:01:24 -05:00
},
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "BinaryExpression",
"type": "BinaryExpression"
},
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclarator"
},
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"kind": "const",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-06 18:01:24 -05:00
"declaration": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"id": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"name": "gearProfile",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"init": {
"body": [
{
"callee": {
2025-03-24 20:58:55 +13:00
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-24 20:58:55 +13:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-24 20:58:55 +13:00
"end": 0,
"name": "startSketchOn",
"start": 0,
"type": "Identifier"
},
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-24 20:58:55 +13:00
"type": "Name"
2025-03-06 18:01:24 -05:00
},
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
"start": 0,
2025-05-02 16:08:12 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"arguments": [
{
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "offset",
"start": 0,
"type": "Identifier"
},
"arg": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "gHeight",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
}
}
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "offsetPlane",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "XY",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
}
}
2025-03-06 18:01:24 -05:00
},
{
"arguments": [
{
2025-04-25 16:01:35 -05:00
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "at",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"left": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"left": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-25 16:01:35 -05:00
"left": {
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-24 20:58:55 +13:00
"end": 0,
2025-04-25 16:01:35 -05:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-25 16:01:35 -05:00
"name": "gearPitch",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-25 16:01:35 -05:00
"type": "Identifier"
2025-03-06 18:01:24 -05:00
},
2025-04-25 16:01:35 -05:00
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-25 16:01:35 -05:00
"type": "Name",
"type": "Name"
},
"operator": "*",
"right": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-24 20:58:55 +13:00
"end": 0,
2025-04-25 16:01:35 -05:00
"raw": "1.55",
2025-03-24 20:58:55 +13:00
"start": 0,
2025-04-25 16:01:35 -05:00
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.55,
"suffix": "None"
}
2025-03-24 20:58:55 +13:00
},
"start": 0,
2025-04-25 16:01:35 -05:00
"type": "BinaryExpression",
"type": "BinaryExpression"
2025-03-24 20:58:55 +13:00
},
2025-04-25 16:01:35 -05:00
"operator": "*",
"right": {
"callee": {
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-25 16:01:35 -05:00
"name": {
"commentStart": 0,
"end": 0,
"name": "cos",
"start": 0,
"type": "Identifier"
},
2025-04-30 11:07:05 -04:00
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-25 16:01:35 -05:00
"type": "Name"
},
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
"start": 0,
2025-05-02 16:08:12 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "helixAngleP",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
}
2025-03-06 18:01:24 -05:00
},
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-25 16:01:35 -05:00
"type": "BinaryExpression",
"type": "BinaryExpression"
2025-03-06 18:01:24 -05:00
},
2025-04-25 16:01:35 -05:00
"operator": "+",
"right": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"left": {
2025-03-24 20:58:55 +13:00
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-24 20:58:55 +13:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-24 20:58:55 +13:00
"end": 0,
"name": "gearPitch",
"start": 0,
"type": "Identifier"
},
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-24 20:58:55 +13:00
"type": "Name",
"type": "Name"
2025-03-06 18:01:24 -05:00
},
"operator": "*",
"right": {
2025-04-25 16:01:35 -05:00
"callee": {
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-25 16:01:35 -05:00
"name": {
"commentStart": 0,
"end": 0,
"name": "sin",
"start": 0,
"type": "Identifier"
},
2025-04-30 11:07:05 -04:00
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-25 16:01:35 -05:00
"type": "Name"
},
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
"start": 0,
2025-05-02 16:08:12 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"argument": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "helixAngleP",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
2025-03-06 18:01:24 -05:00
},
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-25 16:01:35 -05:00
"type": "BinaryExpression",
"type": "BinaryExpression"
2025-03-06 18:01:24 -05:00
},
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "BinaryExpression",
"type": "BinaryExpression"
},
2025-04-25 16:01:35 -05:00
{
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"left": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-25 16:01:35 -05:00
"left": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-24 20:58:55 +13:00
"end": 0,
2025-04-25 16:01:35 -05:00
"left": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "gearPitch",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"operator": "*",
"right": {
"commentStart": 0,
"end": 0,
"raw": "1.55",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.55,
"suffix": "None"
}
},
2025-03-24 20:58:55 +13:00
"start": 0,
2025-04-25 16:01:35 -05:00
"type": "BinaryExpression",
"type": "BinaryExpression"
2025-03-24 20:58:55 +13:00
},
2025-04-25 16:01:35 -05:00
"operator": "*",
"right": {
"callee": {
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-25 16:01:35 -05:00
"name": {
"commentStart": 0,
"end": 0,
"name": "sin",
"start": 0,
"type": "Identifier"
},
2025-04-30 11:07:05 -04:00
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-25 16:01:35 -05:00
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
2025-05-02 16:08:12 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "helixAngleP",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
}
2025-04-25 16:01:35 -05:00
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "+",
"right": {
"commentStart": 0,
"end": 0,
"left": {
2025-03-24 20:58:55 +13:00
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-24 20:58:55 +13:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-24 20:58:55 +13:00
"end": 0,
2025-04-25 16:01:35 -05:00
"name": "gearPitch",
2025-03-24 20:58:55 +13:00
"start": 0,
"type": "Identifier"
},
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-25 16:01:35 -05:00
"type": "Name",
2025-03-24 20:58:55 +13:00
"type": "Name"
2025-03-06 18:01:24 -05:00
},
2025-04-25 16:01:35 -05:00
"operator": "*",
"right": {
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "cos",
"start": 0,
"type": "Identifier"
},
2025-04-30 11:07:05 -04:00
"path": [],
2025-04-25 16:01:35 -05:00
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
2025-05-02 16:08:12 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"argument": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "helixAngleP",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
2025-04-25 16:01:35 -05:00
},
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-25 16:01:35 -05:00
"type": "BinaryExpression",
"type": "BinaryExpression"
2025-03-06 18:01:24 -05:00
},
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "BinaryExpression",
"type": "BinaryExpression"
2025-04-25 16:01:35 -05:00
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
2025-03-06 18:01:24 -05:00
}
],
"callee": {
2025-03-24 20:58:55 +13:00
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-24 20:58:55 +13:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-24 20:58:55 +13:00
"end": 0,
2025-04-25 16:01:35 -05:00
"name": "startProfile",
2025-03-24 20:58:55 +13:00
"start": 0,
"type": "Identifier"
},
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-24 20:58:55 +13:00
"type": "Name"
2025-03-06 18:01:24 -05:00
},
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
"start": 0,
2025-04-25 16:01:35 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
2025-03-06 18:01:24 -05:00
},
{
"arguments": [
{
2025-04-18 17:40:44 -05:00
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "angleStart",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"end": 0,
"left": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-18 17:40:44 -05:00
"raw": "90",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-18 17:40:44 -05:00
"type": "Literal",
"type": "Literal",
2025-03-06 18:01:24 -05:00
"value": {
2025-04-18 17:40:44 -05:00
"value": 90.0,
"suffix": "None"
2025-03-06 18:01:24 -05:00
}
},
2025-04-18 17:40:44 -05:00
"operator": "+",
"right": {
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-18 17:40:44 -05:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-18 17:40:44 -05:00
"name": "helixAngleP",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-04-18 17:40:44 -05:00
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-18 17:40:44 -05:00
"type": "Name",
"type": "Name"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
},
{
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "angleEnd",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"end": 0,
"left": {
"argument": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-18 17:40:44 -05:00
"raw": "90",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-18 17:40:44 -05:00
"type": "Literal",
"type": "Literal",
"value": {
"value": 90.0,
"suffix": "None"
}
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
2025-03-06 18:01:24 -05:00
},
2025-04-18 17:40:44 -05:00
"operator": "+",
"right": {
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-18 17:40:44 -05:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-18 17:40:44 -05:00
"name": "helixAngleP",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-04-18 17:40:44 -05:00
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-18 17:40:44 -05:00
"type": "Name",
"type": "Name"
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
2025-03-06 18:01:24 -05:00
},
{
2025-04-18 17:40:44 -05:00
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "radius",
"start": 0,
"type": "Identifier"
},
"arg": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "gearPitch",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
}
2025-03-06 18:01:24 -05:00
}
],
"callee": {
2025-03-24 20:58:55 +13:00
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-24 20:58:55 +13:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-24 20:58:55 +13:00
"end": 0,
"name": "arc",
"start": 0,
"type": "Identifier"
},
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-24 20:58:55 +13:00
"type": "Name"
2025-03-06 18:01:24 -05:00
},
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
"start": 0,
2025-04-18 17:40:44 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
2025-03-06 18:01:24 -05:00
},
{
"arguments": [
{
2025-04-11 14:17:20 -04:00
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "radius",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-11 14:17:20 -04:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-11 14:17:20 -04:00
"name": "gearPitch",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-04-11 14:17:20 -04:00
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-11 14:17:20 -04:00
"type": "Name",
"type": "Name"
2025-03-06 18:01:24 -05:00
},
2025-04-11 14:17:20 -04:00
"operator": "*",
"right": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-11 14:17:20 -04:00
"raw": "1.67",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-11 14:17:20 -04:00
"type": "Literal",
"type": "Literal",
2025-03-06 18:01:24 -05:00
"value": {
2025-04-11 14:17:20 -04:00
"value": 1.67,
"suffix": "None"
2025-03-06 18:01:24 -05:00
}
2025-04-11 14:17:20 -04:00
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
2025-03-06 18:01:24 -05:00
},
{
2025-04-11 14:17:20 -04:00
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "angle",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"end": 0,
"raw": "60",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 60.0,
"suffix": "None"
}
}
2025-03-06 18:01:24 -05:00
}
],
"callee": {
2025-03-24 20:58:55 +13:00
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-24 20:58:55 +13:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-24 20:58:55 +13:00
"end": 0,
"name": "tangentialArc",
"start": 0,
"type": "Identifier"
},
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-24 20:58:55 +13:00
"type": "Name"
2025-03-06 18:01:24 -05:00
},
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
"start": 0,
2025-04-11 14:17:20 -04:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
2025-03-06 18:01:24 -05:00
},
{
"arguments": [
{
2025-04-11 14:17:20 -04:00
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "radius",
"start": 0,
"type": "Identifier"
},
"arg": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-11 14:17:20 -04:00
"name": "gearPitch",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-11 14:17:20 -04:00
"type": "Identifier"
2025-03-06 18:01:24 -05:00
},
2025-04-11 14:17:20 -04:00
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
}
},
{
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "angle",
"start": 0,
"type": "Identifier"
},
"arg": {
"argument": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-11 14:17:20 -04:00
"raw": "180",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-11 14:17:20 -04:00
"type": "Literal",
"type": "Literal",
2025-03-06 18:01:24 -05:00
"value": {
2025-04-11 14:17:20 -04:00
"value": 180.0,
"suffix": "None"
2025-03-06 18:01:24 -05:00
}
2025-04-11 14:17:20 -04:00
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
2025-03-06 18:01:24 -05:00
}
],
"callee": {
2025-03-24 20:58:55 +13:00
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-24 20:58:55 +13:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-24 20:58:55 +13:00
"end": 0,
"name": "tangentialArc",
"start": 0,
"type": "Identifier"
},
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-24 20:58:55 +13:00
"type": "Name"
2025-03-06 18:01:24 -05:00
},
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
"start": 0,
2025-04-11 14:17:20 -04:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
2025-03-06 18:01:24 -05:00
},
{
"arguments": [
{
2025-04-11 14:17:20 -04:00
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "radius",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-11 14:17:20 -04:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-11 14:17:20 -04:00
"name": "gearPitch",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-04-11 14:17:20 -04:00
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-11 14:17:20 -04:00
"type": "Name",
"type": "Name"
2025-03-06 18:01:24 -05:00
},
2025-04-11 14:17:20 -04:00
"operator": "*",
"right": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-11 14:17:20 -04:00
"raw": "1.67",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-11 14:17:20 -04:00
"type": "Literal",
"type": "Literal",
2025-03-06 18:01:24 -05:00
"value": {
2025-04-11 14:17:20 -04:00
"value": 1.67,
"suffix": "None"
2025-03-06 18:01:24 -05:00
}
2025-04-11 14:17:20 -04:00
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
2025-03-06 18:01:24 -05:00
},
{
2025-04-11 14:17:20 -04:00
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "angle",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"end": 0,
"raw": "60",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 60.0,
"suffix": "None"
}
}
2025-03-06 18:01:24 -05:00
}
],
"callee": {
2025-03-24 20:58:55 +13:00
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-24 20:58:55 +13:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-24 20:58:55 +13:00
"end": 0,
"name": "tangentialArc",
"start": 0,
"type": "Identifier"
},
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-24 20:58:55 +13:00
"type": "Name"
2025-03-06 18:01:24 -05:00
},
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
"start": 0,
2025-04-11 14:17:20 -04:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
2025-03-06 18:01:24 -05:00
},
{
"arguments": [
{
2025-04-11 14:17:20 -04:00
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "radius",
"start": 0,
"type": "Identifier"
},
"arg": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-11 14:17:20 -04:00
"name": "gearPitch",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-11 14:17:20 -04:00
"type": "Identifier"
2025-03-06 18:01:24 -05:00
},
2025-04-11 14:17:20 -04:00
"path": [],
"start": 0,
"type": "Name",
"type": "Name"
}
},
{
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "angle",
"start": 0,
"type": "Identifier"
},
"arg": {
"argument": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-11 14:17:20 -04:00
"raw": "180",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-11 14:17:20 -04:00
"type": "Literal",
"type": "Literal",
2025-03-06 18:01:24 -05:00
"value": {
2025-04-11 14:17:20 -04:00
"value": 180.0,
"suffix": "None"
2025-03-06 18:01:24 -05:00
}
2025-04-11 14:17:20 -04:00
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
2025-03-06 18:01:24 -05:00
}
],
"callee": {
2025-03-24 20:58:55 +13:00
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-24 20:58:55 +13:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-24 20:58:55 +13:00
"end": 0,
"name": "tangentialArc",
"start": 0,
"type": "Identifier"
},
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-24 20:58:55 +13:00
"type": "Name"
2025-03-06 18:01:24 -05:00
},
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
"start": 0,
2025-04-11 14:17:20 -04:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
2025-03-06 18:01:24 -05:00
},
{
"arguments": [
{
2025-04-11 14:17:20 -04:00
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "endAbsolute",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"callee": {
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-11 14:17:20 -04:00
"name": {
"commentStart": 0,
"end": 0,
"name": "profileStartX",
"start": 0,
"type": "Identifier"
},
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-11 14:17:20 -04:00
"type": "Name"
},
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
"start": 0,
2025-05-02 16:08:12 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
2025-03-06 18:01:24 -05:00
},
2025-04-11 14:17:20 -04:00
{
"callee": {
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-11 14:17:20 -04:00
"name": {
"commentStart": 0,
"end": 0,
"name": "profileStartY",
"start": 0,
"type": "Identifier"
},
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-11 14:17:20 -04:00
"type": "Name"
},
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
"start": 0,
2025-05-02 16:08:12 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
2025-04-11 14:17:20 -04:00
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
2025-03-06 18:01:24 -05:00
}
],
"callee": {
2025-03-24 20:58:55 +13:00
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-24 20:58:55 +13:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-24 20:58:55 +13:00
"end": 0,
2025-04-11 14:17:20 -04:00
"name": "tangentialArc",
2025-03-24 20:58:55 +13:00
"start": 0,
"type": "Identifier"
},
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-24 20:58:55 +13:00
"type": "Name"
2025-03-06 18:01:24 -05:00
},
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
"start": 0,
2025-04-11 14:17:20 -04:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
2025-03-06 18:01:24 -05:00
},
{
"callee": {
2025-03-24 20:58:55 +13:00
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-24 20:58:55 +13:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-24 20:58:55 +13:00
"end": 0,
"name": "close",
"start": 0,
"type": "Identifier"
},
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-24 20:58:55 +13:00
"type": "Name"
2025-03-06 18:01:24 -05:00
},
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
"start": 0,
2025-05-02 16:08:12 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
2025-03-06 18:01:24 -05:00
},
{
"arguments": [
{
2025-04-26 15:31:51 -05:00
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "tool",
"start": 0,
"type": "Identifier"
},
"arg": {
"arguments": [
{
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"elements": [
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
2025-03-06 18:01:24 -05:00
},
2025-04-26 15:31:51 -05:00
{
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "radius",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-26 15:31:51 -05:00
"name": {
"commentStart": 0,
"end": 0,
"name": "holeDiameter",
"start": 0,
"type": "Identifier"
},
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-26 15:31:51 -05:00
"type": "Name",
"type": "Name"
2025-03-06 18:01:24 -05:00
},
2025-04-26 15:31:51 -05:00
"operator": "/",
"right": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-26 15:31:51 -05:00
"raw": "2",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
"value": {
2025-04-26 15:31:51 -05:00
"value": 2.0,
2025-03-06 18:01:24 -05:00
"suffix": "None"
}
2025-04-26 15:31:51 -05:00
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
2025-03-06 18:01:24 -05:00
}
2025-04-26 15:31:51 -05:00
],
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-04-26 15:31:51 -05:00
"name": "circle",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-04-26 15:31:51 -05:00
"path": [],
2025-03-24 20:58:55 +13:00
"start": 0,
2025-04-26 15:31:51 -05:00
"type": "Name"
2025-03-24 20:58:55 +13:00
},
2025-04-26 15:31:51 -05:00
"commentStart": 0,
"end": 0,
2025-03-20 11:06:27 +13:00
"start": 0,
2025-04-26 15:31:51 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
2025-03-06 18:01:24 -05:00
}
],
"callee": {
2025-03-24 20:58:55 +13:00
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-24 20:58:55 +13:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-24 20:58:55 +13:00
"end": 0,
2025-04-26 15:31:51 -05:00
"name": "subtract2d",
2025-03-24 20:58:55 +13:00
"start": 0,
"type": "Identifier"
},
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-24 20:58:55 +13:00
"type": "Name"
2025-03-06 18:01:24 -05:00
},
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
"start": 0,
2025-04-26 15:31:51 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
2025-03-06 18:01:24 -05:00
}
],
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "PipeExpression",
"type": "PipeExpression"
},
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclarator"
},
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"kind": "const",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"argument": {
2025-03-24 20:58:55 +13:00
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-24 20:58:55 +13:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-24 20:58:55 +13:00
"end": 0,
"name": "gearProfile",
"start": 0,
"type": "Identifier"
},
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-24 20:58:55 +13:00
"type": "Name",
"type": "Name"
2025-03-06 18:01:24 -05:00
},
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "ReturnStatement",
"type": "ReturnStatement"
}
],
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
"start": 0
2025-03-06 18:01:24 -05:00
},
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"params": [
{
"type": "Parameter",
"identifier": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"name": "gHeight",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
2025-05-01 11:36:51 -05:00
},
"labeled": false
2025-03-06 18:01:24 -05:00
}
],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "FunctionExpression",
"type": "FunctionExpression"
},
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclarator"
},
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"kind": "fn",
2025-03-20 16:23:20 +13:00
"preComments": [
"// Create a function to draw the gear profile as a sketch. Rotate each profile about the gear's axis by an helix angle proportional to the total gear height"
],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-06 18:01:24 -05:00
"declaration": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"id": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"name": "gearLoft",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"init": {
2025-05-02 16:08:12 -05:00
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-05-02 16:08:12 -05:00
"end": 0,
"name": "loft",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"commentStart": 0,
"elements": [
{
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-05-02 16:08:12 -05:00
"name": "gearSketch",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-05-02 16:08:12 -05:00
"type": "Identifier"
2025-03-06 18:01:24 -05:00
},
2025-05-02 16:08:12 -05:00
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-05-02 16:08:12 -05:00
"raw": "0",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-05-02 16:08:12 -05:00
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
},
{
"callee": {
"abs_path": false,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 0,
"end": 0,
"name": "gearSketch",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Name"
2025-03-06 18:01:24 -05:00
},
2025-05-02 16:08:12 -05:00
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"commentStart": 0,
"end": 0,
"left": {
2025-03-24 20:58:55 +13:00
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-24 20:58:55 +13:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-24 20:58:55 +13:00
"end": 0,
2025-05-02 16:08:12 -05:00
"name": "gearHeight",
2025-03-24 20:58:55 +13:00
"start": 0,
"type": "Identifier"
},
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-05-02 16:08:12 -05:00
"type": "Name",
2025-03-24 20:58:55 +13:00
"type": "Name"
2025-03-06 18:01:24 -05:00
},
2025-05-02 16:08:12 -05:00
"operator": "/",
"right": {
"commentStart": 0,
"end": 0,
"raw": "2",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 0,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
},
{
"callee": {
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-05-02 16:08:12 -05:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-05-02 16:08:12 -05:00
"name": "gearSketch",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-05-02 16:08:12 -05:00
"type": "Identifier"
2025-03-06 18:01:24 -05:00
},
2025-05-02 16:08:12 -05:00
"path": [],
"start": 0,
"type": "Name"
},
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-05-02 16:08:12 -05:00
"name": {
"commentStart": 0,
"end": 0,
"name": "gearHeight",
"start": 0,
"type": "Identifier"
},
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-05-02 16:08:12 -05:00
"type": "Name",
"type": "Name"
2025-03-06 18:01:24 -05:00
}
2025-05-02 16:08:12 -05:00
}
],
2025-03-20 11:06:27 +13:00
"end": 0,
"start": 0,
2025-05-02 16:08:12 -05:00
"type": "ArrayExpression",
"type": "ArrayExpression"
}
2025-03-06 18:01:24 -05:00
},
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclarator"
},
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"kind": "const",
2025-03-20 16:23:20 +13:00
"preComments": [
"",
"",
"// Draw sketches of the gear profile along the gear height and loft them together"
],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"argument": {
2025-03-24 20:58:55 +13:00
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-24 20:58:55 +13:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-24 20:58:55 +13:00
"end": 0,
"name": "gearLoft",
"start": 0,
"type": "Identifier"
},
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-24 20:58:55 +13:00
"type": "Name",
"type": "Name"
2025-03-06 18:01:24 -05:00
},
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "ReturnStatement",
"type": "ReturnStatement"
}
],
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"nonCodeMeta": {
"nonCodeNodes": {
"1": [
{
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
}
]
},
2025-03-20 16:23:20 +13:00
"startNodes": []
2025-03-06 18:01:24 -05:00
},
2025-03-20 11:06:27 +13:00
"start": 0
2025-03-06 18:01:24 -05:00
},
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"params": [
{
"type": "Parameter",
"identifier": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"name": "gearPitch",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
}
},
{
"type": "Parameter",
"identifier": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"name": "gearHeight",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
}
},
{
"type": "Parameter",
"identifier": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"name": "holeDiameter",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
}
},
{
"type": "Parameter",
"identifier": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"name": "helixAngle",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
}
}
],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "FunctionExpression",
"type": "FunctionExpression"
},
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclarator"
},
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"kind": "fn",
2025-04-04 11:03:13 -07:00
"preComments": [
"// Create a function for the cycloidal gear"
],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"expression": {
"arguments": [
{
2025-05-01 11:36:51 -05:00
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "gearPitch",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"end": 0,
"raw": ".3",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.3,
"suffix": "None"
}
2025-03-06 18:01:24 -05:00
}
},
{
2025-05-01 11:36:51 -05:00
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "gearHeight",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"end": 0,
"raw": "1.5",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.5,
"suffix": "None"
}
2025-03-06 18:01:24 -05:00
}
},
{
2025-05-01 11:36:51 -05:00
"type": "LabeledArg",
"label": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-05-01 11:36:51 -05:00
"name": "holeDiameter",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 0,
"end": 0,
"raw": "0.297",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
"value": {
2025-05-01 11:36:51 -05:00
"value": 0.297,
2025-03-06 18:01:24 -05:00
"suffix": "None"
}
2025-05-01 11:36:51 -05:00
}
},
{
"type": "LabeledArg",
"label": {
"commentStart": 0,
"end": 0,
"name": "helixAngle",
"start": 0,
"type": "Identifier"
2025-03-06 18:01:24 -05:00
},
2025-05-01 11:36:51 -05:00
"arg": {
"argument": {
"commentStart": 0,
"end": 0,
"raw": "80",
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
"value": 80.0,
"suffix": "None"
}
},
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
2025-03-06 18:01:24 -05:00
}
],
"callee": {
2025-03-24 20:58:55 +13:00
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-24 20:58:55 +13:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-24 20:58:55 +13:00
"end": 0,
"name": "cycloidalGear",
"start": 0,
"type": "Identifier"
},
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-24 20:58:55 +13:00
"type": "Name"
2025-03-06 18:01:24 -05:00
},
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
"start": 0,
2025-05-01 11:36:51 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
2025-03-06 18:01:24 -05:00
},
2025-04-04 11:03:13 -07:00
"preComments": [
"",
"",
"// Call the cycloidal gear function"
],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "ExpressionStatement",
"type": "ExpressionStatement"
}
],
2025-03-20 16:23:20 +13:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"innerAttrs": [
{
2025-03-20 16:23:20 +13:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"name": "settings",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-20 16:23:20 +13:00
"preComments": [
"// Cycloidal Gear",
"// A cycloidal gear is a gear with a continuous, curved tooth profile. They are used in watchmaking and high precision robotics actuation",
"",
"",
2025-04-04 11:03:13 -07:00
"// Set units"
2025-03-20 16:23:20 +13:00
],
2025-03-06 18:01:24 -05:00
"properties": [
{
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"key": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-06 18:01:24 -05:00
"name": "defaultLengthUnit",
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "ObjectProperty",
"value": {
2025-03-24 20:58:55 +13:00
"abs_path": false,
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
2025-03-24 20:58:55 +13:00
"name": {
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-24 20:58:55 +13:00
"end": 0,
"name": "in",
"start": 0,
"type": "Identifier"
},
"path": [],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-24 20:58:55 +13:00
"type": "Name",
"type": "Name"
2025-03-06 18:01:24 -05:00
}
}
],
2025-03-20 11:06:27 +13:00
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "Annotation"
}
],
"nonCodeMeta": {
2025-04-04 11:03:13 -07:00
"nonCodeNodes": {},
2025-03-06 18:01:24 -05:00
"startNodes": [
{
2025-04-07 17:42:15 +12:00
"commentStart": 0,
2025-03-20 11:06:27 +13:00
"end": 0,
"start": 0,
2025-03-06 18:01:24 -05:00
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
}
]
},
"start": 0
}
}