chiark / gitweb /
ksafe-base: tests
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 31 Oct 2018 01:28:41 +0000 (01:28 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 31 Oct 2018 01:28:41 +0000 (01:28 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
ksafe-base.scad

index 79cf6bd..4d9701f 100644 (file)
@@ -263,6 +263,23 @@ module DemoProfiles(){
   translate([0,0,-4]) color("pink") WebProfile();
 }
 
+module RimTest(){ ////toplevel
+  intersection(){
+    Box();
+    cube(center=true, [ main_sz*2, main_sz*2,
+                       2.5 ]);
+  }
+}
+
+module BoltTest(){ ////toplevel
+  dy = 0.5 * (bolthole_width+4);
+  intersection(){
+    KsafeBase();
+    translate([ 0, -dy, -(bolt_above + bolthole_height + 1) ])
+      cube([ main_sz, dy*2, 50 ]);
+  }
+}
+
 //DemoProfiles();
 //Box();
 //KsafeBase();