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
sewing-table: FitTest wip
[reprap-play.git]
/
sewing-table.scad.m4
diff --git
a/sewing-table.scad.m4
b/sewing-table.scad.m4
index 458d00e7ec1378c2c610ad07e2ed02c2e5568163..1f6fad76c8f93182b6ddace7e149264ff4c661e7 100644
(file)
--- a/
sewing-table.scad.m4
+++ b/
sewing-table.scad.m4
@@
-170,9
+170,12
@@
module TileBase(botleft, topright){
cidsz = topright_post-botleft_post
+ [-post_dia,-post_dia]
+ [0, thehd[1]];
cidsz = topright_post-botleft_post
+ [-post_dia,-post_dia]
+ [0, thehd[1]];
+ cidszr = [ min(cidsz[0],50), min(cidsz[1],50) ];
+ echo("CID",cidsz,cidszr);
translate( concat(botleft_post, [ -tile_th ])
translate( concat(botleft_post, [ -tile_th ])
- + 0.5 * [ post_dia, post_dia, 0 ] )
- Commitid_BestCount_M(cidsz);
+ + 0.5 * [ post_dia, post_dia, 0 ]
+ + 0.5 * concat( cidsz - cidszr, [ 0 ]) )
+ Commitid_BestCount_M(cidszr);
}
if (TEST) {
crossoff = tile_hard_edge_hole_dist + POST_TCROSSSZ/2;
}
if (TEST) {
crossoff = tile_hard_edge_hole_dist + POST_TCROSSSZ/2;
@@
-501,7
+504,14
@@
module Machine(){ ////toplevel
Machine_Arm();
Machine_Curves();
}
Machine_Arm();
Machine_Curves();
}
-
+
+module FitTest(){ ////toplevel
+ difference(){
+ cube([200,200,200]);
+ #Machine();
+ }
+}
+
function Rectangle_corners(c0, sz) =
// returns the corners of a rectangle from c0 to c0+sz
// if sz is positive, the corners are anticlockwise starting with c0
function Rectangle_corners(c0, sz) =
// returns the corners of a rectangle from c0 to c0+sz
// if sz is positive, the corners are anticlockwise starting with c0