cadquery icon indicating copy to clipboard operation
cadquery copied to clipboard

free function sweep BRepOffsetAPI_MakePipeShell option to SetMode

Open lorenzncode opened this issue 1 year ago • 0 comments

I did not expect this result from the sweep.

import cadquery as cq
from cadquery.occ_impl.shapes import *

path = cq.Wire.makeHelix(2, 6, 4)

e1 = segment((4, 0, 0), (4, 0, 0.5))

res = sweep(e1, path)

image

I got the expected result after changing the sweep function to call builder.SetMode(True) here: https://github.com/CadQuery/cadquery/blob/3cd327a2dbaf3bae6791463a3dcb0ad7a714b607/cadquery/occ_impl/shapes.py#L4956

image

Perhaps this can be set by default, or optionally as a function argument.

lorenzncode avatar Jul 27 '24 22:07 lorenzncode