Inscread plate strap size

Also fix mass printing on all objects

Signed-off-by: Arnaud Morin <arnaud.gfpv@mailops.fr>
This commit is contained in:
Arnaud Morin
2026-09-21 22:22:01 +02:00
parent e70d2abed2
commit e29f86fa70
9 changed files with 42 additions and 65 deletions

View File

@@ -106,33 +106,37 @@ def plate():
p = p.cut(bones.rotate((0, 0, 0), (0, 0, 1), a).translate((x, y, 0)))
# Triangle cuts to reduce weight
# the small one near center
cut1 = (
cq.Workplane("XY")
.polyline([
(6.5, -9),
(6.5, 9),
(1, 0),
(7, -7),
(7, 7),
(1.5, 0),
]).close()
.extrude(THICKNESS)
.edges("|Z")
.fillet(1.0)
)
# strap holes
cut2 = (
cq.Workplane("XY")
.polyline([
(9.5, -9),
(9.5, 9),
(15, 0),
(11, -8),
(11, 8),
(13, 8),
(13, -8),
]).close()
.extrude(THICKNESS)
.edges("|Z")
.fillet(1.0)
.fillet(0.99)
)
# the big one
cut3 = (
cq.Workplane("XY")
.polyline([
(11, 15),
(-11, 15),
(10, 15),
(-10, 15),
(0, 4),
]).close()
.extrude(THICKNESS)
@@ -168,6 +172,5 @@ show_object(result)
if __name__ == "__main__":
v = result.val().Volume()
print("plate mass %.2f g each, %.2f g for two" % (v * CF_DENSITY, 2 * v * CF_DENSITY))
print("%-12s %.2f g" % ("plate", v * CF_DENSITY))