CadQuery / CadQuery/cadquery

Selected faces must be co-planar

Open
#1,349 6 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
5.8k
Forks
541
Avg merge
3d 2h
Merged PRs (30d)
5

Description

Hi,
I have the following code snippet:
```
def perFace(face: cq.Workplane):
return (
face.box(2, 2, 2)
)
part = (
cq.Workplane("XY")
.polygon(6, (radius + wall + shift)*2, circumscribed=True)
.extrude(-partHeight)
)
part = (
part.faces("#Z")
.workplane()
.each(perFace)
)
```
I am trying to apply the box to each side face of the polygon, but I get the error `ValueError: Selected faces must be co-planar`
How can I repeat the operation in the function `perFace` for each selected face? `faces("#Z").workplane().each(perFace)` seems not to work 🤔

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.