Skip to content

Instantly share code, notes, and snippets.

@makevoid
Created July 21, 2013 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save makevoid/6048240 to your computer and use it in GitHub Desktop.
Save makevoid/6048240 to your computer and use it in GitHub Desktop.
PP Ashtray thingiverse: http://www.thingiverse.com/thing:121190 ashtray designed by Pio Porcinai, 3d modeled in openscad the STL needs to be scaled, the original size is 12x12x2.5cm
//$fs = 0.3;
$fn = 50;
// main
difference() {
ashtray();
decoration();
}
module ashtray() {
scale([4, 4, 4]) intersection() {
// intersection quarter
cube([60, 60, 20]);
cube([30, 30, 20]);
difference(){
piece();
# translate([6.2, 6.2]) cylinder(4.5, 5, 5); // ashtray
}
}
}
module decoration() {
difference() {
cylinder(4.5, 97, 97);
cylinder(4.5, 85, 85);
}
}
module piece() {
cylinder(2.3, 30, 30); // handle
cylinder(6, 15, 15); // base
translate([15, 15]) cylinder(6, 3.5, 3.5); // foot
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment