CadQuery / CadQuery/cadquery

Cutting a sphere by a box fails in one direction

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

Description

**Test code**

```python
import cadquery as cq

show_object(
cq.Workplane().sphere(1).cut(
cq.Workplane().box(2, 2, 0.5)
).translate((0,0,2))
)
show_object(
cq.Workplane().sphere(1).cut(
cq.Workplane().box(0.5, 2, 2)
)
)
```

**Result:**
The top cut is ok, the bottom cut is broken

![image](https://user-images.githubusercontent.com/954408/198207587-813b45d5-8524-4b3b-9272-b25ba537f1e6.png)

**Environment:**

CadQuery:
```bash
Successfully installed cadquery-2.2.dev531+g03c3266
```

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.