Skip to content

Instantly share code, notes, and snippets.

@adrianseeley
Created March 8, 2022 14:05
Show Gist options
  • Save adrianseeley/c385e6ec90448ca968bacd0838d5f096 to your computer and use it in GitHub Desktop.
Save adrianseeley/c385e6ec90448ca968bacd0838d5f096 to your computer and use it in GitHub Desktop.
positive_width = 185;
positive_length = 370;
positive_thick = 3;
lip_height = 3;
lip_width = 3;
negative_oversize = 3;
double_negative_oversize = 3;
module positive()
{
cube([positive_width, positive_length, positive_thick]);
translate([0, 0, positive_thick])
{
translate([0, 0, 0])
cube([lip_width, positive_length, lip_height]);
translate([positive_width - lip_width, 0, 0])
cube([lip_width, positive_length, lip_height]);
translate([0, 0, 0])
cube([positive_width, lip_width, lip_height]);
translate([0, positive_length - lip_width, 0])
cube([positive_width, lip_width, lip_height]);
}
}
module negative()
{
translate([-negative_oversize, -negative_oversize, 0])
cube([positive_width + (negative_oversize * 2), (positive_length / 2) + negative_oversize, positive_thick + lip_height + negative_oversize]);
}
module double_negative()
{
translate([-negative_oversize - double_negative_oversize, -negative_oversize - double_negative_oversize, -double_negative_oversize])
cube([positive_width + (negative_oversize * 2) + (double_negative_oversize * 2), (positive_length / 2) + negative_oversize + double_negative_oversize, positive_thick + lip_height + negative_oversize + double_negative_oversize]);
}
difference()
{
double_negative();
difference()
{
negative();
positive();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment