24 lines
617 B
Python
24 lines
617 B
Python
from build123d import *
|
|
from ocp_vscode import *
|
|
|
|
set_defaults(helper_scale=1, transparent=False, reset_camera=Camera.KEEP)
|
|
|
|
|
|
with BuildPart() as p:
|
|
with BuildSketch(Plane.XZ) as s:
|
|
with BuildLine() as line1:
|
|
Polyline((0, 0), (95 / 2, 0), (95 / 2, 34), close=False)
|
|
offset(amount=16, side=Side.LEFT)
|
|
make_face()
|
|
mirror(about=Plane.YZ)
|
|
extrude(amount=34)
|
|
e1 = p.faces().sort_by(Axis.X)[0].edges().sort_by(Axis.Z)[0]
|
|
e2 = p.faces().sort_by(Axis.X)[-1].edges().sort_by(Axis.Z)[0]
|
|
eplus = e1 + e2
|
|
fillet(eplus, 18)
|
|
|
|
show_all()
|
|
# show(t1)
|
|
|
|
# show(p)
|