X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=pin-hinge.scad;h=81d527e478ad50a5550861ae5cecc98bac011b78;hb=eb06f06509cc2403d8592cd147d89d9a1b8bb97f;hp=4eba18545d51b3e29bda4743e788ef67273fa2f0;hpb=3851c067c96a87753e3abafc1a4d2724f989135d;p=reprap-play.git diff --git a/pin-hinge.scad b/pin-hinge.scad index 4eba185..81d527e 100644 --- a/pin-hinge.scad +++ b/pin-hinge.scad @@ -2,7 +2,7 @@ include -$hinge_pin_dia = 0.795 + 0.35; +$hinge_pin_dia = 0.795 + 0.75; $hinge_main_dia = 4.0; $hinge_inter_gap = 0.50; $hinge_prong_minwidth = 3.0; @@ -62,12 +62,39 @@ module HingeNegative(l){ } } +test_l = 30; +test_wb = 12; +test_h = 12; + +test_face_gap = 0.75; + module Demo(){ difference(){ - HingePositive(30, 10); - %HingeNegative(30); + HingePositive(test_l, test_h/2); + %HingeNegative(test_l); + } +} + +module TestBody(){ + linextr_x_yz(0, test_l){ + offset(delta = -test_face_gap/2) + polygon([[0,0], + [-test_wb/2, -test_h], + [+test_wb/2, -test_h]]); + } +} + +module Test(){ + difference(){ + union(){ + TestBody(); + HingePositive(test_l, test_h/2); + } + HingeNegative(test_l); } } //PlanDemo(); -Demo(); +//Demo(); +//TestBody(); +Test();