Has anybody created hypercube(i mean 4d cube)? I think about creating of something like this. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Has anybody created hypercube(i mean 4d cube)? I think about creating of something like this.

I want to listen(read) your thoughts. We can create it together.

27th Nov 2018, 12:11 AM
_yaroslavv [online_everyday]
_yaroslavv [online_everyday] - avatar
1 Answer
+ 2
Not graphics, but I was fiddling with the internal arrangement of arrays when increasing dimensions here: https://code.sololearn.com/c0gj6D4Q1iUn/?ref=app 8: LENGTH is the side length in the current shape 18: SHAPE (using the constants from POINT to HYPERCUBE) control the array generation Notes: I was unhappy with something so stopped fiddling with it, but... I started documenting the way the cells were connected (block comment at line 79) if that helps. If you drop LENGTH to 2, it can auto-switch to letters because I thought it was more compact than variable-length cell numbers. I'm posting this because feedback's fine; it's not like I thought it was finished / well-written (I was writing for it to be read by others, not efficiency) and...I was just tinkering.
27th Nov 2018, 12:31 AM
Kirk Schafer
Kirk Schafer - avatar