cadquery
cadquery copied to clipboard
free function sweep BRepOffsetAPI_MakePipeShell option to SetMode
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)
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
Perhaps this can be set by default, or optionally as a function argument.