From 61fb61bb6f9a0548fac2715c942ff82b54ab62e9 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 17 Oct 2012 21:30:23 +0100 Subject: [PATCH] axlepin move pin centre to origin --- axlepin.scad | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/axlepin.scad b/axlepin.scad index 818b5a2..0f29a4f 100644 --- a/axlepin.scad +++ b/axlepin.scad @@ -5,13 +5,13 @@ function AxlePin_holerad() = 2; module AxlePin(axlerad, pinlen, holerad=2, tabthick=5, slop=0.5){ pinr = holerad - slop; intersection(){ - translate([0, 0, pinr*0.7]) { + union(){ translate([0, -pinlen/2, 0]) rotate([-90,0,0]) cylinder(r=pinr, h=pinlen, $fn=10); translate([-tabthick, axlerad, -holerad]) cube([tabthick*2, holerad*2, holerad*2]); } - translate([-50,-50,0]) cube([100,100,50]); + translate([-50,-50, -pinr*0.7]) cube([100,100,50]); } } -- 2.30.2