| 
									
										
										
										
											2025-03-06 18:01:24 -05:00
										 |  |  | --- | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  | source: kcl-lib/src/simulation_tests.rs | 
					
						
							| 
									
										
										
										
											2025-03-06 18:01:24 -05:00
										 |  |  | description: Operations executed washer.kcl | 
					
						
							|  |  |  | --- | 
					
						
							| 
									
										
										
										
											2025-06-10 21:30:48 -04:00
										 |  |  | { | 
					
						
							|  |  |  |   "public/kcl-samples/washer/main.kcl": [ | 
					
						
							| 
									
										
										
										
											2025-06-12 12:38:12 -04:00
										 |  |  |     { | 
					
						
							|  |  |  |       "type": "VariableDeclaration", | 
					
						
							|  |  |  |       "name": "innerDiameter", | 
					
						
							|  |  |  |       "value": { | 
					
						
							|  |  |  |         "type": "Number", | 
					
						
							|  |  |  |         "value": 0.203, | 
					
						
							|  |  |  |         "ty": { | 
					
						
							|  |  |  |           "type": "Default", | 
					
						
							|  |  |  |           "len": { | 
					
						
							|  |  |  |             "type": "Inches" | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           "angle": { | 
					
						
							|  |  |  |             "type": "Degrees" | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "visibility": "default", | 
					
						
							|  |  |  |       "nodePath": { | 
					
						
							|  |  |  |         "steps": [ | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             "type": "ProgramBodyItem", | 
					
						
							|  |  |  |             "index": 0 | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             "type": "VariableDeclarationDeclaration" | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             "type": "VariableDeclarationInit" | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         ] | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "sourceRange": [] | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |       "type": "VariableDeclaration", | 
					
						
							|  |  |  |       "name": "outerDiameter", | 
					
						
							|  |  |  |       "value": { | 
					
						
							|  |  |  |         "type": "Number", | 
					
						
							|  |  |  |         "value": 0.438, | 
					
						
							|  |  |  |         "ty": { | 
					
						
							|  |  |  |           "type": "Default", | 
					
						
							|  |  |  |           "len": { | 
					
						
							|  |  |  |             "type": "Inches" | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           "angle": { | 
					
						
							|  |  |  |             "type": "Degrees" | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "visibility": "default", | 
					
						
							|  |  |  |       "nodePath": { | 
					
						
							|  |  |  |         "steps": [ | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             "type": "ProgramBodyItem", | 
					
						
							|  |  |  |             "index": 1 | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             "type": "VariableDeclarationDeclaration" | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             "type": "VariableDeclarationInit" | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         ] | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "sourceRange": [] | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |       "type": "VariableDeclaration", | 
					
						
							|  |  |  |       "name": "thicknessMax", | 
					
						
							|  |  |  |       "value": { | 
					
						
							|  |  |  |         "type": "Number", | 
					
						
							|  |  |  |         "value": 0.038, | 
					
						
							|  |  |  |         "ty": { | 
					
						
							|  |  |  |           "type": "Default", | 
					
						
							|  |  |  |           "len": { | 
					
						
							|  |  |  |             "type": "Inches" | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           "angle": { | 
					
						
							|  |  |  |             "type": "Degrees" | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "visibility": "default", | 
					
						
							|  |  |  |       "nodePath": { | 
					
						
							|  |  |  |         "steps": [ | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             "type": "ProgramBodyItem", | 
					
						
							|  |  |  |             "index": 2 | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             "type": "VariableDeclarationDeclaration" | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             "type": "VariableDeclarationInit" | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         ] | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "sourceRange": [] | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |       "type": "VariableDeclaration", | 
					
						
							|  |  |  |       "name": "thicknessNom", | 
					
						
							|  |  |  |       "value": { | 
					
						
							|  |  |  |         "type": "Number", | 
					
						
							|  |  |  |         "value": 0.032, | 
					
						
							|  |  |  |         "ty": { | 
					
						
							|  |  |  |           "type": "Default", | 
					
						
							|  |  |  |           "len": { | 
					
						
							|  |  |  |             "type": "Inches" | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           "angle": { | 
					
						
							|  |  |  |             "type": "Degrees" | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "visibility": "default", | 
					
						
							|  |  |  |       "nodePath": { | 
					
						
							|  |  |  |         "steps": [ | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             "type": "ProgramBodyItem", | 
					
						
							|  |  |  |             "index": 3 | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             "type": "VariableDeclarationDeclaration" | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             "type": "VariableDeclarationInit" | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         ] | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "sourceRange": [] | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |       "type": "VariableDeclaration", | 
					
						
							|  |  |  |       "name": "thicknessMin", | 
					
						
							|  |  |  |       "value": { | 
					
						
							|  |  |  |         "type": "Number", | 
					
						
							|  |  |  |         "value": 0.024, | 
					
						
							|  |  |  |         "ty": { | 
					
						
							|  |  |  |           "type": "Default", | 
					
						
							|  |  |  |           "len": { | 
					
						
							|  |  |  |             "type": "Inches" | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           "angle": { | 
					
						
							|  |  |  |             "type": "Degrees" | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "visibility": "default", | 
					
						
							|  |  |  |       "nodePath": { | 
					
						
							|  |  |  |         "steps": [ | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             "type": "ProgramBodyItem", | 
					
						
							|  |  |  |             "index": 4 | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             "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": 5 | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             "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": "subtract2d", | 
					
						
							|  |  |  |       "unlabeledArg": { | 
					
						
							| 
									
										
										
										
											2025-03-06 18:01:24 -05:00
										 |  |  |         "value": { | 
					
						
							|  |  |  |           "type": "Sketch", | 
					
						
							|  |  |  |           "value": { | 
					
						
							|  |  |  |             "artifactId": "[uuid]" | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         }, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |         "sourceRange": [] | 
					
						
							| 
									
										
										
										
											2025-06-10 21:30:48 -04:00
										 |  |  |       }, | 
					
						
							|  |  |  |       "labeledArgs": { | 
					
						
							|  |  |  |         "tool": { | 
					
						
							|  |  |  |           "value": { | 
					
						
							|  |  |  |             "type": "Sketch", | 
					
						
							|  |  |  |             "value": { | 
					
						
							|  |  |  |               "artifactId": "[uuid]" | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           "sourceRange": [] | 
					
						
							| 
									
										
										
										
											2025-04-26 15:31:51 -05:00
										 |  |  |         } | 
					
						
							|  |  |  |       }, | 
					
						
							| 
									
										
										
										
											2025-06-10 21:30:48 -04:00
										 |  |  |       "nodePath": { | 
					
						
							|  |  |  |         "steps": [ | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             "type": "ProgramBodyItem", | 
					
						
							|  |  |  |             "index": 5 | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             "type": "VariableDeclarationDeclaration" | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             "type": "VariableDeclarationInit" | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             "type": "PipeBodyItem", | 
					
						
							|  |  |  |             "index": 2 | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         ] | 
					
						
							|  |  |  |       }, | 
					
						
							| 
									
										
										
										
											2025-04-26 15:31:51 -05:00
										 |  |  |       "sourceRange": [] | 
					
						
							| 
									
										
										
										
											2025-05-19 16:50:15 +12:00
										 |  |  |     }, | 
					
						
							| 
									
										
										
										
											2025-06-10 21:30:48 -04:00
										 |  |  |     { | 
					
						
							|  |  |  |       "type": "StdLibCall", | 
					
						
							|  |  |  |       "name": "extrude", | 
					
						
							|  |  |  |       "unlabeledArg": { | 
					
						
							| 
									
										
										
										
											2025-03-06 18:01:24 -05:00
										 |  |  |         "value": { | 
					
						
							| 
									
										
										
										
											2025-06-10 21:30:48 -04:00
										 |  |  |           "type": "Sketch", | 
					
						
							|  |  |  |           "value": { | 
					
						
							|  |  |  |             "artifactId": "[uuid]" | 
					
						
							| 
									
										
										
										
											2025-03-06 18:01:24 -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": 0.032, | 
					
						
							|  |  |  |             "ty": { | 
					
						
							|  |  |  |               "type": "Default", | 
					
						
							|  |  |  |               "len": { | 
					
						
							|  |  |  |                 "type": "Inches" | 
					
						
							|  |  |  |               }, | 
					
						
							|  |  |  |               "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": 6 | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             "type": "VariableDeclarationDeclaration" | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             "type": "VariableDeclarationInit" | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         ] | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "sourceRange": [] | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   ], | 
					
						
							|  |  |  |   "std::appearance": [], | 
					
						
							|  |  |  |   "std::array": [], | 
					
						
							| 
									
										
										
										
											2025-06-12 12:38:12 -04:00
										 |  |  |   "std::math": [ | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |       "type": "VariableDeclaration", | 
					
						
							|  |  |  |       "name": "PI", | 
					
						
							|  |  |  |       "value": { | 
					
						
							|  |  |  |         "type": "Number", | 
					
						
							|  |  |  |         "value": 3.142, | 
					
						
							|  |  |  |         "ty": { | 
					
						
							|  |  |  |           "type": "Unknown" | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "visibility": "export", | 
					
						
							|  |  |  |       "nodePath": { | 
					
						
							|  |  |  |         "steps": [] | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "sourceRange": [] | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |       "type": "VariableDeclaration", | 
					
						
							|  |  |  |       "name": "E", | 
					
						
							|  |  |  |       "value": { | 
					
						
							|  |  |  |         "type": "Number", | 
					
						
							|  |  |  |         "value": 2.718, | 
					
						
							|  |  |  |         "ty": { | 
					
						
							|  |  |  |           "type": "Known", | 
					
						
							|  |  |  |           "type": "Count" | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "visibility": "export", | 
					
						
							|  |  |  |       "nodePath": { | 
					
						
							|  |  |  |         "steps": [] | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "sourceRange": [] | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |       "type": "VariableDeclaration", | 
					
						
							|  |  |  |       "name": "TAU", | 
					
						
							|  |  |  |       "value": { | 
					
						
							|  |  |  |         "type": "Number", | 
					
						
							|  |  |  |         "value": 6.283, | 
					
						
							|  |  |  |         "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": [] | 
					
						
							|  |  |  | } |