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