cad-recode / train /batch_48 /480021.py
filapro's picture
1st commit
5e6439e
import cadquery as cq
w0=cq.Workplane('XY',origin=(0,0,6))
w1=cq.Workplane('YZ',origin=(14,0,0))
r=w0.sketch().push([(-25,-20)]).rect(30,6).push([(-19,31.5)]).rect(32,37).finalize().extrude(2).union(w0.workplane(offset=14/2).moveTo(16,26).cylinder(14,4)).union(w0.sketch().push([(-6.5,-41.5)]).rect(7,17).reset().face(w0.sketch().segment((17,-20),(17,-3)).arc((14,-11),(17,-20)).assemble()).push([(27,-11.5)]).rect(12,3).reset().face(w0.sketch().arc((37,-20),(40,-11),(37,-3)).close().assemble()).finalize().extrude(23)).union(w1.sketch().push([(-25,-22)]).rect(2,14).circle(1,mode='s').finalize().extrude(-33))