painter12's picture
Duplicate from filapro/cad-recode-v1.5
6b078bb
Raw
History Blame Contribute Delete
369 Bytes
import cadquery as cq
w0=cq.Workplane('ZX',origin=(0,22,0))
w1=cq.Workplane('YZ',origin=(36,0,0))
r=w0.workplane(offset=-69/2).moveTo(30,38).cylinder(69,40).union(w0.sketch().push([(-71,-49)]).circle(29).push([(72,-26)]).circle(28).finalize().extrude(44)).union(w1.sketch().push([(-28.5,-7.5)]).rect(75,101).push([(-29,-7)]).circle(16,mode='s').finalize().extrude(-31))