| 
									
										
										
										
											2025-05-17 17:16:22 +02:00
										 |  |  | --- | 
					
						
							|  |  |  | source: kcl-lib/src/simulation_tests.rs | 
					
						
							|  |  |  | description: Operations executed shepherds-hook-bolt.kcl | 
					
						
							|  |  |  | --- | 
					
						
							|  |  |  | [ | 
					
						
							|  |  |  |   { | 
					
						
							|  |  |  |     "type": "StdLibCall", | 
					
						
							| 
									
										
										
										
											2025-05-19 16:50:15 +12:00
										 |  |  |     "name": "startSketchOn", | 
					
						
							| 
									
										
										
										
											2025-05-17 17:16:22 +02:00
										 |  |  |     "unlabeledArg": { | 
					
						
							|  |  |  |       "value": { | 
					
						
							|  |  |  |         "type": "Plane", | 
					
						
							|  |  |  |         "artifact_id": "[uuid]" | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "sourceRange": [] | 
					
						
							| 
									
										
										
										
											2025-05-19 16:50:15 +12:00
										 |  |  |     }, | 
					
						
							|  |  |  |     "labeledArgs": {}, | 
					
						
							|  |  |  |     "sourceRange": [] | 
					
						
							| 
									
										
										
										
											2025-05-17 17:16:22 +02:00
										 |  |  |   }, | 
					
						
							|  |  |  |   { | 
					
						
							|  |  |  |     "type": "GroupBegin", | 
					
						
							|  |  |  |     "group": { | 
					
						
							|  |  |  |       "type": "FunctionCall", | 
					
						
							|  |  |  |       "name": "polarToCartesian", | 
					
						
							|  |  |  |       "functionSourceRange": [], | 
					
						
							|  |  |  |       "unlabeledArg": null, | 
					
						
							|  |  |  |       "labeledArgs": { | 
					
						
							|  |  |  |         "angle": { | 
					
						
							|  |  |  |           "value": { | 
					
						
							|  |  |  |             "type": "Number", | 
					
						
							|  |  |  |             "value": 290.0, | 
					
						
							|  |  |  |             "ty": { | 
					
						
							|  |  |  |               "type": "Default", | 
					
						
							|  |  |  |               "len": { | 
					
						
							|  |  |  |                 "type": "Mm" | 
					
						
							|  |  |  |               }, | 
					
						
							|  |  |  |               "angle": { | 
					
						
							|  |  |  |                 "type": "Degrees" | 
					
						
							|  |  |  |               } | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           "sourceRange": [] | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         "radius": { | 
					
						
							|  |  |  |           "value": { | 
					
						
							|  |  |  |             "type": "Number", | 
					
						
							|  |  |  |             "value": 12.0, | 
					
						
							|  |  |  |             "ty": { | 
					
						
							|  |  |  |               "type": "Default", | 
					
						
							|  |  |  |               "len": { | 
					
						
							|  |  |  |                 "type": "Mm" | 
					
						
							|  |  |  |               }, | 
					
						
							|  |  |  |               "angle": { | 
					
						
							|  |  |  |                 "type": "Degrees" | 
					
						
							|  |  |  |               } | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           "sourceRange": [] | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     "sourceRange": [] | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   { | 
					
						
							|  |  |  |     "type": "GroupBegin", | 
					
						
							|  |  |  |     "group": { | 
					
						
							|  |  |  |       "type": "FunctionCall", | 
					
						
							|  |  |  |       "name": "polarToCartesian", | 
					
						
							|  |  |  |       "functionSourceRange": [], | 
					
						
							|  |  |  |       "unlabeledArg": null, | 
					
						
							|  |  |  |       "labeledArgs": { | 
					
						
							|  |  |  |         "angle": { | 
					
						
							|  |  |  |           "value": { | 
					
						
							|  |  |  |             "type": "Number", | 
					
						
							|  |  |  |             "value": 150.0, | 
					
						
							|  |  |  |             "ty": { | 
					
						
							|  |  |  |               "type": "Default", | 
					
						
							|  |  |  |               "len": { | 
					
						
							|  |  |  |                 "type": "Mm" | 
					
						
							|  |  |  |               }, | 
					
						
							|  |  |  |               "angle": { | 
					
						
							|  |  |  |                 "type": "Degrees" | 
					
						
							|  |  |  |               } | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           "sourceRange": [] | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         "radius": { | 
					
						
							|  |  |  |           "value": { | 
					
						
							|  |  |  |             "type": "Number", | 
					
						
							|  |  |  |             "value": 12.0, | 
					
						
							|  |  |  |             "ty": { | 
					
						
							|  |  |  |               "type": "Default", | 
					
						
							|  |  |  |               "len": { | 
					
						
							|  |  |  |                 "type": "Mm" | 
					
						
							|  |  |  |               }, | 
					
						
							|  |  |  |               "angle": { | 
					
						
							|  |  |  |                 "type": "Degrees" | 
					
						
							|  |  |  |               } | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           "sourceRange": [] | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     "sourceRange": [] | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   { | 
					
						
							| 
									
										
										
										
											2025-05-19 16:50:15 +12:00
										 |  |  |     "type": "StdLibCall", | 
					
						
							| 
									
										
										
										
											2025-05-17 17:16:22 +02:00
										 |  |  |     "name": "offsetPlane", | 
					
						
							|  |  |  |     "unlabeledArg": { | 
					
						
							|  |  |  |       "value": { | 
					
						
							|  |  |  |         "type": "Plane", | 
					
						
							|  |  |  |         "artifact_id": "[uuid]" | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "sourceRange": [] | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     "labeledArgs": { | 
					
						
							|  |  |  |       "offset": { | 
					
						
							|  |  |  |         "value": { | 
					
						
							|  |  |  |           "type": "Number", | 
					
						
							|  |  |  |           "value": -22.1378, | 
					
						
							|  |  |  |           "ty": { | 
					
						
							|  |  |  |             "type": "Default", | 
					
						
							|  |  |  |             "len": { | 
					
						
							|  |  |  |               "type": "Mm" | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |             "angle": { | 
					
						
							|  |  |  |               "type": "Degrees" | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         "sourceRange": [] | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     "sourceRange": [] | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   { | 
					
						
							| 
									
										
										
										
											2025-05-19 16:50:15 +12:00
										 |  |  |     "type": "StdLibCall", | 
					
						
							|  |  |  |     "name": "sweep", | 
					
						
							|  |  |  |     "unlabeledArg": { | 
					
						
							|  |  |  |       "value": { | 
					
						
							|  |  |  |         "type": "Sketch", | 
					
						
							|  |  |  |         "value": { | 
					
						
							|  |  |  |           "artifactId": "[uuid]" | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "sourceRange": [] | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2025-05-17 17:16:22 +02:00
										 |  |  |     "labeledArgs": { | 
					
						
							|  |  |  |       "path": { | 
					
						
							|  |  |  |         "value": { | 
					
						
							|  |  |  |           "type": "Sketch", | 
					
						
							|  |  |  |           "value": { | 
					
						
							|  |  |  |             "artifactId": "[uuid]" | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         "sourceRange": [] | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "sectional": { | 
					
						
							|  |  |  |         "value": { | 
					
						
							|  |  |  |           "type": "Bool", | 
					
						
							|  |  |  |           "value": true | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         "sourceRange": [] | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2025-05-19 16:50:15 +12:00
										 |  |  |     "sourceRange": [] | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   { | 
					
						
							| 
									
										
										
										
											2025-05-17 17:16:22 +02:00
										 |  |  |     "type": "StdLibCall", | 
					
						
							| 
									
										
										
										
											2025-05-19 16:50:15 +12:00
										 |  |  |     "name": "startSketchOn", | 
					
						
							| 
									
										
										
										
											2025-05-17 17:16:22 +02:00
										 |  |  |     "unlabeledArg": { | 
					
						
							|  |  |  |       "value": { | 
					
						
							| 
									
										
										
										
											2025-05-19 16:50:15 +12:00
										 |  |  |         "type": "Solid", | 
					
						
							| 
									
										
										
										
											2025-05-17 17:16:22 +02:00
										 |  |  |         "value": { | 
					
						
							|  |  |  |           "artifactId": "[uuid]" | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "sourceRange": [] | 
					
						
							| 
									
										
										
										
											2025-05-19 16:50:15 +12:00
										 |  |  |     }, | 
					
						
							| 
									
										
										
										
											2025-05-17 17:16:22 +02:00
										 |  |  |     "labeledArgs": { | 
					
						
							|  |  |  |       "face": { | 
					
						
							|  |  |  |         "value": { | 
					
						
							|  |  |  |           "type": "String", | 
					
						
							|  |  |  |           "value": "end" | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         "sourceRange": [] | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2025-05-19 16:50:15 +12:00
										 |  |  |     "sourceRange": [] | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   { | 
					
						
							| 
									
										
										
										
											2025-05-17 17:16:22 +02:00
										 |  |  |     "type": "StdLibCall", | 
					
						
							| 
									
										
										
										
											2025-05-19 16:50:15 +12:00
										 |  |  |     "name": "extrude", | 
					
						
							| 
									
										
										
										
											2025-05-17 17:16:22 +02:00
										 |  |  |     "unlabeledArg": { | 
					
						
							|  |  |  |       "value": { | 
					
						
							| 
									
										
										
										
											2025-05-19 16:50:15 +12:00
										 |  |  |         "type": "Sketch", | 
					
						
							| 
									
										
										
										
											2025-05-17 17:16:22 +02:00
										 |  |  |         "value": { | 
					
						
							|  |  |  |           "artifactId": "[uuid]" | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "sourceRange": [] | 
					
						
							| 
									
										
										
										
											2025-05-19 16:50:15 +12:00
										 |  |  |     }, | 
					
						
							| 
									
										
										
										
											2025-05-17 17:16:22 +02:00
										 |  |  |     "labeledArgs": { | 
					
						
							|  |  |  |       "length": { | 
					
						
							|  |  |  |         "value": { | 
					
						
							|  |  |  |           "type": "Number", | 
					
						
							|  |  |  |           "value": 6.0, | 
					
						
							|  |  |  |           "ty": { | 
					
						
							|  |  |  |             "type": "Default", | 
					
						
							|  |  |  |             "len": { | 
					
						
							|  |  |  |               "type": "Mm" | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |             "angle": { | 
					
						
							|  |  |  |               "type": "Degrees" | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         "sourceRange": [] | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "tagEnd": { | 
					
						
							|  |  |  |         "value": { | 
					
						
							|  |  |  |           "type": "TagDeclarator", | 
					
						
							|  |  |  |           "name": "capEnd001" | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         "sourceRange": [] | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "tagStart": { | 
					
						
							|  |  |  |         "value": { | 
					
						
							|  |  |  |           "type": "TagDeclarator", | 
					
						
							|  |  |  |           "name": "startTag" | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         "sourceRange": [] | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     }, | 
					
						
							| 
									
										
										
										
											2025-05-19 16:50:15 +12:00
										 |  |  |     "sourceRange": [] | 
					
						
							| 
									
										
										
										
											2025-05-17 17:16:22 +02:00
										 |  |  |   }, | 
					
						
							|  |  |  |   { | 
					
						
							| 
									
										
										
										
											2025-05-19 16:50:15 +12:00
										 |  |  |     "type": "StdLibCall", | 
					
						
							| 
									
										
										
										
											2025-05-17 17:16:22 +02:00
										 |  |  |     "name": "fillet", | 
					
						
							|  |  |  |     "unlabeledArg": { | 
					
						
							|  |  |  |       "value": { | 
					
						
							|  |  |  |         "type": "Solid", | 
					
						
							|  |  |  |         "value": { | 
					
						
							|  |  |  |           "artifactId": "[uuid]" | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "sourceRange": [] | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     "labeledArgs": { | 
					
						
							|  |  |  |       "radius": { | 
					
						
							|  |  |  |         "value": { | 
					
						
							|  |  |  |           "type": "Number", | 
					
						
							|  |  |  |           "value": 1.25, | 
					
						
							|  |  |  |           "ty": { | 
					
						
							|  |  |  |             "type": "Default", | 
					
						
							|  |  |  |             "len": { | 
					
						
							|  |  |  |               "type": "Mm" | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |             "angle": { | 
					
						
							|  |  |  |               "type": "Degrees" | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         "sourceRange": [] | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "tags": { | 
					
						
							|  |  |  |         "value": { | 
					
						
							|  |  |  |           "type": "Array", | 
					
						
							|  |  |  |           "value": [ | 
					
						
							|  |  |  |             { | 
					
						
							|  |  |  |               "type": "Uuid", | 
					
						
							|  |  |  |               "value": "[uuid]" | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |           ] | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         "sourceRange": [] | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     "sourceRange": [] | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   { | 
					
						
							|  |  |  |     "type": "StdLibCall", | 
					
						
							| 
									
										
										
										
											2025-05-19 16:50:15 +12:00
										 |  |  |     "name": "startSketchOn", | 
					
						
							| 
									
										
										
										
											2025-05-17 17:16:22 +02:00
										 |  |  |     "unlabeledArg": { | 
					
						
							|  |  |  |       "value": { | 
					
						
							|  |  |  |         "type": "Plane", | 
					
						
							|  |  |  |         "artifact_id": "[uuid]" | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "sourceRange": [] | 
					
						
							| 
									
										
										
										
											2025-05-19 16:50:15 +12:00
										 |  |  |     }, | 
					
						
							|  |  |  |     "labeledArgs": {}, | 
					
						
							|  |  |  |     "sourceRange": [] | 
					
						
							| 
									
										
										
										
											2025-05-17 17:16:22 +02:00
										 |  |  |   }, | 
					
						
							|  |  |  |   { | 
					
						
							| 
									
										
										
										
											2025-05-19 16:50:15 +12:00
										 |  |  |     "type": "StdLibCall", | 
					
						
							| 
									
										
										
										
											2025-05-17 17:16:22 +02:00
										 |  |  |     "name": "revolve", | 
					
						
							|  |  |  |     "unlabeledArg": { | 
					
						
							|  |  |  |       "value": { | 
					
						
							|  |  |  |         "type": "Array", | 
					
						
							|  |  |  |         "value": [ | 
					
						
							|  |  |  |           { | 
					
						
							|  |  |  |             "type": "Sketch", | 
					
						
							|  |  |  |             "value": { | 
					
						
							|  |  |  |               "artifactId": "[uuid]" | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         ] | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "sourceRange": [] | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     "labeledArgs": { | 
					
						
							|  |  |  |       "angle": { | 
					
						
							|  |  |  |         "value": { | 
					
						
							|  |  |  |           "type": "Number", | 
					
						
							|  |  |  |           "value": 360.0, | 
					
						
							|  |  |  |           "ty": { | 
					
						
							|  |  |  |             "type": "Default", | 
					
						
							|  |  |  |             "len": { | 
					
						
							|  |  |  |               "type": "Mm" | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |             "angle": { | 
					
						
							|  |  |  |               "type": "Degrees" | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         "sourceRange": [] | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "axis": { | 
					
						
							|  |  |  |         "value": { | 
					
						
							|  |  |  |           "type": "Object", | 
					
						
							|  |  |  |           "value": { | 
					
						
							|  |  |  |             "direction": { | 
					
						
							|  |  |  |               "type": "Array", | 
					
						
							|  |  |  |               "value": [ | 
					
						
							|  |  |  |                 { | 
					
						
							|  |  |  |                   "type": "Number", | 
					
						
							|  |  |  |                   "value": 0.0, | 
					
						
							|  |  |  |                   "ty": { | 
					
						
							|  |  |  |                     "type": "Default", | 
					
						
							|  |  |  |                     "len": { | 
					
						
							|  |  |  |                       "type": "Mm" | 
					
						
							|  |  |  |                     }, | 
					
						
							|  |  |  |                     "angle": { | 
					
						
							|  |  |  |                       "type": "Degrees" | 
					
						
							|  |  |  |                     } | 
					
						
							|  |  |  |                   } | 
					
						
							|  |  |  |                 }, | 
					
						
							|  |  |  |                 { | 
					
						
							|  |  |  |                   "type": "Number", | 
					
						
							|  |  |  |                   "value": 1.0, | 
					
						
							|  |  |  |                   "ty": { | 
					
						
							|  |  |  |                     "type": "Default", | 
					
						
							|  |  |  |                     "len": { | 
					
						
							|  |  |  |                       "type": "Mm" | 
					
						
							|  |  |  |                     }, | 
					
						
							|  |  |  |                     "angle": { | 
					
						
							|  |  |  |                       "type": "Degrees" | 
					
						
							|  |  |  |                     } | 
					
						
							|  |  |  |                   } | 
					
						
							|  |  |  |                 } | 
					
						
							|  |  |  |               ] | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |             "origin": { | 
					
						
							|  |  |  |               "type": "Array", | 
					
						
							|  |  |  |               "value": [ | 
					
						
							|  |  |  |                 { | 
					
						
							|  |  |  |                   "type": "Number", | 
					
						
							|  |  |  |                   "value": 0.0, | 
					
						
							|  |  |  |                   "ty": { | 
					
						
							|  |  |  |                     "type": "Default", | 
					
						
							|  |  |  |                     "len": { | 
					
						
							|  |  |  |                       "type": "Mm" | 
					
						
							|  |  |  |                     }, | 
					
						
							|  |  |  |                     "angle": { | 
					
						
							|  |  |  |                       "type": "Degrees" | 
					
						
							|  |  |  |                     } | 
					
						
							|  |  |  |                   } | 
					
						
							|  |  |  |                 }, | 
					
						
							|  |  |  |                 { | 
					
						
							|  |  |  |                   "type": "Number", | 
					
						
							|  |  |  |                   "value": 0.0, | 
					
						
							|  |  |  |                   "ty": { | 
					
						
							|  |  |  |                     "type": "Default", | 
					
						
							|  |  |  |                     "len": { | 
					
						
							|  |  |  |                       "type": "Mm" | 
					
						
							|  |  |  |                     }, | 
					
						
							|  |  |  |                     "angle": { | 
					
						
							|  |  |  |                       "type": "Degrees" | 
					
						
							|  |  |  |                     } | 
					
						
							|  |  |  |                   } | 
					
						
							|  |  |  |                 } | 
					
						
							|  |  |  |               ] | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         "sourceRange": [] | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     "sourceRange": [] | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   { | 
					
						
							|  |  |  |     "type": "GroupEnd" | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   { | 
					
						
							|  |  |  |     "type": "GroupEnd" | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | ] |