teraz post cap start
This commit is contained in:
parent
45dce34ba2
commit
7dd8cd2eac
Binary file not shown.
|
|
@ -18,15 +18,33 @@ with BuildPart() as p:
|
|||
split(bisect_by=Plane.XY)
|
||||
edgs = p.part.edges().filter_by(Axis.Y).group_by(Axis.X)[-2]
|
||||
fillet(edgs, 9)
|
||||
with Locations(zz.faces().sort_by(Axis.Y)[0]):
|
||||
with Locations((42 / 2 + 6, 0)):
|
||||
CounterBoreHole(24 / 2, 34 / 2, 4)
|
||||
mirror(about=Plane.XZ)
|
||||
# debug(test)
|
||||
|
||||
with BuildSketch() as s4:
|
||||
RectangleRounded(115, 50, 6)
|
||||
s = extrude(amount=80, mode=Mode.INTERSECT)
|
||||
# fillet does not work right, mode intersect is safer
|
||||
# debug(s)
|
||||
|
||||
with BuildSketch(Plane.YZ) as s4:
|
||||
with BuildLine() as bl:
|
||||
l1 = Line((0, 0), (18 / 2, 0))
|
||||
l2 = PolarLine(l1 @ 1, 8, 60, length_mode=LengthMode.VERTICAL)
|
||||
l3 = Line(l2 @ 1, (0, 8))
|
||||
mirror(about=Plane.YZ)
|
||||
make_face()
|
||||
extrude(amount=115 / 2, both=True, mode=Mode.SUBTRACT)
|
||||
debug(s4)
|
||||
|
||||
show_object(p)
|
||||
# debug(s3)
|
||||
# debug(edgs)
|
||||
|
||||
|
||||
# got_mass = p.part.volume*densa
|
||||
# want_mass = 797.15
|
||||
# tolerance = 1
|
||||
# delta = abs(got_mass - want_mass)
|
||||
# print(f"Mass: {got_mass:0.2f} g")
|
||||
# assert delta < tolerance, f'{got_mass=}, {want_mass=}, {delta=}, {tolerance=}'
|
||||
got_mass = p.part.volume*densa
|
||||
want_mass = 797.15
|
||||
tolerance = 1
|
||||
delta = abs(got_mass - want_mass)
|
||||
print(f"Mass: {got_mass:0.2f} g")
|
||||
assert delta < tolerance, f'{got_mass=}, {want_mass=}, {delta=}, {tolerance=}'
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
from build123d import *
|
||||
|
||||
Loading…
Reference in New Issue