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,6 +4,7 @@
import cadquery as cq
from math import sqrt
from frame_params import TPU_DENSITY
def camera_mount():
@@ -130,9 +131,5 @@ if "show_object" not in globals(): # running outside CQ-editor
show_object(result)
if __name__ == "__main__":
TPU_DENSITY = 1.21e-3 # g/mm3
solid = result.val()
print("camera_mount %.2f g in TPU"
% (solid.Volume() * TPU_DENSITY))
v = result.val().Volume()
print("%-12s %.2f g" % ("camera mount", v * TPU_DENSITY))