How to Generate a Cube's vertices and tris
This solution isn’t really helpful for anyone, it is slower than just writing down the constant values and pretty unclear at first glance. Looking back at it, it is not even too elegant. But this was a fun little piece of code that I wrote in about 2-3 hours, and wanted to share it, since I couldnt find anything like this on the Internet. - Catonif
Written on January 17, 2021, Last update on January 17, 2021
cube
mesh