chiark / gitweb /
cable-hole-trunking-cover: wip, base
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Dec 2012 18:33:38 +0000 (18:33 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Dec 2012 18:33:38 +0000 (18:33 +0000)
cable-hole-trunking-cover.scad

index 037e240..c8a5606 100644 (file)
@@ -7,6 +7,9 @@ bevelz = 3;
 bevelslope = 0.75;
 bevely = bevelz * bevelslope;
 
+basebaset = 2;
+basebevelt = 3;
+
 module sheared_cube(sz, xperz, yperz) {
   multmatrix([[1,0,xperz,0],
              [0,1,yperz,0],
@@ -16,7 +19,11 @@ module sheared_cube(sz, xperz, yperz) {
 }
 
 module Base(){
-  sheared_cube([10,20,30], 0.5, 3);
+  translate([0, basey-basebevelt, 0])
+    sheared_cube([basex, basebevelt, bevelz], 0, bevelslope);
+  sheared_cube([basex, basebevelt, bevelz], 0, -bevelslope);
+  cube([basex, basey, basebaset]);
+//  sheared_cube([10,20,30], 0.5, 3);
 //  cube([basew, baseh, 0.1]);
 //  translate([
 }