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 (from parent 1:
fb836dc
)
commitid-cube-test: Add rulers
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 16:08:55 +0000
(16:08 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 16:08:55 +0000
(16:08 +0000)
commitid-cube-test.scad
patch
|
blob
|
history
diff --git
a/commitid-cube-test.scad
b/commitid-cube-test.scad
index d644d53bca9a16943055291abb2e26403a8b4398..631fe00b92bac21949bbcc1f8dd33db43e6ef3ee 100644
(file)
--- a/
commitid-cube-test.scad
+++ b/
commitid-cube-test.scad
@@
-28,6
+28,10
@@
module TC () { ////toplevel
w = 3;
t = 2;
w = 3;
t = 2;
+fdsz = Commitid_FontDemo_sz();
+d = Commitid_depth();
+ru = Commitid_pixelsz();
+
module TT () { ////toplevel
difference(){
union(){
module TT () { ////toplevel
difference(){
union(){
@@
-39,9
+43,18
@@
module TT () { ////toplevel
translate([0,sz,0]) rotate([90,0,-90]) FD();
translate([w,0,-t]) rotate([0,180,0]) FD();
translate([w,0,0]) rotate([0,0,0]) FD();
translate([0,sz,0]) rotate([90,0,-90]) FD();
translate([w,0,-t]) rotate([0,180,0]) FD();
translate([w,0,0]) rotate([0,0,0]) FD();
+
+ translate([0, sz, 0])
+ rotate([90, 0, -90])
+ translate(fdo + [0, -ru*2, -d]) cube([fdsz[0], ru, d*2]);
}
translate([w,0,0]) rotate([90,0,90]) FD();
translate([-sz,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();
+
+ translate([0, sz+d, 0])
+ rotate([90,0,0])
+ translate([0, fdo[1], 0]) cube([d*2, fdsz[1], ru]);
+ //!cube([fdsz[1], fdsz[0], 1]);
}
echo("pixelsz:", str(Commitid_pixelsz()),
}
echo("pixelsz:", str(Commitid_pixelsz()),