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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user