cadquery icon indicating copy to clipboard operation
cadquery copied to clipboard

extrude in subtractive mode ignores both parameter

Open lorenzncode opened this issue 3 years ago • 0 comments

import cadquery as cq

w, l, h = 50, 20, 15
lsnap = 8
rsnap = 0.5

s = cq.Sketch().circle(rsnap)

b = (
    cq.Workplane()
    .box(w, l, h)
    .tag("box")
    .faces("<Y")
    .vertices("<X and >Z")
    .workplane(centerOption="CenterOfMass", offset=-l/2)
    .center(0, -2.0)
    .placeSketch(s)
    .extrude(lsnap, combine="a", both=True)
    .center(0, -3.0)
    .placeSketch(s)
    # subtractive, both is ignored
    .extrude(lsnap, combine="s", both=True)
)

lorenzncode avatar May 24 '22 22:05 lorenzncode