| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  | --- | 
					
						
							|  |  |  | source: kcl-lib/src/simulation_tests.rs | 
					
						
							|  |  |  | description: Result of unparsing function_sketch.kcl | 
					
						
							|  |  |  | --- | 
					
						
							|  |  |  | fn box(h, l, w) { | 
					
						
							| 
									
										
										
										
											2025-03-21 22:39:12 +13:00
										 |  |  |   myBox = startSketchOn(XY) | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |     |> startProfileAt([0, 0], %) | 
					
						
							|  |  |  |     |> line(end = [0, l]) | 
					
						
							|  |  |  |     |> line(end = [w, 0]) | 
					
						
							|  |  |  |     |> line(end = [0, -l]) | 
					
						
							|  |  |  |     |> close(%) | 
					
						
							|  |  |  |     |> extrude(length = h) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   return myBox | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | fnBox = box(3, 6, 10) |