chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4a3cded
)
commitid-cube-test: TT test
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 02:09:18 +0000
(
02:09
+0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 02:09:18 +0000
(
02:09
+0000)
commitid-cube-test.scad
patch
|
blob
|
history
diff --git
a/commitid-cube-test.scad
b/commitid-cube-test.scad
index 722cc01c5618e5a0cc373a5f0a84d088a686f01e..a1ca46bfaedf717a985d03b09a98c993269d2177 100644
(file)
--- a/
commitid-cube-test.scad
+++ b/
commitid-cube-test.scad
@@
-8,7
+8,7
@@
sz = 20;
h = 0.4;
h = 0.4;
-d =
0.1
;
+d =
h
;
module FD () {
scale([2,2,1]) {
module FD () {
scale([2,2,1]) {
@@
-18,7
+18,7
@@
module FD () {
}
}
}
}
-module TC () {
+module TC () {
////toplevel
difference(){
cube([sz,sz,sz]);
translate([0,0, sz]) mirror([0,0,1]) FD();
difference(){
cube([sz,sz,sz]);
translate([0,0, sz]) mirror([0,0,1]) FD();
@@
-30,4
+30,24
@@
module TC () {
translate([0,sz,0]) rotate([-90,0,90]) rotate([0,0,180]) FD();
}
translate([0,sz,0]) rotate([-90,0,90]) rotate([0,0,180]) FD();
}
-TC();
+w = 3;
+t = 2;
+
+module TT () { ////toplevel
+ difference(){
+ union(){
+ translate([-sz, 0, -t])
+ cube([sz*2 + w, sz, t]);
+ translate([0, 0, -t])
+ cube([w, sz, sz]);
+ }
+ translate([0,sz,0]) rotate([90,0,-90]) FD();
+ translate([0,0,-t]) rotate([0,0,0]) FD();
+ translate([w,0,0]) rotate([0,0,0]) FD();
+ }
+ translate([w,0,0]) rotate([90,0,90]) FD();
+ translate([-sz,0,0]) rotate([0,0,0]) FD();
+}
+
+//TC();
+TT();