Created
March 11, 2019 21:36
-
-
Save loopspace/6414c1fc6a0de357cf59d073030cc6a4 to your computer and use it in GitHub Desktop.
A suggestion of a solid with a square, hexagon, and circle orthogonal projections.
This file contains hidden or 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
radius = 20; | |
hexradius = radius * cos(15); | |
intersection() | |
{ | |
translate([0,0,-radius]) | |
{ | |
linear_extrude(height=2*radius) | |
{ | |
rotate([0,0,15]) | |
{ | |
polygon([ | |
[radius, 0], | |
[radius * cos(60), radius * sin(60)], | |
[radius * cos(120), radius * sin(120)], | |
[radius * cos(180), radius * sin(180)], | |
[radius * cos(240), radius * sin(240)], | |
[radius * cos(300), radius * sin(300)] | |
]); | |
} | |
} | |
} | |
rotate([90,0,0]) | |
{ | |
translate([0,0,-radius]) | |
{ | |
cylinder(2*radius,hexradius,hexradius); | |
} | |
} | |
rotate([0,90,0]) | |
{ | |
translate([0,0,-radius]) | |
{ | |
linear_extrude(height=2*radius) | |
{ | |
polygon([ | |
[hexradius,0], | |
[0,hexradius], | |
[-hexradius,0], | |
[0,-hexradius] | |
]); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment