CadQuery / CadQuery/cadquery

Offset2D changes the orientation of a circle

Open
#753 1 comment 0 reactions 0 assignees View on GitHub
bug OCC kernel issue
Dominant language
Python
Stars
5.8k
Forks
541
Avg merge
3d 2h
Merged PRs (30d)
5

Description

```python
import cadquery as cq

part = cq.Workplane("XZ").circle(1)

show_object(part, "pre-offset", options={"color": "green"})

part = part.offset2D(1)

show_object(part, "post-offset", options={"color": "blue"})
```

![screenshot2021-05-03-133916](https://user-images.githubusercontent.com/50230945/116840459-13b74280-ac15-11eb-9052-a447c29c83b8.png)

It's a bit hard to see in the image, so to be clear, the pre-offset circle lies in the XZ plane, the post-offset circle lies in the XY plane when you would expect it in the XZ plane.

I can only reproduce this behaviour with circles - closed splines, two arcs making a circle and polygons all work as expected.

Using current master, 2b7f39b234df15328ad0102b1b0c15bbd4f7efb4.

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.