Skip to content

Instantly share code, notes, and snippets.

@roobre
Created February 1, 2022 20:55
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 roobre/0a612cfcb8aceb4bdad308b16e355c76 to your computer and use it in GitHub Desktop.
Save roobre/0a612cfcb8aceb4bdad308b16e355c76 to your computer and use it in GitHub Desktop.
include <src/BOSL/constants.scad>
use <src/BOSL/shapes.scad>
use <src/BOSL/transforms.scad>
$fa = 4;
$fs = 0.4;
minx=1;
miniy=1;
x=39.75/minx;
y=62.75/miniy;
height=35;
fillet=4;
bshrink=1.35;
wall=1.5;
bottom=0.5;
difference() {
// Main body
rounded_prismoid(
size1=[ x-bshrink, y-bshrink ],
size2=[ x, y ],
h=height,
r=fillet
);
// Same but smaller and without the bottom
difference() {
#rounded_prismoid(
size1=[ x-bshrink-wall, y-bshrink-wall ],
size2=[ x-wall, y-wall ],
h=height,
r=fillet
);
cuboid([100, 100, bottom], align=V_UP);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment