CadQuery / cadquery

A python parametric CAD scripting framework based on OCCT
https://cadquery.readthedocs.io
Other
3.27k stars 295 forks source link

Offset2D changes the orientation of a circle #753

Open marcus7070 opened 3 years ago

marcus7070 commented 3 years ago
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

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.

adam-urbanczyk commented 3 years ago

Confirmed.