Skip to content

Instantly share code, notes, and snippets.

@SharpCoder
Created January 17, 2023 16:10
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 SharpCoder/f54f9812f262811b9bf8360bc3e00ea9 to your computer and use it in GitHub Desktop.
Save SharpCoder/f54f9812f262811b9bf8360bc3e00ea9 to your computer and use it in GitHub Desktop.
Grate for zenith space command controller
SPACING = 1.5;
W = 25;
H = 100;
module grate(W, H, SPACING) {
for (i = [0:W/SPACING/2]) {
translate([(SPACING * 2 * i) - ((W-SPACING)/2), 0, 0])
square([SPACING, H], center=true);
}
}
module assembly() {
grate(W, H, SPACING);
difference() {
square([W, H], center=true);
rotate(90-45)
grate(H, W*3.14, SPACING);
}
}
module shape(angle) {
polygon([
[0, H/2],
[W/2, H/2*cos(angle)],
[W/2, -H/2*cos(angle)],
[0, -H/2],
[-W/2, -H/2*cos(angle)],
[-W/2, H/2*cos(angle)],
]);
}
color("black")
linear_extrude(2)
difference() {
assembly();
difference() {
square([W*2, H*2], center=true);
shape(30);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment