Improve snapshot testing (#5856)

* Improve snapshot testing

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* A snapshot a day keeps the bugs away! 📷🐛

* A snapshot a day keeps the bugs away! 📷🐛

---------

Signed-off-by: Nick Cameron <nrc@ncameron.org>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Nick Cameron
2025-03-20 11:06:27 +13:00
committed by GitHub
parent 4b6166dc4f
commit a7e09a89ef
551 changed files with 115788 additions and 275855 deletions

View File

@ -5,11 +5,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
[
{
"cmdId": "[uuid]",
"range": [
0,
0,
0
],
"range": [],
"command": {
"type": "edge_lines_visible",
"hidden": false
@ -17,11 +13,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
0,
0,
0
],
"range": [],
"command": {
"type": "set_scene_units",
"unit": "mm"
@ -29,11 +21,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
0,
0,
0
],
"range": [],
"command": {
"type": "object_visible",
"object_id": "[uuid]",
@ -42,11 +30,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
0,
0,
0
],
"range": [],
"command": {
"type": "object_visible",
"object_id": "[uuid]",
@ -55,11 +39,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
16,
35,
0
],
"range": [],
"command": {
"type": "make_plane",
"origin": {
@ -84,11 +64,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
41,
66,
0
],
"range": [],
"command": {
"type": "enable_sketch_mode",
"entity_id": "[uuid]",
@ -104,22 +80,14 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
41,
66,
0
],
"range": [],
"command": {
"type": "start_path"
}
},
{
"cmdId": "[uuid]",
"range": [
41,
66,
0
],
"range": [],
"command": {
"type": "move_path_pen",
"path": "[uuid]",
@ -132,22 +100,14 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
41,
66,
0
],
"range": [],
"command": {
"type": "sketch_mode_disable"
}
},
{
"cmdId": "[uuid]",
"range": [
72,
90,
0
],
"range": [],
"command": {
"type": "extend_path",
"path": "[uuid]",
@ -164,11 +124,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
96,
114,
0
],
"range": [],
"command": {
"type": "extend_path",
"path": "[uuid]",
@ -185,11 +141,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
120,
139,
0
],
"range": [],
"command": {
"type": "extend_path",
"path": "[uuid]",
@ -206,11 +158,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
145,
153,
0
],
"range": [],
"command": {
"type": "close_path",
"path_id": "[uuid]"
@ -218,11 +166,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
159,
178,
0
],
"range": [],
"command": {
"type": "enable_sketch_mode",
"entity_id": "[uuid]",
@ -238,11 +182,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
159,
178,
0
],
"range": [],
"command": {
"type": "extrude",
"target": "[uuid]",
@ -252,22 +192,14 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
159,
178,
0
],
"range": [],
"command": {
"type": "sketch_mode_disable"
}
},
{
"cmdId": "[uuid]",
"range": [
159,
178,
0
],
"range": [],
"command": {
"type": "object_bring_to_front",
"object_id": "[uuid]"
@ -275,11 +207,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
159,
178,
0
],
"range": [],
"command": {
"type": "solid3d_get_extrusion_face_info",
"object_id": "[uuid]",
@ -288,11 +216,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
159,
178,
0
],
"range": [],
"command": {
"type": "solid3d_get_opposite_edge",
"object_id": "[uuid]",
@ -302,11 +226,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
159,
178,
0
],
"range": [],
"command": {
"type": "solid3d_get_next_adjacent_edge",
"object_id": "[uuid]",
@ -316,11 +236,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
159,
178,
0
],
"range": [],
"command": {
"type": "solid3d_get_opposite_edge",
"object_id": "[uuid]",
@ -330,11 +246,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
159,
178,
0
],
"range": [],
"command": {
"type": "solid3d_get_next_adjacent_edge",
"object_id": "[uuid]",
@ -344,11 +256,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
159,
178,
0
],
"range": [],
"command": {
"type": "solid3d_get_opposite_edge",
"object_id": "[uuid]",
@ -358,11 +266,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
159,
178,
0
],
"range": [],
"command": {
"type": "solid3d_get_next_adjacent_edge",
"object_id": "[uuid]",
@ -372,11 +276,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
159,
178,
0
],
"range": [],
"command": {
"type": "solid3d_get_opposite_edge",
"object_id": "[uuid]",
@ -386,11 +286,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
159,
178,
0
],
"range": [],
"command": {
"type": "solid3d_get_next_adjacent_edge",
"object_id": "[uuid]",
@ -400,11 +296,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
189,
277,
0
],
"range": [],
"command": {
"type": "entity_linear_pattern_transform",
"entity_id": "[uuid]",
@ -589,11 +481,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
288,
369,
0
],
"range": [],
"command": {
"type": "entity_linear_pattern_transform",
"entity_id": "[uuid]",
@ -778,11 +666,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
288,
369,
0
],
"range": [],
"command": {
"type": "entity_linear_pattern_transform",
"entity_id": "[uuid]",
@ -967,11 +851,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
288,
369,
0
],
"range": [],
"command": {
"type": "entity_linear_pattern_transform",
"entity_id": "[uuid]",
@ -1156,11 +1036,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
288,
369,
0
],
"range": [],
"command": {
"type": "entity_linear_pattern_transform",
"entity_id": "[uuid]",
@ -1345,11 +1221,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
288,
369,
0
],
"range": [],
"command": {
"type": "entity_linear_pattern_transform",
"entity_id": "[uuid]",
@ -1534,11 +1406,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
288,
369,
0
],
"range": [],
"command": {
"type": "entity_linear_pattern_transform",
"entity_id": "[uuid]",
@ -1723,11 +1591,7 @@ description: Artifact commands linear_pattern3d_a_pattern.kcl
},
{
"cmdId": "[uuid]",
"range": [
288,
369,
0
],
"range": [],
"command": {
"type": "entity_linear_pattern_transform",
"entity_id": "[uuid]",

View File

@ -7,9 +7,9 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
"body": [
{
"declaration": {
"end": 178,
"end": 0,
"id": {
"end": 13,
"end": 0,
"name": "exampleSketch",
"start": 0,
"type": "Identifier"
@ -19,22 +19,22 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
{
"arguments": [
{
"end": 34,
"end": 0,
"raw": "'XZ'",
"start": 30,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": "XZ"
}
],
"callee": {
"end": 29,
"end": 0,
"name": "startSketchOn",
"start": 16,
"start": 0,
"type": "Identifier"
},
"end": 35,
"start": 16,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
},
@ -43,9 +43,9 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
{
"elements": [
{
"end": 58,
"end": 0,
"raw": "0",
"start": 57,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -54,9 +54,9 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
}
},
{
"end": 61,
"end": 0,
"raw": "0",
"start": 60,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -65,26 +65,26 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
}
}
],
"end": 62,
"start": 56,
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"end": 65,
"start": 64,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 55,
"end": 0,
"name": "startProfileAt",
"start": 41,
"start": 0,
"type": "Identifier"
},
"end": 66,
"start": 41,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
},
@ -93,17 +93,17 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
{
"type": "LabeledArg",
"label": {
"end": 80,
"end": 0,
"name": "end",
"start": 77,
"start": 0,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 85,
"end": 0,
"raw": "0",
"start": 84,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -112,9 +112,9 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
}
},
{
"end": 88,
"end": 0,
"raw": "2",
"start": 87,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -123,21 +123,21 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
}
}
],
"end": 89,
"start": 83,
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 76,
"end": 0,
"name": "line",
"start": 72,
"start": 0,
"type": "Identifier"
},
"end": 90,
"start": 72,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
@ -147,17 +147,17 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
{
"type": "LabeledArg",
"label": {
"end": 104,
"end": 0,
"name": "end",
"start": 101,
"start": 0,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 109,
"end": 0,
"raw": "3",
"start": 108,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -166,9 +166,9 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
}
},
{
"end": 112,
"end": 0,
"raw": "1",
"start": 111,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -177,21 +177,21 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
}
}
],
"end": 113,
"start": 107,
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 100,
"end": 0,
"name": "line",
"start": 96,
"start": 0,
"type": "Identifier"
},
"end": 114,
"start": 96,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
@ -201,17 +201,17 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
{
"type": "LabeledArg",
"label": {
"end": 128,
"end": 0,
"name": "end",
"start": 125,
"start": 0,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 133,
"end": 0,
"raw": "0",
"start": 132,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -221,9 +221,9 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
},
{
"argument": {
"end": 137,
"end": 0,
"raw": "4",
"start": 136,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -231,28 +231,28 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
"suffix": "None"
}
},
"end": 137,
"end": 0,
"operator": "-",
"start": 135,
"start": 0,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"end": 138,
"start": 131,
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 124,
"end": 0,
"name": "line",
"start": 120,
"start": 0,
"type": "Identifier"
},
"end": 139,
"start": 120,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
@ -260,20 +260,20 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
{
"arguments": [
{
"end": 152,
"start": 151,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 150,
"end": 0,
"name": "close",
"start": 145,
"start": 0,
"type": "Identifier"
},
"end": 153,
"start": 145,
"end": 0,
"start": 0,
"type": "CallExpression",
"type": "CallExpression"
},
@ -282,15 +282,15 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
{
"type": "LabeledArg",
"label": {
"end": 173,
"end": 0,
"name": "length",
"start": 167,
"start": 0,
"type": "Identifier"
},
"arg": {
"end": 177,
"end": 0,
"raw": "1",
"start": 176,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -301,27 +301,27 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
}
],
"callee": {
"end": 166,
"end": 0,
"name": "extrude",
"start": 159,
"start": 0,
"type": "Identifier"
},
"end": 178,
"start": 159,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
}
],
"end": 178,
"start": 16,
"end": 0,
"start": 0,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 0,
"type": "VariableDeclarator"
},
"end": 178,
"end": 0,
"kind": "const",
"start": 0,
"type": "VariableDeclaration",
@ -329,11 +329,11 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
},
{
"declaration": {
"end": 277,
"end": 0,
"id": {
"end": 186,
"end": 0,
"name": "pattn1",
"start": 180,
"start": 0,
"type": "Identifier"
},
"init": {
@ -341,17 +341,17 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
{
"type": "LabeledArg",
"label": {
"end": 229,
"end": 0,
"name": "axis",
"start": 225,
"start": 0,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 234,
"end": 0,
"raw": "1",
"start": 233,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -360,9 +360,9 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
}
},
{
"end": 237,
"end": 0,
"raw": "0",
"start": 236,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -371,9 +371,9 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
}
},
{
"end": 240,
"end": 0,
"raw": "0",
"start": 239,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -382,8 +382,8 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
}
}
],
"end": 241,
"start": 232,
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
@ -391,15 +391,15 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
{
"type": "LabeledArg",
"label": {
"end": 254,
"end": 0,
"name": "instances",
"start": 245,
"start": 0,
"type": "Identifier"
},
"arg": {
"end": 258,
"end": 0,
"raw": "7",
"start": 257,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -411,15 +411,15 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
{
"type": "LabeledArg",
"label": {
"end": 270,
"end": 0,
"name": "distance",
"start": 262,
"start": 0,
"type": "Identifier"
},
"arg": {
"end": 274,
"end": 0,
"raw": "6",
"start": 273,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -430,39 +430,39 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
}
],
"callee": {
"end": 204,
"end": 0,
"name": "patternLinear3d",
"start": 189,
"start": 0,
"type": "Identifier"
},
"end": 277,
"start": 189,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"end": 221,
"end": 0,
"name": "exampleSketch",
"start": 208,
"start": 0,
"type": "Identifier",
"type": "Identifier"
}
},
"start": 180,
"start": 0,
"type": "VariableDeclarator"
},
"end": 277,
"end": 0,
"kind": "const",
"start": 180,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 369,
"end": 0,
"id": {
"end": 285,
"end": 0,
"name": "pattn2",
"start": 279,
"start": 0,
"type": "Identifier"
},
"init": {
@ -470,17 +470,17 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
{
"type": "LabeledArg",
"label": {
"end": 321,
"end": 0,
"name": "axis",
"start": 317,
"start": 0,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 326,
"end": 0,
"raw": "0",
"start": 325,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -489,9 +489,9 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
}
},
{
"end": 329,
"end": 0,
"raw": "0",
"start": 328,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -500,9 +500,9 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
}
},
{
"end": 332,
"end": 0,
"raw": "1",
"start": 331,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -511,8 +511,8 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
}
}
],
"end": 333,
"start": 324,
"end": 0,
"start": 0,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
@ -520,15 +520,15 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
{
"type": "LabeledArg",
"label": {
"end": 345,
"end": 0,
"name": "distance",
"start": 337,
"start": 0,
"type": "Identifier"
},
"arg": {
"end": 349,
"end": 0,
"raw": "1",
"start": 348,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -540,15 +540,15 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
{
"type": "LabeledArg",
"label": {
"end": 362,
"end": 0,
"name": "instances",
"start": 353,
"start": 0,
"type": "Identifier"
},
"arg": {
"end": 366,
"end": 0,
"raw": "7",
"start": 365,
"start": 0,
"type": "Literal",
"type": "Literal",
"value": {
@ -559,40 +559,40 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
}
],
"callee": {
"end": 303,
"end": 0,
"name": "patternLinear3d",
"start": 288,
"start": 0,
"type": "Identifier"
},
"end": 369,
"start": 288,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"end": 313,
"end": 0,
"name": "pattn1",
"start": 307,
"start": 0,
"type": "Identifier",
"type": "Identifier"
}
},
"start": 279,
"start": 0,
"type": "VariableDeclarator"
},
"end": 369,
"end": 0,
"kind": "const",
"start": 279,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
}
],
"end": 370,
"end": 0,
"nonCodeMeta": {
"nonCodeNodes": {
"0": [
{
"end": 180,
"start": 178,
"end": 0,
"start": 0,
"type": "NonCodeNode",
"value": {
"type": "newLine"
@ -601,8 +601,8 @@ description: Result of parsing linear_pattern3d_a_pattern.kcl
],
"1": [
{
"end": 279,
"start": 277,
"end": 0,
"start": 0,
"type": "NonCodeNode",
"value": {
"type": "newLine"

View File

@ -10,19 +10,11 @@ description: Operations executed linear_pattern3d_a_pattern.kcl
"type": "String",
"value": "XZ"
},
"sourceRange": [
30,
34,
0
]
"sourceRange": []
}
},
"name": "startSketchOn",
"sourceRange": [
16,
35,
0
],
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": null
},
@ -42,19 +34,11 @@ description: Operations executed linear_pattern3d_a_pattern.kcl
}
}
},
"sourceRange": [
176,
177,
0
]
"sourceRange": []
}
},
"name": "extrude",
"sourceRange": [
159,
178,
0
],
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
@ -63,11 +47,7 @@ description: Operations executed linear_pattern3d_a_pattern.kcl
"artifactId": "[uuid]"
}
},
"sourceRange": [
159,
178,
0
]
"sourceRange": []
}
},
{
@ -117,11 +97,7 @@ description: Operations executed linear_pattern3d_a_pattern.kcl
}
]
},
"sourceRange": [
232,
241,
0
]
"sourceRange": []
},
"distance": {
"value": {
@ -137,11 +113,7 @@ description: Operations executed linear_pattern3d_a_pattern.kcl
}
}
},
"sourceRange": [
273,
274,
0
]
"sourceRange": []
},
"instances": {
"value": {
@ -157,19 +129,11 @@ description: Operations executed linear_pattern3d_a_pattern.kcl
}
}
},
"sourceRange": [
257,
258,
0
]
"sourceRange": []
}
},
"name": "patternLinear3d",
"sourceRange": [
189,
277,
0
],
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
@ -178,11 +142,7 @@ description: Operations executed linear_pattern3d_a_pattern.kcl
"artifactId": "[uuid]"
}
},
"sourceRange": [
208,
221,
0
]
"sourceRange": []
}
},
{
@ -232,11 +192,7 @@ description: Operations executed linear_pattern3d_a_pattern.kcl
}
]
},
"sourceRange": [
324,
333,
0
]
"sourceRange": []
},
"distance": {
"value": {
@ -252,11 +208,7 @@ description: Operations executed linear_pattern3d_a_pattern.kcl
}
}
},
"sourceRange": [
348,
349,
0
]
"sourceRange": []
},
"instances": {
"value": {
@ -272,19 +224,11 @@ description: Operations executed linear_pattern3d_a_pattern.kcl
}
}
},
"sourceRange": [
365,
366,
0
]
"sourceRange": []
}
},
"name": "patternLinear3d",
"sourceRange": [
288,
369,
0
],
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": {
"value": {
@ -334,11 +278,7 @@ description: Operations executed linear_pattern3d_a_pattern.kcl
}
]
},
"sourceRange": [
307,
313,
0
]
"sourceRange": []
}
}
]

View File

@ -0,0 +1,25 @@
---
source: kcl-lib/src/simulation_tests.rs
description: Result of unparsing linear_pattern3d_a_pattern.kcl
---
exampleSketch = startSketchOn('XZ')
|> startProfileAt([0, 0], %)
|> line(end = [0, 2])
|> line(end = [3, 1])
|> line(end = [0, -4])
|> close(%)
|> extrude(length = 1)
pattn1 = patternLinear3d(
exampleSketch,
axis = [1, 0, 0],
instances = 7,
distance = 6,
)
pattn2 = patternLinear3d(
pattn1,
axis = [0, 0, 1],
distance = 1,
instances = 7,
)