@ -13,16 +13,16 @@
/ / / / / Render
/ / / / / Render
/ / lock
/ / lock
/ / tux
/ / tux
/ / moneybox minimum h ight 200 mm
/ / moneybox minimum h e ight 200 mm
/ / dev
/ / dev
renderer = "moneybox" ;
renderer = "moneybox" ;
/ / Dimention in mm
/ / Dimention in mm
/ / For moneybox the minimal h ight is :
/ / For moneybox the minimal h e ight is :
/ / euro = 150 mm
/ / euro = 150 mm
/ / dollar = 170 mm
/ / dollar = 170 mm
/ / sterling = 190 mm
/ / sterling = 190 mm
h ight= 150 ;
h e ight= 150 ;
wall = 5 ;
wall = 5 ;
/ / currency for the coinhole
/ / currency for the coinhole
@ -41,33 +41,33 @@ $fn=50;
/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
if ( renderer = = "lock" ) {
if ( renderer = = "lock" ) {
translate ( [ 0 , 0 , h ight* 0.06 ] ) rotate ( [ 180 , 0 , 0 ] ) lock ( h ight) ;
translate ( [ 0 , 0 , h e ight* 0.06 ] ) rotate ( [ 180 , 0 , 0 ] ) lock ( h e ight) ;
}
}
if ( renderer = = "tux" ) {
if ( renderer = = "tux" ) {
difference ( ) {
difference ( ) {
tux ( h ight) ;
tux ( h e ight) ;
}
}
}
}
if ( renderer = = "moneybox" ) {
if ( renderer = = "moneybox" ) {
difference ( ) {
difference ( ) {
tux ( h ight, true ) ;
tux ( h e ight, true ) ;
cutLock ( h ight) ;
cutLock ( h e ight) ;
coinhole ( h ight, currency ) ;
coinhole ( h e ight, currency ) ;
}
}
}
}
if ( renderer = = "dev" ) {
if ( renderer = = "dev" ) {
difference ( ) {
difference ( ) {
tux ( h ight, true ) ;
tux ( h e ight, true ) ;
cutLock ( h ight) ;
cutLock ( h e ight) ;
coinhole ( h ight, currency ) ;
coinhole ( h e ight, currency ) ;
translate ( [ - h ight/ 2 , 0 , 0 ] ) cube ( h ight) ;
translate ( [ - h e ight/ 2 , 0 , 0 ] ) cube ( h e ight) ;
}
}
@ -97,19 +97,19 @@ module coinhole(size, currency = "euro") {
/ / Dimension Sterling "Ten pounds" : r = 65 mm h = 2.5 mm
/ / Dimension Sterling "Ten pounds" : r = 65 mm h = 2.5 mm
if ( currency = = "euro" ) {
if ( currency = = "euro" ) {
if ( size < 170 ) echo ( "The minimal h ight is 150mm") ;
if ( size < 170 ) echo ( "The minimal h e ight is 150mm") ;
translate ( [ 0 , size * 0.05 , size * 0.95 ] ) rotate ( [ 0 , 0 , 90 ] ) cube ( [ 3 , 30 , size * 0.3 ] , center = true ) ;
translate ( [ 0 , size * 0.05 , size * 0.95 ] ) rotate ( [ 0 , 0 , 90 ] ) cube ( [ 3 , 30 , size * 0.3 ] , center = true ) ;
translate ( [ 0 , 0 , size * 0.60 ] ) cylinder ( d = 35 , h = size * 0.18 ) ;
translate ( [ 0 , 0 , size * 0.60 ] ) cylinder ( d = 35 , h = size * 0.18 ) ;
}
}
if ( currency = = "dollar" ) {
if ( currency = = "dollar" ) {
if ( size < 170 ) echo ( "The minimal h ight is 170mm") ;
if ( size < 170 ) echo ( "The minimal h e ight is 170mm") ;
translate ( [ 0 , size * 0.05 , size * 0.95 ] ) rotate ( [ 0 , 0 , 90 ] ) cube ( [ 3 , 35 , size * 0.3 ] , center = true ) ;
translate ( [ 0 , size * 0.05 , size * 0.95 ] ) rotate ( [ 0 , 0 , 90 ] ) cube ( [ 3 , 35 , size * 0.3 ] , center = true ) ;
translate ( [ 0 , 0 , size * 0.60 ] ) cylinder ( d = 40 , h = size * 0.18 ) ;
translate ( [ 0 , 0 , size * 0.60 ] ) cylinder ( d = 40 , h = size * 0.18 ) ;
}
}
if ( currency = = "sterling" ) {
if ( currency = = "sterling" ) {
if ( size < 190 ) echo ( "The minimal h ight is 190mm") ;
if ( size < 190 ) echo ( "The minimal h e ight is 190mm") ;
translate ( [ 0 , size * 0.05 , size * 0.95 ] ) rotate ( [ 0 , 0 , 90 ] ) cube ( [ 4 , 43 , size * 0.3 ] , center = true ) ;
translate ( [ 0 , size * 0.05 , size * 0.95 ] ) rotate ( [ 0 , 0 , 90 ] ) cube ( [ 4 , 43 , size * 0.3 ] , center = true ) ;
translate ( [ 0 , 0 , size * 0.60 ] ) cylinder ( d = 45 , h = size * 0.18 ) ;
translate ( [ 0 , 0 , size * 0.60 ] ) cylinder ( d = 45 , h = size * 0.18 ) ;
}
}