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

@@ -4,12 +4,9 @@
import cadquery as cq
from frame_params import PLATE_GAP
from frame_params import (ALU_DENSITY, PLATE_GAP)
OD = 3.5 # round M2 standoff
ALU_DENSITY = 2.70e-3 # g/mm3, for mass reporting
PLATE_GAP=16
def standoff():
p = (cq.Workplane("XY")
@@ -39,8 +36,5 @@ show_object(result)
if __name__ == "__main__":
solid = result.val()
print("standoff %.3f g each, %.3f g for four"
% (solid.Volume() * ALU_DENSITY,
4 * solid.Volume() * ALU_DENSITY))
v = result.val().Volume()
print("%-12s %.2f g" % ("standoff", v * ALU_DENSITY))