Skip to content

Instantly share code, notes, and snippets.

@vikrum
Created July 20, 2016 19:04
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 vikrum/b873b7890702f1323426ceb31050675d to your computer and use it in GitHub Desktop.
Save vikrum/b873b7890702f1323426ceb31050675d to your computer and use it in GitHub Desktop.
shadow cube
// http://budweiser.cadstudio.cz/2015/08/shadow-cube-3d-model-of-c-d.html
$fn=100;
S=10; // size in mm
// "C" "A" "D" - modelled letters
intersection() {
M("A", S); // "A"
translate([0, S, 0])rotate([90, 0, 0]) M("D", S); // "D"
translate([-S/2, S/2, 0])rotate([90, 0, 90])M("C", S); // "C"
}
module M(t,s) {
resize([s, s, s])linear_extrude(1) text(t, halign="center", font="Raavi:style=Bold");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment