CadQuery Array Operations
Workplane.polarArray
result = (
cq.Workplane("XY")
.polarArray(
radius = 20,
startAngle = 0,
angle = 90,
count = 20,
fill = True,
rotate = True
)
.box(1,1,1)
)

Workplane.rarray
result = (
cq.Workplane("XY")
.rarray(
xSpacing = 10,
ySpacing = 10,
xCount = 5,
yCount= 5,
center = True)
.box(1,1,1)
)

Workplane.eachpoint
import cadquery as cq
from cadqueryhelper import shape
def add_star(loc):
return shape.star().val().located(loc)
star_arc =(
cq.Workplane("XY")
.polarArray(
radius =150,
startAngle = 0,
angle = 90,
count = 15,
fill = True,
rotate = True
)
.eachpoint(callback = add_star)
)
