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:
b313c5d
)
pawn wip new template
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 2 Oct 2012 17:24:08 +0000
(18:24 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 2 Oct 2012 17:24:08 +0000
(18:24 +0100)
pawn.scad
patch
|
blob
|
history
diff --git
a/pawn.scad
b/pawn.scad
index b7c2bed814a912ffe50ffc6b358c41263eb4f894..2aeaae1ae0095f09f7b7ba201ddd1ccebfad15af 100644
(file)
--- a/
pawn.scad
+++ b/
pawn.scad
@@
-29,6
+29,9
@@
x5 = xc5 - r5 * cos(a6);
x6 = x5 - h6 * tan(a6);
+htotal = r1 - z6;
+echo("height", htotal);
+
$fa=1;
$fs=0.1;
@@
-60,4
+63,14
@@
module PawnTemplate(){
[0.01, z6]]);
}
-PawnTemplate();
+module Pawn(h=htotal){
+ scale(h/htotal) {
+ rotate_extrude($fn=100){
+ assign($fn=undef){
+ PawnTemplate();
+ }
+ }
+ }
+}
+
+Pawn(h=20);