chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pandemic-quarantines: first try
[reprap-play.git]
/
pawn.scad
diff --git
a/pawn.scad
b/pawn.scad
index 41536392098230aaa6789602ac6f24d6552893ba..62baa7c2b6542c446d126f1f3dc6941021a421fd 100644
(file)
--- a/
pawn.scad
+++ b/
pawn.scad
@@
-34,8
+34,8
@@
echo("height", htotal);
d = 0.01;
d = 0.01;
-$fa=
1
;
-$fs=0.
1
;
+$fa=
2
;
+$fs=0.
2
;
module SegmentBasisSquare(zmin, zmax, xmin){
translate([xmin, zmin-d]) square([-xmin+d, zmax-zmin+d*2]);
module SegmentBasisSquare(zmin, zmax, xmin){
translate([xmin, zmin-d]) square([-xmin+d, zmax-zmin+d*2]);
@@
-61,13
+61,13
@@
module PawnTemplate(){
ConvexSegment( xc5, zc5, r5, z5, z4);
polygon([[x6, z6],
[x5, z5+d],
ConvexSegment( xc5, zc5, r5, z5, z4);
polygon([[x6, z6],
[x5, z5+d],
- [d, z5],
+ [d, z5
+d
],
[d, z6]]);
}
module Pawn(h=htotal){
scale(h/htotal) {
[d, z6]]);
}
module Pawn(h=htotal){
scale(h/htotal) {
- rotate_extrude(
$fn=10
0){
+ rotate_extrude(
convexity=10, $fn=5
0){
assign($fn=undef){
PawnTemplate();
}
assign($fn=undef){
PawnTemplate();
}
@@
-75,4
+75,5
@@
module Pawn(h=htotal){
}
}
}
}
-Pawn(h=20);
+Pawn(h=30);
+//PawnTemplate();