Skip to content

Commit

Permalink
Merge pull request #626 from ABoss/patch-1
Browse files Browse the repository at this point in the history
Fix solution ttt-ppp0101.py
  • Loading branch information
gumyr authored May 19, 2024
2 parents 8ed29aa + 6c58dae commit 70ca2a3
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions docs/assets/ttt/ttt-ppp0101.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,14 @@
extrude(amount=80, mode=Mode.INTERSECT)
# fillet does not work right, mode intersect is safer

with BuildSketch(Plane.YZ) as s2:
Trapezoid(18, 8, 180 - 60, align=(Align.CENTER, Align.MIN))
extrude(amount=80, both=True, mode=Mode.SUBTRACT)

show(p)
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)

show_object(p)
print(f"\npart mass = {p.part.volume*densa:0.2f}")

0 comments on commit 70ca2a3

Please sign in to comment.