chiark / gitweb /
cable-hole-trunking-cover: wip, sheared_cube seems to work
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Dec 2012 18:28:46 +0000 (18:28 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Dec 2012 18:28:46 +0000 (18:28 +0000)
cable-hole-trunking-cover.scad [new file with mode: 0644]

diff --git a/cable-hole-trunking-cover.scad b/cable-hole-trunking-cover.scad
new file mode 100644 (file)
index 0000000..037e240
--- /dev/null
@@ -0,0 +1,24 @@
+// -*- C -*-
+
+basex = 30;
+basey = 45;
+
+bevelz = 3;
+bevelslope = 0.75;
+bevely = bevelz * bevelslope;
+
+module sheared_cube(sz, xperz, yperz) {
+  multmatrix([[1,0,xperz,0],
+             [0,1,yperz,0],
+             [0,0,1,    0],
+             [0,0,0,    1]])
+    cube(sz);
+}
+
+module Base(){
+  sheared_cube([10,20,30], 0.5, 3);
+//  cube([basew, baseh, 0.1]);
+//  translate([
+}
+
+Base();