From 6de347bfa28975e972aa8a4b52784cc9229d3d00 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 28 Nov 2012 21:33:03 +0000 Subject: [PATCH] anke-gps-bracket: body lhs and rhs ok --- anke-gps-bracket.scad | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/anke-gps-bracket.scad b/anke-gps-bracket.scad index 6303bc4..c18b716 100644 --- a/anke-gps-bracket.scad +++ b/anke-gps-bracket.scad @@ -26,9 +26,10 @@ pluggapd = 12; // Amount of wire protrusion to allow for plugwiremoreh = 30; -// Slops and steps +// Slops and steps etc. plugslop = 0.5; plughstep = 1.5; +bodylhsrhsslop = 0.5; // Dimensions for strength only screent = 1.0; @@ -73,14 +74,51 @@ module GpsPlug() { } } +lhsteethu = 2; + +module GpsLHSMask(xslop=0){ + translate([plug2lhs + plugw+plugh+plugstrutw, + 0, + -50]) { + for (iter=[-100/lhsteethu : 100/lhsteethu]) { + translate([0, iter*lhsteethu*2, 0]) { + linear_extrude(height=100) { + polygon([[-300, 0], + [ 0, 0], + [lhsteethu,lhsteethu], + [ 0, lhsteethu*2], + [-300, lhsteethu*2+0.1]]); + } + } + } + } +} + module GpsAssembled(){ ////toplevel GpsBody(); GpsPlug(); } +module GpsBodyLT(){ ////toplevel + intersection(){ + GpsBody(); + GpsLHSMask(); + } +} + +module GpsBodyRT(){ ////toplevel + difference(){ + GpsBody(); + GpsLHSMask(bodylhsrhsslop); + } +} + module GpsPlugT(){ ////toplevel rotate([0,-90,0]) GpsPlug(); } //GpsPlugT(); GpsAssembled(); +//GpsLHSMask(); +//GpsBodyLT(); +//GpsBodyRT(); -- 2.30.2