Parametric Hypercube
Description
This is my first experience with OpenSCAD and was made as an experiment, if anyone finds it useful then that's a bonus!
This is a derivative work of A cube by imaterialise.
A hypercube is a "shadow" or projection of a 4 dimensional cube in 3d space; much like if you projected a 3d cube onto a 2d surface. If you're interested in the theory behind this then please consult wikipedia as I don't really understand it... looks cool though ;).
I have parameterised this to enable customisation of the size of the inner and outer cubes and the thickness of the "lines" for the inner and outer cubes. You will also notice that the polyhedrons connecting the two cubes have triangular cross-sections; this was mainly for ease of coding (less polygons to orientate!), but also seemed neat to me at the time.
(note: this is my first OpenSCAD thing so I'm not sure about the neatness and robustness of my code so any feedback would be greatly apreciated!)
This is a derivative work of A cube by imaterialise.
A hypercube is a "shadow" or projection of a 4 dimensional cube in 3d space; much like if you projected a 3d cube onto a 2d surface. If you're interested in the theory behind this then please consult wikipedia as I don't really understand it... looks cool though ;).
I have parameterised this to enable customisation of the size of the inner and outer cubes and the thickness of the "lines" for the inner and outer cubes. You will also notice that the polyhedrons connecting the two cubes have triangular cross-sections; this was mainly for ease of coding (less polygons to orientate!), but also seemed neat to me at the time.
(note: this is my first OpenSCAD thing so I'm not sure about the neatness and robustness of my code so any feedback would be greatly apreciated!)
Instructions
1. Input parameters to the top of the code where indicated
2. Compile and generate g-code
3. Print and clean up
I don't know if this thing is actually printable as I'm still a way off finishing my RepRap (but I suspect a smaller overall dimension will give a better print). If anyone fancies giving it a go then that would be fantastic! As ever feedback is greatly appreciated.
Note: printing a true 4D cube will require a 4D printer and extra-dimensional perception (not included);).
2. Compile and generate g-code
3. Print and clean up
I don't know if this thing is actually printable as I'm still a way off finishing my RepRap (but I suspect a smaller overall dimension will give a better print). If anyone fancies giving it a go then that would be fantastic! As ever feedback is greatly appreciated.
Note: printing a true 4D cube will require a 4D printer and extra-dimensional perception (not included);).
You must be logged in to post a comment.
License
Parametric Hypercube by brucey is licensed under the Attribution - Share Alike - Creative Commons license.

I can't help but notice that your hypercube only extends into 3 dimensions. The 4th dimension appears to be merely a 3 dimensional shadow of the 4th dimensional cube promised.
That's okay tho. Adding the 4th axis to a printer is a pain in the neck.