| 
									
										
										
										
											2025-03-31 19:46:29 -04:00
										 |  |  | --- | 
					
						
							|  |  |  | source: kcl-lib/src/simulation_tests.rs | 
					
						
							|  |  |  | description: Result of unparsing tests/pattern_circular_in_module/thing.kcl | 
					
						
							|  |  |  | --- | 
					
						
							|  |  |  | export fn thing() { | 
					
						
							|  |  |  |   exampleSketch = startSketchOn(XZ) | 
					
						
							| 
									
										
										
										
											2025-04-25 16:01:35 -05:00
										 |  |  |     |> startProfile(at = [.5, 25]) | 
					
						
							| 
									
										
										
										
											2025-03-31 19:46:29 -04:00
										 |  |  |     |> line(end = [0, 5]) | 
					
						
							|  |  |  |     |> line(end = [-1, 0]) | 
					
						
							|  |  |  |     |> line(end = [0, -5]) | 
					
						
							|  |  |  |     |> close() | 
					
						
							|  |  |  |     |> patternCircular2d( | 
					
						
							|  |  |  |          center = [0, 0], | 
					
						
							|  |  |  |          instances = 4, | 
					
						
							|  |  |  |          arcDegrees = 360, | 
					
						
							|  |  |  |          rotateDuplicates = true, | 
					
						
							|  |  |  |        ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   return extrude(exampleSketch, length = 1) | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // This makes it run in isolated mode when the function is imported. | 
					
						
							|  |  |  | thing() |