// RasPiCase-Top_logo by grokbeer // http://www.thingiverse.com/thing:24737 // // derived from: // // put_pilogo() from RaspberryPi v12.scad by HansH // http://www.thingiverse.com/thing:16104 // // RaspberryPi v12.scad: http://www.thingiverse.com/download:68569 // raspberrypi_logo.dxf: http://www.thingiverse.com/download:54572 // // RasPiCase-Top.stl by redpeppr // http://www.thingiverse.com/thing:24721 // // RasPiCase-Top.stl: http://www.thingiverse.com/download:74596 // module put_pilogo(w,h,mx,mh,mt) { fn="raspberrypi_logo.dxf"; // calculate the scale and which offset to use scx=(w- (mx*2)) / 155.0; ofsy= (h - mh) - (205.0*scx); linear_extrude(height=mt) import(file=fn, scale=scx); } difference() { translate( [ 22, 29, 0 ] ) { rotate( [ 0, 0, 90 ] ) { import( file = "RasPiCase-Top.stl" ); } } translate( [ 0, 0, -1 ] ) { put_pilogo( w=53, h=82, mx=2, mh=4, mt=3.2 ); } }