Created
January 17, 2023 16:10
-
-
Save SharpCoder/f54f9812f262811b9bf8360bc3e00ea9 to your computer and use it in GitHub Desktop.
Grate for zenith space command controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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