| import cadquery as cq | |
| w0=cq.Workplane('XY',origin=(0,0,21)) | |
| w1=cq.Workplane('ZX',origin=(0,15,0)) | |
| r=w0.workplane(offset=-52/2).moveTo(-17,18).cylinder(52,11).union(w0.sketch().push([(-17.5,18)]).rect(13,32).push([(-22,20)]).circle(1,mode='s').push([(21,-28)]).rect(58,12).finalize().extrude(-18)).union(w0.sketch().segment((-50,16),(-47,16)).segment((-50,18)).close().assemble().finalize().extrude(10)).union(w1.workplane(offset=-43/2).moveTo(11.5,-17).box(19,50,43)) |