Help with cube truncation animation code

Sorry to bother you again! I have refaced, abstracted, and refactored, greatly shortening the code, hopefully making it much more readable. Most of it works. In platonic mode, we can superimpose all five platonics. However, not visible in that image are a couple of shadows cast by D20. Also, truncation for D4, D6, and D8 work nicely. Not the others yet, but since they involve D20, I’m trying to solve that problem first. Thanks again!

.

That’s a really nice job. I don’t see any shadows for D20 … when do they appear?

Before sending my last note, I saved the file in the configuration (platonic folder enabled, T20 slider somewhere in the middle), which appears to me to have a top shadow and a bottom shadow, as shown in the image I attached. Does that not happen for you? To answer your question, the shadow appears for all values of t_20 in (0,1]. I made a stripped-down version with only 16 lines of code (well, 11+5 lines of documentation), but I suspect you can read the full code quite easily. In any case.: Platonic Shadows | Desmos

Nope, there are no shadows when I look at the icosahedron for whatever value of t_20 and whatever zoom or position of the object.

Last night, I wondered if stuff would work well on my phone. It worked far better than I expected! There was no shadow problem, and all the truncations worked fine. I was using Safari on my phone. I’ve been using Chrome on a Mac. I tried Safari and Firefox this morning on my desktop, and everything worked perfectly.

I have a few more ideas for tightening up the code.

Thanks again for your time, thought, and delightfulness!

1 Like