50 lines
		
	
	
		
			54 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			54 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ---
 | |
| title: "patternCircular2d"
 | |
| excerpt: "Repeat a 2-dimensional sketch some number of times along a partial or"
 | |
| layout: manual
 | |
| ---
 | |
| 
 | |
| Repeat a 2-dimensional sketch some number of times along a partial or
 | |
| 
 | |
| complete circle some specified number of times. Each object may additionally be rotated along the circle, ensuring orentation of the solid with respect to the center of the circle is maintained.
 | |
| 
 | |
| ```js
 | |
| patternCircular2d(data: CircularPattern2dData, sketch_set: SketchSet) -> [Sketch]
 | |
| ```
 | |
| 
 | |
| 
 | |
| ### Arguments
 | |
| 
 | |
| | Name | Type | Description | Required |
 | |
| |----------|------|-------------|----------|
 | |
| | `data` | [`CircularPattern2dData`](/docs/kcl/types/CircularPattern2dData) | Data for a circular pattern on a 2D sketch. | Yes |
 | |
| | `sketch_set` | [`SketchSet`](/docs/kcl/types/SketchSet) | A sketch or a group of sketches. | Yes |
 | |
| 
 | |
| ### Returns
 | |
| 
 | |
| [`[Sketch]`](/docs/kcl/types/Sketch) 
 | |
| 
 | |
| 
 | |
| ### Examples
 | |
| 
 | |
| ```js
 | |
| exampleSketch = startSketchOn('XZ')
 | |
|   |> startProfileAt([.5, 25], %)
 | |
|   |> line([0, 5], %)
 | |
|   |> line([-1, 0], %)
 | |
|   |> line([0, -5], %)
 | |
|   |> close(%)
 | |
|   |> patternCircular2d({
 | |
|        center = [0, 0],
 | |
|        instances = 13,
 | |
|        arcDegrees = 360,
 | |
|        rotateDuplicates = true
 | |
|      }, %)
 | |
| 
 | |
| example = extrude(1, exampleSketch)
 | |
| ```
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 |