32 lines
883 B
Python
32 lines
883 B
Python
from build123d import *
|
|
|
|
with BuildPart() as p:
|
|
with BuildSketch(Plane.XZ) as sk1:
|
|
test = Rectangle(49, 48 - 8, align=(Align.CENTER, Align.MIN))
|
|
test2 = Rectangle(9, 48, align=(Align.CENTER, Align.MIN))
|
|
# with Locations((9 / 2, 40)):
|
|
# Ellipse(20, 8)
|
|
test3 = split(bisect_by=Plane.YZ)
|
|
revolve(axis=Axis.Z)
|
|
|
|
# with BuildSketch(Plane.YZ.offset(-15)) as xc1:
|
|
# with Locations((0, 40 / 2 - 17)):
|
|
# test4 = Ellipse(10 / 2, 4 / 2)
|
|
# with BuildLine(Plane.XZ) as l1:
|
|
# test5 = CenterArc((-15, 40 / 2), 17, 90, 180)
|
|
# sweep(path=l1)
|
|
|
|
show_object(p)
|
|
|
|
debug(test)
|
|
debug(test2)
|
|
debug(test3)
|
|
# export_step(p.part, "/home/pali112/Build123d/debug.step")
|
|
# debug(test1)
|
|
# debug(test2)
|
|
# debug(test3)
|
|
# debug(test4, name="ELL")
|
|
# debug(test5, name="CA")
|
|
# show_object(p, name="calosc")
|
|
# debug(xc1)
|