Skip to content

Instantly share code, notes, and snippets.

@hyperair
Created May 9, 2017 17:49
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 hyperair/bbe5a032a0c16c9fa192bb9b7708d7e0 to your computer and use it in GitHub Desktop.
Save hyperair/bbe5a032a0c16c9fa192bb9b7708d7e0 to your computer and use it in GitHub Desktop.
$fs = 0.4;
$fa = 1;
epsilon = 0.01;
module bevel_cutout (r)
{
difference () {
translate ([1, 1] * -epsilon)
square (r);
translate ([r, r])
circle (r = r);
}
}
difference () {
cube (10);
translate ([0, 0, -epsilon])
linear_extrude (height = 10 + epsilon * 2)
bevel_cutout (2);
translate ([10, 0, -epsilon])
mirror ([1, 0, 0])
linear_extrude (height = 10 + epsilon * 2)
bevel_cutout (4);
translate ([10, 10, -epsilon])
mirror ([1, 1, 0])
linear_extrude (height = 10 + epsilon * 2)
bevel_cutout (4);
translate ([0, 10, -epsilon])
mirror ([0, 1, 0])
linear_extrude (height = 10 + epsilon * 2)
bevel_cutout (8);
}
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment