cad-recode / train /batch_24 /240029.py
filapro's picture
1st commit
5e6439e
import cadquery as cq
w0=cq.Workplane('YZ',origin=(-14,0,0))
w1=cq.Workplane('XY',origin=(0,0,-6))
r=w0.workplane(offset=-27/2).moveTo(-9,0).cylinder(27,6).union(w0.sketch().segment((-50,-10),(-12,-27)).segment((-12,-21)).segment((-7,-19)).segment((-7,-29)).segment((12,-37)).segment((19,-22)).arc((32,-14),(36,2)).segment((50,8)).segment((46,18)).segment((31,11)).segment((15,18)).segment((-29,37)).close().assemble().reset().face(w0.sketch().segment((-12,-10),(-7,-7)).segment((-7,15)).segment((-12,15)).close().assemble(),mode='s').finalize().extrude(37)).union(w1.workplane(offset=23/2).moveTo(35.5,-26).box(11,18,23))