| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  | --- | 
					
						
							|  |  |  | source: kcl-lib/src/simulation_tests.rs | 
					
						
							|  |  |  | description: Result of unparsing sketch_on_face_start.kcl | 
					
						
							|  |  |  | --- | 
					
						
							|  |  |  | fn cube(pos, scale) { | 
					
						
							| 
									
										
										
										
											2025-03-21 22:39:12 +13:00
										 |  |  |   sg = startSketchOn(XY) | 
					
						
							| 
									
										
										
										
											2025-04-25 16:01:35 -05:00
										 |  |  |     |> startProfile(at = pos) | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |     |> line(end = [0, scale]) | 
					
						
							|  |  |  |     |> line(end = [scale, 0]) | 
					
						
							|  |  |  |     |> line(end = [0, -scale]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   return sg | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-05-01 11:36:51 -05:00
										 |  |  | part001 = cube(pos = [0, 0], scale = 20) | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |   |> close(%) | 
					
						
							|  |  |  |   |> extrude(length = 20) as foo | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-04-14 05:58:19 -04:00
										 |  |  | part002 = startSketchOn(foo, face = START) | 
					
						
							| 
									
										
										
										
											2025-04-25 16:01:35 -05:00
										 |  |  |   |> startProfile(at = [0, 0]) | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |   |> line(end = [0, 10]) | 
					
						
							|  |  |  |   |> line(end = [10, 0]) | 
					
						
							|  |  |  |   |> line(end = [0, -10]) | 
					
						
							|  |  |  |   |> close(%) | 
					
						
							|  |  |  |   |> extrude(length = 5) |