CadQuery / CadQuery/cadquery

Inverted normals when using shell and fillet

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

Description

The following code with a negative shell works fine:

```
test = (
cq.Workplane("XY")
.box(10, 10, 10)
.faces(">Z")
.shell(-1, "intersection")
.edges("|Z")
.fillet(1)
)
show_object(test)
```

![image](https://github.com/CadQuery/cadquery/assets/1370530/5dadb7be-8b0e-4005-8b14-d7d35db26221)

However, if we make the shell positive, the normals get inverted and we get "holes" in the shape

```
test = (
cq.Workplane("XY")
.box(10, 10, 10)
.faces(">Z")
.shell(1, "intersection") # <----- positive shell
.edges("|Z")
.fillet(1)
)
show_object(test)
```

![image](https://github.com/CadQuery/cadquery/assets/1370530/5d73ad4f-f73d-4322-9933-544e5b90ded6)

It works fine without the fillet.

Version: 2.3.1_43_gad46448

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.