chiark / gitweb /
startech-dell-usb-cable-retainer: wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 4 Aug 2021 17:02:17 +0000 (18:02 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 4 Aug 2021 17:02:17 +0000 (18:02 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
startech-dell-usb-cable-retainer.scad

index e8d83594d5089cea71073cb3d2b747ee0dd7d497..956bed41eebf714aca13bcc21bd99f928b7ddc82 100644 (file)
@@ -22,6 +22,9 @@ prong_width = 2.0;
 
 base_thick = 3;
 
+$fa= 3;
+$fs= 0.3;
+
 // calculated
 
 epp0 = [ 0, -body_height/2 ];
@@ -38,6 +41,9 @@ epp10 = [ epp11[0], +back_above_height ];
 epp9 = epp10 + [ +back_thick, 0 ];
 epp8 = [ epp9[0], epp7[1] ];
   
+y1 = wire_thick/2;
+y2 = y1 + prong_width;
+
 module MainElevation(){
   polygon([epp0,
           epp1,
@@ -57,4 +63,18 @@ module MainElevation(){
   }
 }
 
-MainElevation();
+module Retainer(){
+  difference(){
+    linextr_y_xz( -y2, +y2 ) {
+      MainElevation();
+    }
+    linextr_y_xz( -y1, +y1 ) {
+      rectfromto( epp7 + [+1, -1],
+                 epp5 + [-1, +1] );
+    }
+  }
+}
+
+//MainElevation();
+
+Retainer();