cad-recode / train /batch_35 /350020.py
filapro's picture
1st commit
5e6439e
import cadquery as cq
w0=cq.Workplane('YZ',origin=(-3,0,0))
w1=cq.Workplane('ZX',origin=(0,-8,0))
r=w0.sketch().push([(2.5,-18.5)]).rect(17,41).push([(27,23.5)]).rect(46,23).push([(27,24)]).circle(5,mode='s').finalize().extrude(-31).union(w0.workplane(offset=-20/2).moveTo(-16,16).cylinder(20,18)).union(w0.workplane(offset=38/2).moveTo(-16,16).cylinder(38,6)).union(w1.sketch().push([(16,3)]).rect(46,32).push([(15.5,3)]).rect(17,8,mode='s').finalize().extrude(-42))