Skip to content

Instantly share code, notes, and snippets.

@themainframe
Created June 8, 2019 20:14
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 themainframe/cc0acd2dd2266c8ab4eb8c67a7ff850d to your computer and use it in GitHub Desktop.
Save themainframe/cc0acd2dd2266c8ab4eb8c67a7ff850d to your computer and use it in GitHub Desktop.
Appleite OpenSCAD Definition
module Appleite(xCount=5, yCount=5, holeSize=20, padding=3, depth=10) {
difference() {
holeDistance = holeSize + padding;
cube([
xCount * holeDistance,
yCount * holeDistance - (holeDistance / 2),
depth
]);
for(x = [0 : xCount], y = [0 : yCount]) {
// Offset every other row
xOffset = y % 2 != 0 ? holeDistance / 2 : 0;
// Front hole
translate([
x * holeDistance + xOffset,
y * holeDistance * cos(30),
depth + 0.6
]) sphere(d=holeSize);
// Back hole (OwO)
translate([
x * holeDistance + xOffset,
(y * holeDistance + holeDistance * 0.66) * cos(30),
-0.6
]) sphere(d=holeSize);
}
}
}
Appleite();
@themainframe
Copy link
Author

Screen Shot 2019-06-08 at 21 15 19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment